inline void
FlarmTrafficDetailsWidget::CreateButtons(WidgetDialog &buttons)
{
  const ButtonLook &look = buttons.GetButtonLook();

  constexpr Color green(0x74, 0xff, 0x00);
  buttons.AddButton(new ColorButtonRenderer(look, green), *this, GREEN);

  constexpr Color blue(0x00, 0x90, 0xff);
  buttons.AddButton(new ColorButtonRenderer(look, blue), *this, BLUE);

  constexpr Color yellow(0xff, 0xe8, 0x00);
  buttons.AddButton(new ColorButtonRenderer(look, yellow), *this, YELLOW);

  constexpr Color magenta(0xff, 0x00, 0xcb);
  buttons.AddButton(new ColorButtonRenderer(look, magenta), *this, MAGENTA);

  buttons.AddButton(_("Clear"), *this, CLEAR);
  buttons.AddButton(_("Team"), *this, TEAM);
}
inline void
FlarmTrafficDetailsWidget::CreateButtons(WidgetDialog &buttons)
{
  const ButtonLook &button_look = buttons.GetButtonLook();

  buttons.AddButton(new ColorButtonRenderer(button_look,
                                            TrafficLook::team_color_green),
                    *this, GREEN);

  buttons.AddButton(new ColorButtonRenderer(button_look,
                                            TrafficLook::team_color_blue),
                    *this, BLUE);

  buttons.AddButton(new ColorButtonRenderer(button_look,
                                            TrafficLook::team_color_yellow),
                    *this, YELLOW);

  buttons.AddButton(new ColorButtonRenderer(button_look,
                                            TrafficLook::team_color_magenta),
                    *this, MAGENTA);

  buttons.AddButton(_("Clear"), *this, CLEAR);
  buttons.AddButton(_("Team"), *this, TEAM);
}
 void CreateButtons(WidgetDialog &dialog) {
   relocate_button = dialog.AddButton(_("Relocate"), *this, RELOCATE);
   remove_button = dialog.AddButton(_("Remove"), *this, REMOVE);
   dialog.AddButton(_("Close"), mrCancel);
 }
Exemple #4
0
 void CreateButtons(WidgetDialog &buttons) {
   buttons.AddButton(_("List"), *this, LIST);
   buttons.AddButton(_("Import"), *this, IMPORT);
 }
Exemple #5
0
 void CreateButtons(WidgetDialog &dialog) {
   dialog.AddButton(_("Start"), *this, START);
   dialog.AddButton(_("Stop"), *this, STOP);
   dialog.AddButton(_T("+10'"), *this, FAST_FORWARD);
 }
Exemple #6
0
void
NOAADetailsWidget::CreateButtons(WidgetDialog &buttons)
{
  buttons.AddButton(_("Update"), *this, UPDATE);
  buttons.AddButton(_("Remove"), *this, REMOVE);
}
Exemple #7
0
 void CreateButtons(WidgetDialog &dialog) {
   dialog.AddButton(_("Scan"), *this, SCAN);
   connect_button = dialog.AddButton(_("Connect"), *this, CONNECT);
 }