inline void
TeamCodeWidget::CreateButtons(WidgetDialog &buttons)
{
  buttons.AddButton(_("Set code"), *this, SET_CODE);
  buttons.AddButton(_("Set WP"), *this, SET_WAYPOINT);
  buttons.AddButton(_("Flarm Lock"), *this, SET_FLARM_LOCK);
}
void
AlternatesListWidget::CreateButtons(WidgetDialog &dialog)
{
  goto_button = dialog.AddButton(_("Goto"), *this, GOTO);
  details_button = dialog.AddButton(_("Details"), mrOK);
  cancel_button = dialog.AddButton(_("Close"), mrCancel);
}
void
MapItemListWidget::CreateButtons(WidgetDialog &dialog)
{
  settings_button = dialog.AddButton(_("Settings"), this, SETTINGS);
  details_button = dialog.AddButton(_("Details"), mrOK);
  dialog.AddButton(_("Close"), mrCancel);
}
Exemple #4
0
void
PortMonitorWidget::CreateButtons(WidgetDialog &dialog)
{
  dialog.AddButton(_("Clear"), *this, CLEAR);
  dialog.AddButton(_("Reconnect"), *this, RECONNECT);
  pause_button = dialog.AddButton(_("Pause"), *this, PAUSE);
}
Exemple #5
0
void
NOAAListWidget::CreateButtons(WidgetDialog &dialog)
{
  details_button = dialog.AddButton(_("Details"), *this, DETAILS);
  add_button = dialog.AddButton(_("Add"), *this, ADD);
  update_button = dialog.AddButton(_("Update"), *this, UPDATE);
  remove_button = dialog.AddButton(_("Remove"), *this, REMOVE);
}
Exemple #6
0
void
WaypointManagerWidget::CreateButtons(WidgetDialog &dialog)
{
  new_button = dialog.AddButton(_("New"), *this, NEW);
  edit_button = dialog.AddButton(_("Import"), *this, IMPORT);
  edit_button = dialog.AddButton(_("Edit"), *this, EDIT);
  save_button = dialog.AddButton(_("Save"), *this, SAVE);
  delete_button = dialog.AddButton(_("Delete"), *this, DELETE);
}
void
MapItemListWidget::CreateButtons(WidgetDialog &dialog)
{
  settings_button = dialog.AddButton(_("Settings"), *this, SETTINGS);
  goto_button = dialog.AddButton(_("Goto"), *this, GOTO);
  ack_button = dialog.AddButton(_("Ack Day"), *this, ACK);
  details_button = dialog.AddButton(_("Details"), mrOK);
  cancel_button = dialog.AddButton(_("Close"), mrCancel);
}
void
DeviceListWidget::CreateButtons(WidgetDialog &dialog)
{
  reconnect_button = dialog.AddButton(_("Reconnect"), this, RECONNECT);
  flight_button = dialog.AddButton(_("Flight download"), this, FLIGHT);
  edit_button = dialog.AddButton(_("Edit"), this, EDIT);
  manage_button = dialog.AddButton(_("Manage"), this, MANAGE);
  monitor_button = dialog.AddButton(_("Monitor"), this, MONITOR);
}
void
PlaneListWidget::CreateButtons(WidgetDialog &dialog)
{
  form = &dialog;

  dialog.AddButton(_("New"), *this, NEW);
  edit_button = dialog.AddButton(_("Edit"), *this, EDIT);
  delete_button = dialog.AddButton(_("Delete"), *this, DELETE);
  load_button = dialog.AddButton(_("Activate"), *this, LOAD);
}
void
ProfileListWidget::CreateButtons(WidgetDialog &dialog)
{
  form = &dialog;

  dialog.AddButton(_("New"), *this, NEW);
  password_button = dialog.AddButton(_("Password"), *this, PASSWORD);
  copy_button = dialog.AddButton(_("Copy"), *this, COPY);
  delete_button = dialog.AddButton(_("Delete"), *this, DELETE);
}
Exemple #11
0
void
KoboMenuWidget::CreateButtons(WidgetDialog &buttons)
{
    buttons.AddButton(("Nickel"), dialog, LAUNCH_NICKEL)
    ->SetEnabled(!IsKoboOTGKernel());
    buttons.AddButton(("Tools"), *this, TOOLS);
    buttons.AddButton(_("Network"), *this, NETWORK);
    buttons.AddButton("System", *this, SYSTEM);
    buttons.AddButton(("Poweroff"), dialog, POWEROFF);
}
Exemple #12
0
void
ManagedFileListWidget::CreateButtons(WidgetDialog &dialog)
{
#ifdef HAVE_DOWNLOAD_MANAGER
  if (Net::DownloadManager::IsAvailable()) {
    download_button = dialog.AddButton(_("Download"), *this, DOWNLOAD);
    add_button = dialog.AddButton(_("Add"), *this, ADD);
    cancel_button = dialog.AddButton(_("Cancel"), *this, CANCEL);
  }
#endif
}
Exemple #13
0
/**
 * close dialog from menu page.  from content, goes to menu page
 */
