コード例 #1
0
ファイル: InfoBoxWindow.cpp プロジェクト: macsux/XCSoar
InfoBoxWindow::InfoBoxWindow(ContainerWindow &_parent, int X, int Y, int Width, int Height,
                 int border_flags,
                             const InfoBoxSettings &_settings,
                 const InfoBoxLook &_look)
  :content(NULL),
   parent(_parent),
   settings(_settings), look(_look),
   mBorderKind(border_flags),
   focus_timer(0)
{
  colorValue = 0;
  colorTitle = 0;
  colorComment = 0;

  WindowStyle style;
  style.enable_double_clicks();
  set(parent, X, Y, Width, Height, style);

  mValueUnit = unUndef;

  mTitle.clear();
  mValue.clear();
  mComment.clear();
  mID = -1;
}
コード例 #2
0
InfoBoxWindow::InfoBoxWindow(ContainerWindow &_parent,
                             PixelScalar x, PixelScalar y,
                             UPixelScalar width, UPixelScalar height,
                             int border_flags, const InfoBoxSettings &_settings,
                             const InfoBoxLook &_look, WindowStyle style)
  :content(NULL),
   parent(_parent),
   settings(_settings), look(_look),
   border_kind(border_flags),
   force_draw_selector(false),
   focus_timer(*this)
{
  data.Clear();

  style.enable_double_clicks();
  set(parent, x, y, width, height, style);

  id = -1;
}
コード例 #3
0
void
MapWindow::set(ContainerWindow &parent, const PixelRect &rc)
{
  WindowStyle style;
  style.enable_double_clicks();
  DoubleBufferWindow::set(parent, rc.left, rc.top,
                          rc.right - rc.left, rc.bottom - rc.top,
                          style);

  // initialize other systems
  visible_projection.SetMapScale(fixed_int_constant(5000));
  visible_projection.SetScreenOrigin((rc.left + rc.right) / 2,
                                     (rc.bottom + rc.top) / 2);
  visible_projection.UpdateScreenBounds();

#ifndef ENABLE_OPENGL
  buffer_projection = visible_projection;
#endif
}
コード例 #4
0
ファイル: InfoBoxWindow.cpp プロジェクト: Plantain/XCSoar
InfoBoxWindow::InfoBoxWindow(ContainerWindow &_parent, int X, int Y, int Width, int Height,
                 int border_flags,
                 const InfoBoxLook &_look)
  :content(NULL),
   parent(_parent),
   look(_look),
   mBorderKind(border_flags),
   focus_timer(0)
{
  colorValue = 0;
  colorTitle = 0;
  colorComment = 0;

  WindowStyle style;
  style.enable_double_clicks();
  set(parent, X, Y, Width, Height, style);

  mValueUnit = unUndef;

  _tcscpy(mTitle, _T(""));
  _tcscpy(mValue, _T(""));
  _tcscpy(mComment, _T(""));
}