Ejemplo n.º 1
0
    void set(ContainerWindow &parent, const TCHAR *text, unsigned _index,
             int left, int top, unsigned width, unsigned height,
             ButtonWindowStyle style=ButtonWindowStyle()) {
      index = _index;

      ButtonWindow::set(parent, text, left, top, width, height, style);
    }
Ejemplo n.º 2
0
    void set(ContainerWindow &parent, const TCHAR *text, unsigned _index,
             int left, int top, unsigned width, unsigned height,
             ButtonWindowStyle style=ButtonWindowStyle()) {
      index = _index;
#ifdef GREEN_MENU
      style.enable_custom_painting();
#endif

      ButtonWindow::set(parent, text, left, top, width, height, style);
    }
Ejemplo n.º 3
0
void
BigThermalAssistantWidget::Prepare(ContainerWindow &parent,
                                   const PixelRect &_rc)
{
  ContainerWidget::Prepare(parent, _rc);

  const PixelRect rc = GetContainer().GetClientRect();

#ifndef GNAV
  close_button = new WndButton(GetContainer(),
                               UIGlobals::GetDialogLook().button,
                               _("Close"), rc, ButtonWindowStyle(),
                               *this, CLOSE);
#endif

  view = new BigThermalAssistantWindow(look, Layout::FastScale(10));
  view->Create(GetContainer(), rc);
}
Ejemplo n.º 4
0
void
TrafficWidget::Prepare(ContainerWindow &parent, const PixelRect &_rc)
{
  ContainerWidget::Prepare(parent, _rc);

  const Look &look = UIGlobals::GetLook();

  const PixelRect rc = GetContainer().GetClientRect();

#ifndef GNAV
  zoom_in_button = new WndSymbolButton(GetContainer(), look.dialog.button,
                                       _T("+"), rc, ButtonWindowStyle(),
                                       *this, ZOOM_IN);
  zoom_out_button = new WndSymbolButton(GetContainer(), look.dialog.button,
                                        _T("-"), rc, ButtonWindowStyle(),
                                        *this, ZOOM_OUT);
  previous_item_button = new WndSymbolButton(GetContainer(),
                                             look.dialog.button,
                                             _T("<"), rc, ButtonWindowStyle(),
                                             *this, PREVIOUS_ITEM);
  next_item_button = new WndSymbolButton(GetContainer(), look.dialog.button,
                                         _T(">"), rc, ButtonWindowStyle(),
                                         *this, NEXT_ITEM);
  details_button = new WndButton(GetContainer(), look.dialog.button,
                                 _("Details"), rc, ButtonWindowStyle(),
                                 *this, DETAILS);
  close_button = new WndButton(GetContainer(), look.dialog.button,
                               _("Close"), rc, ButtonWindowStyle(),
                               *this, CLOSE);
#endif

  WindowStyle style;
  style.EnableDoubleClicks();

  view = new FlarmTrafficControl(look.flarm_dialog);
  view->Create(GetContainer(), rc, style);

  UpdateLayout();
}
Ejemplo n.º 5
0
 void Create(ContainerWindow &parent, tstring::const_pointer text,
             const PixelRect &rc,
             const ButtonWindowStyle style=ButtonWindowStyle()) {
   Create(parent, text, 0, rc, style);
 }
Ejemplo n.º 6
0
 void Create(ContainerWindow &parent, tstring::const_pointer text,
             unsigned id,
             const PixelRect &rc,
             const ButtonWindowStyle style=ButtonWindowStyle()) {
   BaseButtonWindow::Create(parent, text, id, rc, style);
 }
Ejemplo n.º 7
0
 void set(ContainerWindow &parent, const TCHAR *text,
          const PixelRect &rc,
          const ButtonWindowStyle style=ButtonWindowStyle()) {
   set(parent, text, 0, rc, style);
 }
Ejemplo n.º 8
0
 void set(ContainerWindow &parent, const TCHAR *text, unsigned id,
          const PixelRect &rc,
          const ButtonWindowStyle style=ButtonWindowStyle()) {
   BaseButtonWindow::set(parent, text, id, rc, style);
 }
 void set(ContainerWindow &parent, const TCHAR *text,
          int left, int top, unsigned width, unsigned height,
          const ButtonWindowStyle style=ButtonWindowStyle()) {
   set(parent, text, 0, left, top, width, height, style);
 }