本文整理汇总了C++中CreateGUIControls函数的典型用法代码示例。如果您正苦于以下问题:C++ CreateGUIControls函数的具体用法?C++ CreateGUIControls怎么用?C++ CreateGUIControls使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CreateGUIControls函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxDialog
cDialogTeams::cDialogTeams(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
vector<cTeam*> *teams = g_DuneEngine->scenarioGet()->teamsGet();
vector<cTeam*>::iterator teamIT;
for( teamIT = teams->begin(); teamIT != teams->end(); ++teamIT ) {
cTeam *team = (*teamIT);
string mode = g_DuneEngine->resourcesGet()->aiModeGet(team->aiModeGet());
string type = g_DuneEngine->resourcesGet()->movementNameGet(team->movementTypeGet());
stringstream unk1, maxUnits;
unk1 << team->unk1Get();
maxUnits << team->unitsMaxGet();
int i = WxListCtrl1->InsertItem( WxListCtrl1->GetItemCount(), wxString(team->houseGet()->houseDataGet()->houseName.c_str(), wxConvUTF8) );
WxListCtrl1->SetItem( i, 1, wxString(mode.c_str(), wxConvUTF8) );
WxListCtrl1->SetItem( i, 2, wxString(type.c_str(), wxConvUTF8) );
WxListCtrl1->SetItem( i, 3, wxString(unk1.str().c_str(), wxConvUTF8) );
WxListCtrl1->SetItem( i, 4, wxString(maxUnits.str().c_str(), wxConvUTF8) );
}
}
示例2: CreateGUIControls
updatesNotificationForm::updatesNotificationForm(wxWindow* parent, configClass *config, wxString newAppSetupFileUrl,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
m_parent = parent;
m_config = config;
m_newAppSetupFileUrl = newAppSetupFileUrl;
CreateGUIControls(parent, id);
}
示例3: wxFrame
settings_frame::settings_frame(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& pa_size)
: wxFrame(parent, id, title, position, pa_size),
WindowAttributesPickle( _T("SETTINGSFRAME"), this, wxSize( DEFSETT_SW_WIDTH, DEFSETT_SW_HEIGHT ) )
{
alreadyCalled = false;
parentWindow = parent;
if ( !usync().IsLoaded() )
usync().ReloadUnitSyncLib();
notebook = new wxNotebook(this, ID_OPTIONS, wxPoint(0,0),TAB_SIZE, wxNB_TOP|wxNB_NOPAGETHEME);
notebook->SetFont(wxFont(8, wxSWISS, wxNORMAL,wxNORMAL, false, _T("Tahoma")));
settingsIcon = new wxIcon(springsettings_xpm);
if (abstract_panel::loadValuesIntoMap())
{
CreateGUIControls();
initMenuBar();
}
else
{
notebook->AddPage(new PathOptionPanel(notebook,this),_("Error!"));
SetTitle(_T("SpringSettings"));
}
SetIcon(*settingsIcon);
Layout();
Center();
}
示例4: wxDialog
cDialogReinforcement::cDialogReinforcement(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
mCancel = false;
for( int i = eHouse_Harkonnen; i < eHouse_End; ++i ) {
cHouse *house = g_DuneEngine->houseGet( (eHouse) i );
mChoiceHouse->Insert( wxString(house->houseDataGet()->houseName.c_str(), wxConvUTF8), i );
}
for( int i = 0; i < 18; ++i ) {
string unit = g_DuneEngine->resourcesGet()->unitGet(i)->Name;
mChoiceUnit->Insert( wxString(unit.c_str(), wxConvUTF8), i );
}
for( int i = 0; i < 8; ++i ) {
string dir = g_DuneEngine->resourcesGet()->directionGet( i );
mChoiceDirection->Insert( wxString(dir.c_str(), wxConvUTF8), i );
}
}
示例5: wxPanel
WorkspacePane::WorkspacePane(wxWindow *parent, const wxString &caption, wxAuiManager *mgr)
: wxPanel(parent)
, m_caption(caption)
, m_mgr(mgr)
{
CreateGUIControls();
Connect();
}
示例6: wxPanel
OutputPane::OutputPane(wxWindow *parent, const wxString &caption)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(400, 300))
, m_caption(caption)
, m_canFocus(true)
, m_logTargetOld(NULL)
{
CreateGUIControls();
}
示例7: wxDialog
VectorAddDialog::VectorAddDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
theta = 0.0;
phi = 0.0;
length = 0.0;
}
示例8: wxPanel
LogConfigWindow::LogConfigWindow(wxWindow* parent, CLogWindow *log_window, wxWindowID id)
: wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("Log Configuration"))
, m_LogWindow(log_window), enableAll(true)
{
SetMinSize(wxSize(100, 100));
m_LogManager = LogManager::GetInstance();
CreateGUIControls();
LoadSettings();
}
示例9: wxPanel
panelSearchResult::panelSearchResult(guiMainApp *mainApp, size_t searchID, wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxPanel(parent, id, position, size, style, title)
{
CreateGUIControls();
_mainApp = mainApp;
_searchID = searchID;
treeResults->AddRoot( wxT("Results"));
}
示例10: wxPanel
DebuggerPane::DebuggerPane(wxWindow* parent, const wxString& caption, wxAuiManager* mgr)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(400, 300))
, m_caption(caption)
, m_initDone(false)
, m_mgr(mgr)
{
EventNotifier::Get()->Bind(wxEVT_EDITOR_CONFIG_CHANGED, &DebuggerPane::OnSettingsChanged, this);
CreateGUIControls();
}
示例11: wxDialog
NumberChoiceDialog::NumberChoiceDialog(Controller & ctrl, unsigned min, unsigned max, unsigned start_region, unsigned end_region,wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style), ctrl(ctrl)
{
this->min=min;
this->max=max;
this->start_region=start_region;
this->end_region=end_region;
CreateGUIControls();
}
示例12: wxDialog
CPHackSettings::CPHackSettings(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
std::string _iniFilename = File::GetSysDirectory() + GAMESETTINGS_DIR DIR_SEP "PH_PRESETS.ini";
PHPresetsIni.Load(_iniFilename);
PHPresetsIni.SortSections();
LoadPHackData();
}
示例13: wxArrayString
CenterOfMassAddDialog::CenterOfMassAddDialog(wxWindow *parent, wxArrayString (*getObjectNames)(void), wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
GetObjectNames = getObjectNames;
isSingleObject = true;
useCustomName = false;
}
示例14: wxPanel
WorkspacePane::WorkspacePane(wxWindow* parent, const wxString& caption, wxAuiManager* mgr)
: wxPanel(parent)
, m_caption(caption)
, m_mgr(mgr)
{
CreateGUIControls();
EventNotifier::Get()->Bind(wxEVT_INIT_DONE, &WorkspacePane::OnInitDone, this);
EventNotifier::Get()->Bind(wxEVT_EDITOR_CONFIG_CHANGED, &WorkspacePane::OnSettingsChanged, this);
EventNotifier::Get()->Bind(wxEVT_SHOW_WORKSPACE_TAB, &WorkspacePane::OnToggleWorkspaceTab, this);
}
示例15: wxPanel
GFXDebuggerPanel::GFXDebuggerPanel(wxWindow *parent, wxWindowID id, const wxPoint &position,
const wxSize& size, long style, const wxString &title)
: wxPanel(parent, id, position, size, style, title)
{
g_pdebugger = this;
CreateGUIControls();
LoadSettings();
}