コード例 #1
0
ファイル: PortMonitor.cpp プロジェクト: MindMil/XCSoar
void
PortMonitorGlue::CreateButtons(ButtonPanel &buttons)
{
  buttons.Add(_("Clear"), *this, CLEAR);
  buttons.Add(_("Reconnect"), *this, RECONNECT);
  pause_button = buttons.Add(_("Pause"), *this, PAUSE);
}
コード例 #2
0
 void CreateButtons(ButtonPanel &buttons) {
   add_button = buttons.Add(_("Add"), *this, ADD);
   delete_button = buttons.Add(_("Delete"), *this, DELETE);
   move_up_button = buttons.AddSymbol(_T("^"), *this, MOVE_UP);
   move_down_button = buttons.AddSymbol(_T("v"), *this, MOVE_DOWN);
 }
コード例 #3
0
ファイル: TaskListPanel.cpp プロジェクト: henrik1g/XCSoar
 void CreateButtons(ButtonPanel &buttons) {
   buttons.Add(_("Load"), *this, LOAD);
   buttons.Add(_("Rename"), *this, RENAME);
   buttons.Add(_("Delete"), *this, DELETE);
   more_button = buttons.Add(_("More"), *this, MORE);
 }
コード例 #4
0
ファイル: WidgetDialog.hpp プロジェクト: Tjeerdm/XCSoarDktjm
 WndButton *AddButton(const TCHAR *caption,
                      ActionListener &listener, int id) {
   return buttons.Add(caption, listener, id);
 }
コード例 #5
0
void
WeatherMapOverlayListWidget::CreateButtons(ButtonPanel &buttons)
{
  use_button = buttons.Add(_("Use"), *this, USE);
  disable_button = buttons.Add(_("Disable"), *this, DISABLE);
}