本文整理汇总了C++中DeviceDescriptor::GetConfig方法的典型用法代码示例。如果您正苦于以下问题:C++ DeviceDescriptor::GetConfig方法的具体用法?C++ DeviceDescriptor::GetConfig怎么用?C++ DeviceDescriptor::GetConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DeviceDescriptor
的用法示例。
在下文中一共展示了DeviceDescriptor::GetConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dialog
void
ShowPortMonitor(SingleWindow &parent, const DialogLook &dialog_look,
const TerminalLook &terminal_look,
DeviceDescriptor &device)
{
/* create the dialog */
WindowStyle dialog_style;
dialog_style.Hide();
dialog_style.ControlParent();
TCHAR buffer[64];
StaticString<128> caption;
caption.Format(_T("%s: %s"), _("Port monitor"),
device.GetConfig().GetPortName(buffer, ARRAY_SIZE(buffer)));
WndForm dialog(dialog_look);
dialog.Create(parent, caption, dialog_style);
ContainerWindow &client_area = dialog.GetClientAreaWindow();
PortMonitorGlue glue(device, terminal_look);
ButtonPanel buttons(client_area, dialog_look);
buttons.Add(_("Close"), dialog, mrOK);
glue.CreateButtons(buttons);
glue.CreateTerminal(client_area, buttons.UpdateLayout());
/* run it */
dialog.ShowModal();
}
示例2: widget
void
ShowPortMonitor(DeviceDescriptor &device)
{
const Look &look = UIGlobals::GetLook();
TCHAR buffer[64];
StaticString<128> caption;
caption.Format(_T("%s: %s"), _("Port monitor"),
device.GetConfig().GetPortName(buffer, ARRAY_SIZE(buffer)));
PortMonitorWidget widget(device, look.terminal);
WidgetDialog dialog(look.dialog);
dialog.CreateFull(UIGlobals::GetMainWindow(), caption, &widget);
dialog.AddButton(_("Close"), mrOK);
widget.CreateButtons(dialog);
dialog.ShowModal();
dialog.StealWidget();
}