static void
OnCloseClicked(WidgetDialog &dialog)
{
  if (pager->GetCurrentIndex() == 0)
    dialog.SetModalResult(mrOK);
  else
    pager->ClickPage(0);
}
Exemple #14
0
static void
OnPageFlipped(WidgetDialog &dialog, TabMenuDisplay &menu)
{
  menu.OnPageFlipped();

  TCHAR buffer[128];
  const TCHAR *caption = menu.GetCaption(buffer, ARRAY_SIZE(buffer));
  if (caption == nullptr)
    caption = _("Configuration");
  dialog.SetCaption(caption);
}
void
DeviceListWidget::CreateButtons(WidgetDialog &dialog)
{
  edit_button = dialog.AddButton(_("Edit"), *this, EDIT);
  flight_button = dialog.AddButton(_("Flight download"), *this, FLIGHT);
  manage_button = dialog.AddButton(_("Manage"), *this, MANAGE);
  monitor_button = dialog.AddButton(_("Monitor"), *this, MONITOR);
  reconnect_button = dialog.AddButton(_("Reconnect"), *this, RECONNECT);
  disable_button = dialog.AddButton(_("Disable"), *this, DISABLE);
  debug_button = dialog.AddButton(_("Debug"), *this, DEBUG);
}
Exemple #16
0
inline void
KnobTextEntryWidget::CreateButtons(WidgetDialog &dialog)
{
  dialog.AddButton(_T("A+"), window, DOWN);
  dialog.AddButtonKey(KEY_UP);

  dialog.AddButton(_T("A-"), window, UP);
  dialog.AddButtonKey(KEY_DOWN);

  dialog.AddSymbolButton(_T("<"), window, LEFT);
  dialog.AddButtonKey(KEY_LEFT);

  dialog.AddSymbolButton(_T(">"), window, RIGHT);
  dialog.AddButtonKey(KEY_RIGHT);
}
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 #20
0
 void CreateButtons(WidgetDialog &dialog) {
   dialog.AddButton(_("Scan"), *this, SCAN);
   connect_button = dialog.AddButton(_("Connect"), *this, CONNECT);
 }
Exemple #21
0
 void CreateButtons(WidgetDialog &buttons) {
   buttons.AddButton(_("List"), *this, LIST);
   buttons.AddButton(_("Import"), *this, IMPORT);
 }
Exemple #22
0
void
NOAADetailsWidget::CreateButtons(WidgetDialog &buttons)
{
  buttons.AddButton(_("Update"), *this, UPDATE);
  buttons.AddButton(_("Remove"), *this, REMOVE);
}
Exemple #23
0
 void CreateButtons(WidgetDialog &dialog) {
   dialog.AddButton(_("Start"), *this, START);
   dialog.AddButton(_("Stop"), *this, STOP);
   dialog.AddButton(_T("+10'"), *this, FAST_FORWARD);
 }