本文整理汇总了C++中WidgetDialog类的典型用法代码示例。如果您正苦于以下问题:C++ WidgetDialog类的具体用法?C++ WidgetDialog怎么用?C++ WidgetDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WidgetDialog类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1:
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);
}
开发者ID:Exadios,项目名称:xcsoar-exp,代码行数:7,代码来源:TeamCodeDialog.cpp
示例2:
void
AlternatesListWidget::CreateButtons(WidgetDialog &dialog)
{
goto_button = dialog.AddButton(_("Goto"), *this, GOTO);
details_button = dialog.AddButton(_("Details"), mrOK);
cancel_button = dialog.AddButton(_("Close"), mrCancel);
}
开发者ID:Tjeerdm,项目名称:XCSoarDktjm,代码行数:7,代码来源:dlgAlternatesList.cpp
示例3:
void
MapItemListWidget::CreateButtons(WidgetDialog &dialog)
{
settings_button = dialog.AddButton(_("Settings"), this, SETTINGS);
details_button = dialog.AddButton(_("Details"), mrOK);
dialog.AddButton(_("Close"), mrCancel);
}
开发者ID:damianob,项目名称:xcsoar_mess,代码行数:7,代码来源:MapItemListDialog.cpp
示例4:
void
PortMonitorWidget::CreateButtons(WidgetDialog &dialog)
{
dialog.AddButton(_("Clear"), *this, CLEAR);
dialog.AddButton(_("Reconnect"), *this, RECONNECT);
pause_button = dialog.AddButton(_("Pause"), *this, PAUSE);
}
开发者ID:CnZoom,项目名称:XcSoarPull,代码行数:7,代码来源:PortMonitor.cpp
示例5:
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);
}
开发者ID:ThomasXBMC,项目名称:XCSoar,代码行数:8,代码来源:NOAAList.cpp
示例6:
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);
}
开发者ID:ThomasXBMC,项目名称:XCSoar,代码行数:9,代码来源:Manager.cpp
示例7:
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);
}
开发者ID:kwtskran,项目名称:XCSoar,代码行数:9,代码来源:MapItemListDialog.cpp
示例8:
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);
}
开发者ID:osteocool,项目名称:XCSoar-1,代码行数:9,代码来源:DeviceListDialog.cpp
示例9:
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);
}
开发者ID:CnZoom,项目名称:XcSoarPull,代码行数:10,代码来源:PlaneListDialog.cpp
示例10:
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);
}
开发者ID:M-Scholli,项目名称:XCSoar,代码行数:10,代码来源:ProfileListDialog.cpp
示例11:
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);
}
开发者ID:XCSoar,项目名称:XCSoar,代码行数:10,代码来源:KoboMenu.cpp
示例12:
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
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:11,代码来源:FileManager.cpp
示例13: OnCloseClicked
/**
* 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);
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:11,代码来源:dlgConfiguration.cpp
示例14: OnPageFlipped
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);
}
开发者ID:DRIZO,项目名称:xcsoar,代码行数:11,代码来源:dlgConfiguration.cpp
示例15:
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);
}
开发者ID:ThomasXBMC,项目名称:XCSoar,代码行数:11,代码来源:DeviceListDialog.cpp
示例16:
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);
}
开发者ID:Exadios,项目名称:xcsoar-exp,代码行数:15,代码来源:KnobTextEntry.cpp
示例17: green
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);
}
开发者ID:Turbo87,项目名称:XCSoar-TE,代码行数:20,代码来源:FlarmTrafficDetails.cpp
示例18: ColorButtonRenderer
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);
}
开发者ID:Andy-1954,项目名称:XCSoar,代码行数:24,代码来源:FlarmTrafficDetails.cpp
示例19: CreateButtons
void CreateButtons(WidgetDialog &dialog) {
relocate_button = dialog.AddButton(_("Relocate"), *this, RELOCATE);
remove_button = dialog.AddButton(_("Remove"), *this, REMOVE);
dialog.AddButton(_("Close"), mrCancel);
}
开发者ID:CnZoom,项目名称:XcSoarPull,代码行数:5,代码来源:OptionalStartsDialog.cpp
示例20: CreateButtons
void CreateButtons(WidgetDialog &buttons) {
buttons.AddButton(_("List"), *this, LIST);
buttons.AddButton(_("Import"), *this, IMPORT);
}
开发者ID:Adrien81,项目名称:XCSoar,代码行数:4,代码来源:PlanePolarDialog.cpp
注:本文中的WidgetDialog类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论