mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-22 19:58:39 -05:00
Merge pull request #728 from cjcliffe/rigmenu_serial
Fix port selector dialog; simplify rig model selection with manufacturer sub-menus
This commit is contained in:
commit
19b922a863
@ -483,7 +483,7 @@ ModeSelectorCanvas *AppFrame::makeModemAdvSelectorPanel(wxPanel *parent, const w
|
|||||||
|
|
||||||
#ifdef USE_HAMLIB
|
#ifdef USE_HAMLIB
|
||||||
wxMenu *AppFrame::makeRigMenu() {
|
wxMenu *AppFrame::makeRigMenu() {
|
||||||
wxMenu *pMenu = new wxMenu;
|
auto *pMenu = new wxMenu;
|
||||||
|
|
||||||
rigEnableMenuItem = pMenu->AppendCheckItem(wxID_RIG_TOGGLE, wxT("Enable Rig"));
|
rigEnableMenuItem = pMenu->AppendCheckItem(wxID_RIG_TOGGLE, wxT("Enable Rig"));
|
||||||
|
|
||||||
@ -501,20 +501,37 @@ wxMenu *AppFrame::makeRigMenu() {
|
|||||||
rigFollowModemMenuItem = pMenu->AppendCheckItem(wxID_RIG_FOLLOW_MODEM, wxT("Track Modem"));
|
rigFollowModemMenuItem = pMenu->AppendCheckItem(wxID_RIG_FOLLOW_MODEM, wxT("Track Modem"));
|
||||||
rigFollowModemMenuItem->Check(wxGetApp().getConfig()->getRigFollowModem());
|
rigFollowModemMenuItem->Check(wxGetApp().getConfig()->getRigFollowModem());
|
||||||
|
|
||||||
wxMenu *rigModelMenu = new wxMenu;
|
auto *rigModelMenu = new wxMenu;
|
||||||
RigList &rl = RigThread::enumerate();
|
RigList &rl = RigThread::enumerate();
|
||||||
numRigs = rl.size();
|
|
||||||
|
std::map<string, int> mfgCount;
|
||||||
|
std::map<string, wxMenu *> mfgMenu;
|
||||||
|
for (auto ri : rl) {
|
||||||
|
mfgCount[ri->mfg_name]++;
|
||||||
|
}
|
||||||
|
|
||||||
int modelMenuId = wxID_RIG_MODEL_BASE;
|
int modelMenuId = wxID_RIG_MODEL_BASE;
|
||||||
for (auto ri = rl.begin(); ri != rl.end(); ri++) {
|
|
||||||
string modelString((*ri)->mfg_name);
|
for (auto ri : rl) {
|
||||||
|
string modelString(ri->mfg_name);
|
||||||
modelString.append(" ");
|
modelString.append(" ");
|
||||||
modelString.append((*ri)->model_name);
|
modelString.append(ri->model_name);
|
||||||
|
|
||||||
rigModelMenuItems[(*ri)->rig_model] = rigModelMenu->AppendRadioItem(modelMenuId, modelString, wxT("Description?"));
|
wxMenu *parentMenu = nullptr;
|
||||||
|
|
||||||
if (rigModel == (*ri)->rig_model) {
|
if (mfgCount[ri->mfg_name] > 1) {
|
||||||
rigModelMenuItems[(*ri)->rig_model]->Check(true);
|
if (mfgMenu.find(ri->mfg_name) == mfgMenu.end()) {
|
||||||
|
rigModelMenu->AppendSubMenu(mfgMenu[ri->mfg_name] = new wxMenu(), ri->mfg_name);
|
||||||
|
}
|
||||||
|
parentMenu = mfgMenu[ri->mfg_name];
|
||||||
|
} else {
|
||||||
|
parentMenu = rigModelMenu;
|
||||||
|
}
|
||||||
|
|
||||||
|
rigModelMenuItems[ri->rig_model] = parentMenu->AppendCheckItem(modelMenuId, modelString, ri->copyright);
|
||||||
|
|
||||||
|
if (rigModel == ri->rig_model) {
|
||||||
|
rigModelMenuItems[ri->rig_model]->Check(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
modelMenuId++;
|
modelMenuId++;
|
||||||
@ -522,7 +539,7 @@ wxMenu *AppFrame::makeRigMenu() {
|
|||||||
|
|
||||||
pMenu->AppendSubMenu(rigModelMenu, wxT("Model"));
|
pMenu->AppendSubMenu(rigModelMenu, wxT("Model"));
|
||||||
|
|
||||||
wxMenu *rigSerialMenu = new wxMenu;
|
auto *rigSerialMenu = new wxMenu;
|
||||||
|
|
||||||
rigSerialRates.push_back(1200);
|
rigSerialRates.push_back(1200);
|
||||||
rigSerialRates.push_back(2400);
|
rigSerialRates.push_back(2400);
|
||||||
@ -536,15 +553,15 @@ wxMenu *AppFrame::makeRigMenu() {
|
|||||||
rigSerialRates.push_back(256000);
|
rigSerialRates.push_back(256000);
|
||||||
|
|
||||||
int rateMenuId = wxID_RIG_SERIAL_BASE;
|
int rateMenuId = wxID_RIG_SERIAL_BASE;
|
||||||
for (auto rate_i = rigSerialRates.begin(); rate_i != rigSerialRates.end(); rate_i++) {
|
for (auto rate_i : rigSerialRates) {
|
||||||
string rateString;
|
string rateString;
|
||||||
rateString.append(std::to_string((*rate_i)));
|
rateString.append(std::to_string(rate_i));
|
||||||
rateString.append(" baud");
|
rateString.append(" baud");
|
||||||
|
|
||||||
rigSerialMenuItems[(*rate_i)] = rigSerialMenu->AppendRadioItem(rateMenuId, rateString, wxT("Description?"));
|
rigSerialMenuItems[rate_i] = rigSerialMenu->AppendRadioItem(rateMenuId, rateString, wxT("Description?"));
|
||||||
|
|
||||||
if (rigSerialRate == (*rate_i)) {
|
if (rigSerialRate == rate_i) {
|
||||||
rigSerialMenuItems[(*rate_i)]->Check(true);
|
rigSerialMenuItems[rate_i]->Check(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
rateMenuId++;
|
rateMenuId++;
|
||||||
@ -1822,12 +1839,16 @@ bool AppFrame::actionOnMenuRig(wxCommandEvent &event) {
|
|||||||
|
|
||||||
bool resetRig = false;
|
bool resetRig = false;
|
||||||
if (event.GetId() >= wxID_RIG_MODEL_BASE && event.GetId() < wxID_RIG_MODEL_BASE + numRigs) {
|
if (event.GetId() >= wxID_RIG_MODEL_BASE && event.GetId() < wxID_RIG_MODEL_BASE + numRigs) {
|
||||||
|
|
||||||
int rigIdx = event.GetId() - wxID_RIG_MODEL_BASE;
|
int rigIdx = event.GetId() - wxID_RIG_MODEL_BASE;
|
||||||
|
|
||||||
RigList &rl = RigThread::enumerate();
|
RigList &rl = RigThread::enumerate();
|
||||||
rigModel = rl[rigIdx]->rig_model;
|
rigModel = rl[rigIdx]->rig_model;
|
||||||
|
|
||||||
if (devInfo != nullptr) {
|
if (devInfo != nullptr) {
|
||||||
std::string deviceId = devInfo->getDeviceId();
|
std::string deviceId = devInfo->getDeviceId();
|
||||||
DeviceConfig *devConfig = wxGetApp().getConfig()->getDevice(deviceId);
|
DeviceConfig *devConfig = wxGetApp().getConfig()->getDevice(deviceId);
|
||||||
|
|
||||||
rigSDRIF = devConfig->getRigIF(rigModel);
|
rigSDRIF = devConfig->getRigIF(rigModel);
|
||||||
if (rigSDRIF) {
|
if (rigSDRIF) {
|
||||||
wxGetApp().lockFrequency(rigSDRIF);
|
wxGetApp().lockFrequency(rigSDRIF);
|
||||||
@ -1837,9 +1858,15 @@ bool AppFrame::actionOnMenuRig(wxCommandEvent &event) {
|
|||||||
} else {
|
} else {
|
||||||
wxGetApp().unlockFrequency();
|
wxGetApp().unlockFrequency();
|
||||||
}
|
}
|
||||||
resetRig = true;
|
|
||||||
|
|
||||||
|
resetRig = true;
|
||||||
bManaged = true;
|
bManaged = true;
|
||||||
|
|
||||||
|
for (auto ri : rigModelMenuItems) {
|
||||||
|
ri.second->Check(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
rigModelMenuItems[rigModel]->Check(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
int rigSerialIdMax = wxID_RIG_SERIAL_BASE + rigSerialRates.size();
|
int rigSerialIdMax = wxID_RIG_SERIAL_BASE + rigSerialRates.size();
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
<wxFormBuilder_Project>
|
<wxFormBuilder_Project>
|
||||||
<FileVersion major="1" minor="14" />
|
<FileVersion major="1" minor="15" />
|
||||||
<object class="Project" expanded="1">
|
<object class="Project" expanded="1">
|
||||||
<property name="class_decoration" />
|
<property name="class_decoration"></property>
|
||||||
<property name="code_generation">C++</property>
|
<property name="code_generation">C++</property>
|
||||||
<property name="disconnect_events">1</property>
|
<property name="disconnect_events">1</property>
|
||||||
<property name="disconnect_mode">source_name</property>
|
<property name="disconnect_mode">source_name</property>
|
||||||
@ -14,11 +14,12 @@
|
|||||||
<property name="file">PortSelectorDialogBase</property>
|
<property name="file">PortSelectorDialogBase</property>
|
||||||
<property name="first_id">1000</property>
|
<property name="first_id">1000</property>
|
||||||
<property name="help_provider">none</property>
|
<property name="help_provider">none</property>
|
||||||
|
<property name="indent_with_spaces"></property>
|
||||||
<property name="internationalize">0</property>
|
<property name="internationalize">0</property>
|
||||||
<property name="name">PortSelectorDialog</property>
|
<property name="name">PortSelectorDialog</property>
|
||||||
<property name="namespace" />
|
<property name="namespace"></property>
|
||||||
<property name="path">.</property>
|
<property name="path">.</property>
|
||||||
<property name="precompiled_header" />
|
<property name="precompiled_header"></property>
|
||||||
<property name="relative_path">1</property>
|
<property name="relative_path">1</property>
|
||||||
<property name="skip_lua_events">1</property>
|
<property name="skip_lua_events">1</property>
|
||||||
<property name="skip_php_events">1</property>
|
<property name="skip_php_events">1</property>
|
||||||
@ -29,151 +30,93 @@
|
|||||||
<object class="Dialog" expanded="1">
|
<object class="Dialog" expanded="1">
|
||||||
<property name="aui_managed">0</property>
|
<property name="aui_managed">0</property>
|
||||||
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="center">wxBOTH</property>
|
<property name="center">wxBOTH</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="event_handler">impl_virtual</property>
|
<property name="event_handler">impl_virtual</property>
|
||||||
<property name="extra_style" />
|
<property name="extra_style"></property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="font" />
|
<property name="font"></property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size">300,200</property>
|
||||||
<property name="name">PortSelectorDialogBase</property>
|
<property name="name">PortSelectorDialogBase</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
<property name="size">304,197</property>
|
<property name="size">320,260</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="title">Select Port</property>
|
<property name="title">Select Port</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<event name="OnActivate" />
|
|
||||||
<event name="OnActivateApp" />
|
|
||||||
<event name="OnAuiFindManager" />
|
|
||||||
<event name="OnAuiPaneButton" />
|
|
||||||
<event name="OnAuiPaneClose" />
|
|
||||||
<event name="OnAuiPaneMaximize" />
|
|
||||||
<event name="OnAuiPaneRestore" />
|
|
||||||
<event name="OnAuiRender" />
|
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnClose" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnHibernate" />
|
|
||||||
<event name="OnIconize" />
|
|
||||||
<event name="OnIdle" />
|
|
||||||
<event name="OnInitDialog" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="name">dlgSizer</property>
|
<property name="name">dlgSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALL</property>
|
<property name="flag">wxALIGN_CENTER|wxTOP</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="aui_layer" />
|
<property name="aui_layer"></property>
|
||||||
<property name="aui_name" />
|
<property name="aui_name"></property>
|
||||||
<property name="aui_position" />
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row" />
|
<property name="aui_row"></property>
|
||||||
<property name="best_size" />
|
<property name="best_size"></property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="caption" />
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font" />
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Select a detected port or enter your own</property>
|
<property name="label">Select a detected port or enter your own</property>
|
||||||
<property name="max_size" />
|
<property name="markup">0</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="min_size" />
|
<property name="min_size"></property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_staticText1</property>
|
<property name="name">m_staticText1</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position" />
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size" />
|
<property name="pane_size"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size" />
|
<property name="size"></property>
|
||||||
<property name="style" />
|
<property name="style"></property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<property name="wrap">-1</property>
|
<property name="wrap">-1</property>
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
@ -185,538 +128,360 @@
|
|||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="aui_layer" />
|
<property name="aui_layer"></property>
|
||||||
<property name="aui_name" />
|
<property name="aui_name"></property>
|
||||||
<property name="aui_position" />
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row" />
|
<property name="aui_row"></property>
|
||||||
<property name="best_size" />
|
<property name="best_size"></property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="caption" />
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices" />
|
<property name="choices"></property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font" />
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="max_size" />
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="min_size" />
|
<property name="min_size"></property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_portList</property>
|
<property name="name">m_portList</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position" />
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size" />
|
<property name="pane_size"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size" />
|
<property name="size"></property>
|
||||||
<property name="style" />
|
<property name="style"></property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="validator_data_type" />
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
<property name="validator_variable" />
|
<property name="validator_variable"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnListBox">onListSelect</event>
|
<event name="OnListBox">onListSelect</event>
|
||||||
<event name="OnListBoxDClick" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size">-1,30</property>
|
<property name="minimum_size">-1,30</property>
|
||||||
<property name="name">bSizer3</property>
|
<property name="name">bSizer3</property>
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="aui_layer" />
|
<property name="aui_layer"></property>
|
||||||
<property name="aui_name" />
|
<property name="aui_name"></property>
|
||||||
<property name="aui_position" />
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row" />
|
<property name="aui_row"></property>
|
||||||
<property name="best_size" />
|
<property name="best_size"></property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="caption" />
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font" />
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Port</property>
|
<property name="label">Port</property>
|
||||||
<property name="max_size" />
|
<property name="markup">0</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="min_size" />
|
<property name="min_size"></property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_staticText2</property>
|
<property name="name">m_staticText2</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position" />
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size" />
|
<property name="pane_size"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size" />
|
<property name="size"></property>
|
||||||
<property name="style" />
|
<property name="style"></property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<property name="wrap">-1</property>
|
<property name="wrap">-1</property>
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxRIGHT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxTextCtrl" expanded="1">
|
<object class="wxTextCtrl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="aui_layer" />
|
<property name="aui_layer"></property>
|
||||||
<property name="aui_name" />
|
<property name="aui_name"></property>
|
||||||
<property name="aui_position" />
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row" />
|
<property name="aui_row"></property>
|
||||||
<property name="best_size" />
|
<property name="best_size"></property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="caption" />
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font" />
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="max_size" />
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="maxlength" />
|
<property name="maxlength"></property>
|
||||||
<property name="min_size" />
|
<property name="min_size"></property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_portSelection</property>
|
<property name="name">m_portSelection</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position" />
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size" />
|
<property name="pane_size"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size" />
|
<property name="size"></property>
|
||||||
<property name="style" />
|
<property name="style"></property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="validator_data_type" />
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
<property name="validator_variable" />
|
<property name="validator_variable"></property>
|
||||||
<property name="value" />
|
<property name="value"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnText" />
|
|
||||||
<event name="OnTextEnter" />
|
|
||||||
<event name="OnTextMaxLen" />
|
|
||||||
<event name="OnTextURL" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND | wxALL</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxPanel" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer" />
|
|
||||||
<property name="aui_name" />
|
|
||||||
<property name="aui_position" />
|
|
||||||
<property name="aui_row" />
|
|
||||||
<property name="best_size" />
|
|
||||||
<property name="bg" />
|
|
||||||
<property name="caption" />
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help" />
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg" />
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font" />
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="max_size" />
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size" />
|
|
||||||
<property name="min_size" />
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size" />
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_buttonPanel</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position" />
|
|
||||||
<property name="pane_size" />
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos" />
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size" />
|
|
||||||
<property name="subclass" />
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip" />
|
|
||||||
<property name="window_extra_style" />
|
|
||||||
<property name="window_name" />
|
|
||||||
<property name="window_style">wxTAB_TRAVERSAL</property>
|
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
<object class="wxBoxSizer" expanded="1">
|
|
||||||
<property name="minimum_size" />
|
|
||||||
<property name="name">bSizer2</property>
|
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
|
||||||
<property name="permission">none</property>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxALL|wxALIGN_BOTTOM</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxButton" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer" />
|
|
||||||
<property name="aui_name" />
|
|
||||||
<property name="aui_position" />
|
|
||||||
<property name="aui_row" />
|
|
||||||
<property name="best_size" />
|
|
||||||
<property name="bg" />
|
|
||||||
<property name="caption" />
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help" />
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default">0</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg" />
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font" />
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="label">Cancel</property>
|
|
||||||
<property name="max_size" />
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size" />
|
|
||||||
<property name="min_size" />
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size" />
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_cancelButton</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position" />
|
|
||||||
<property name="pane_size" />
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos" />
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size" />
|
|
||||||
<property name="style" />
|
|
||||||
<property name="subclass" />
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip" />
|
|
||||||
<property name="validator_data_type" />
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable" />
|
|
||||||
<property name="window_extra_style" />
|
|
||||||
<property name="window_name" />
|
|
||||||
<property name="window_style" />
|
|
||||||
<event name="OnButtonClick">onCancelButton</event>
|
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">bSizer2</property>
|
||||||
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<object class="sizeritem" expanded="0">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL|wxALIGN_BOTTOM</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxButton" expanded="0">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="bitmap"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="current"></property>
|
||||||
|
<property name="default">0</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="disabled"></property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="focus"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Cancel</property>
|
||||||
|
<property name="margins"></property>
|
||||||
|
<property name="markup">0</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_cancelButton</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="position"></property>
|
||||||
|
<property name="pressed"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnButtonClick">onCancelButton</event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="spacer" expanded="1">
|
<object class="spacer" expanded="0">
|
||||||
<property name="height">0</property>
|
<property name="height">0</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="width">0</property>
|
<property name="width">0</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxALIGN_BOTTOM</property>
|
<property name="flag">wxALL|wxALIGN_BOTTOM</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxButton" expanded="1">
|
<object class="wxButton" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="aui_layer" />
|
<property name="aui_layer"></property>
|
||||||
<property name="aui_name" />
|
<property name="aui_name"></property>
|
||||||
<property name="aui_position" />
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row" />
|
<property name="aui_row"></property>
|
||||||
<property name="best_size" />
|
<property name="best_size"></property>
|
||||||
<property name="bg" />
|
<property name="bg"></property>
|
||||||
<property name="caption" />
|
<property name="bitmap"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help" />
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
<property name="current"></property>
|
||||||
<property name="default">0</property>
|
<property name="default">0</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
|
<property name="disabled"></property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="fg" />
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font" />
|
<property name="focus"></property>
|
||||||
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">OK</property>
|
<property name="label">OK</property>
|
||||||
<property name="max_size" />
|
<property name="margins"></property>
|
||||||
|
<property name="markup">0</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size" />
|
<property name="maximum_size"></property>
|
||||||
<property name="min_size" />
|
<property name="min_size"></property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size" />
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_okButton</property>
|
<property name="name">m_okButton</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position" />
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size" />
|
<property name="pane_size"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos" />
|
<property name="pos"></property>
|
||||||
|
<property name="position"></property>
|
||||||
|
<property name="pressed"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size" />
|
<property name="size"></property>
|
||||||
<property name="style" />
|
<property name="style"></property>
|
||||||
<property name="subclass" />
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip" />
|
<property name="tooltip"></property>
|
||||||
<property name="validator_data_type" />
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
<property name="validator_variable" />
|
<property name="validator_variable"></property>
|
||||||
<property name="window_extra_style" />
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name" />
|
<property name="window_name"></property>
|
||||||
<property name="window_style" />
|
<property name="window_style"></property>
|
||||||
<event name="OnButtonClick">onOKButton</event>
|
<event name="OnButtonClick">onOKButton</event>
|
||||||
<event name="OnChar" />
|
|
||||||
<event name="OnEnterWindow" />
|
|
||||||
<event name="OnEraseBackground" />
|
|
||||||
<event name="OnKeyDown" />
|
|
||||||
<event name="OnKeyUp" />
|
|
||||||
<event name="OnKillFocus" />
|
|
||||||
<event name="OnLeaveWindow" />
|
|
||||||
<event name="OnLeftDClick" />
|
|
||||||
<event name="OnLeftDown" />
|
|
||||||
<event name="OnLeftUp" />
|
|
||||||
<event name="OnMiddleDClick" />
|
|
||||||
<event name="OnMiddleDown" />
|
|
||||||
<event name="OnMiddleUp" />
|
|
||||||
<event name="OnMotion" />
|
|
||||||
<event name="OnMouseEvents" />
|
|
||||||
<event name="OnMouseWheel" />
|
|
||||||
<event name="OnPaint" />
|
|
||||||
<event name="OnRightDClick" />
|
|
||||||
<event name="OnRightDown" />
|
|
||||||
<event name="OnRightUp" />
|
|
||||||
<event name="OnSetFocus" />
|
|
||||||
<event name="OnSize" />
|
|
||||||
<event name="OnUpdateUI" />
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Aug 8 2018)
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
@ -11,14 +11,14 @@
|
|||||||
|
|
||||||
PortSelectorDialogBase::PortSelectorDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
PortSelectorDialogBase::PortSelectorDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
||||||
{
|
{
|
||||||
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
this->SetSizeHints( wxSize( 300,200 ), wxDefaultSize );
|
||||||
|
|
||||||
wxBoxSizer* dlgSizer;
|
wxBoxSizer* dlgSizer;
|
||||||
dlgSizer = new wxBoxSizer( wxVERTICAL );
|
dlgSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Select a detected port or enter your own"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Select a detected port or enter your own"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText1->Wrap( -1 );
|
m_staticText1->Wrap( -1 );
|
||||||
dlgSizer->Add( m_staticText1, 0, wxEXPAND|wxALL, 5 );
|
dlgSizer->Add( m_staticText1, 0, wxALIGN_CENTER|wxTOP, 5 );
|
||||||
|
|
||||||
m_portList = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
m_portList = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
||||||
dlgSizer->Add( m_portList, 1, wxALL|wxEXPAND, 5 );
|
dlgSizer->Add( m_portList, 1, wxALL|wxEXPAND, 5 );
|
||||||
@ -29,32 +29,28 @@ PortSelectorDialogBase::PortSelectorDialogBase( wxWindow* parent, wxWindowID id,
|
|||||||
bSizer3->SetMinSize( wxSize( -1,30 ) );
|
bSizer3->SetMinSize( wxSize( -1,30 ) );
|
||||||
m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Port"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Port"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText2->Wrap( -1 );
|
m_staticText2->Wrap( -1 );
|
||||||
bSizer3->Add( m_staticText2, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
bSizer3->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
m_portSelection = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_portSelection = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer3->Add( m_portSelection, 1, wxEXPAND|wxRIGHT, 5 );
|
bSizer3->Add( m_portSelection, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
dlgSizer->Add( bSizer3, 1, wxEXPAND, 5 );
|
dlgSizer->Add( bSizer3, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_buttonPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
||||||
wxBoxSizer* bSizer2;
|
wxBoxSizer* bSizer2;
|
||||||
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
|
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
m_cancelButton = new wxButton( m_buttonPanel, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_cancelButton = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer2->Add( m_cancelButton, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
bSizer2->Add( m_cancelButton, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
|
bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_okButton = new wxButton( m_buttonPanel, wxID_ANY, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_okButton = new wxButton( this, wxID_ANY, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer2->Add( m_okButton, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
bSizer2->Add( m_okButton, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
m_buttonPanel->SetSizer( bSizer2 );
|
dlgSizer->Add( bSizer2, 0, wxEXPAND, 5 );
|
||||||
m_buttonPanel->Layout();
|
|
||||||
bSizer2->Fit( m_buttonPanel );
|
|
||||||
dlgSizer->Add( m_buttonPanel, 0, wxEXPAND | wxALL, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( dlgSizer );
|
this->SetSizer( dlgSizer );
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Aug 8 2018)
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __PORTSELECTORDIALOGBASE_H__
|
#pragma once
|
||||||
#define __PORTSELECTORDIALOGBASE_H__
|
|
||||||
|
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
@ -23,7 +22,6 @@
|
|||||||
#include <wx/image.h>
|
#include <wx/image.h>
|
||||||
#include <wx/icon.h>
|
#include <wx/icon.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/panel.h>
|
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
@ -41,7 +39,6 @@ class PortSelectorDialogBase : public wxDialog
|
|||||||
wxListBox* m_portList;
|
wxListBox* m_portList;
|
||||||
wxStaticText* m_staticText2;
|
wxStaticText* m_staticText2;
|
||||||
wxTextCtrl* m_portSelection;
|
wxTextCtrl* m_portSelection;
|
||||||
wxPanel* m_buttonPanel;
|
|
||||||
wxButton* m_cancelButton;
|
wxButton* m_cancelButton;
|
||||||
wxButton* m_okButton;
|
wxButton* m_okButton;
|
||||||
|
|
||||||
@ -53,9 +50,8 @@ class PortSelectorDialogBase : public wxDialog
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
PortSelectorDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Select Port"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 304,197 ), long style = wxDEFAULT_DIALOG_STYLE );
|
PortSelectorDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Select Port"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 320,260 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~PortSelectorDialogBase();
|
~PortSelectorDialogBase();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__PORTSELECTORDIALOGBASE_H__
|
|
||||||
|
Loading…
Reference in New Issue
Block a user