当前位置: 首页>>代码示例>>C++>>正文


C++ CreateGUIControls函数代码示例

本文整理汇总了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) );
	}

}
开发者ID:segrax,项目名称:dunemaps,代码行数:28,代码来源:dialogTeams.cpp

示例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);
}
开发者ID:gszura,项目名称:wx-nfp,代码行数:7,代码来源:updatesNotificationForm.cpp

示例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();
}
开发者ID:tvo,项目名称:springlobby,代码行数:30,代码来源:frame.cpp

示例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 );
	}
}
开发者ID:segrax,项目名称:dunemaps,代码行数:25,代码来源:dialogReinforcement.cpp

示例5: wxPanel

WorkspacePane::WorkspacePane(wxWindow *parent, const wxString &caption, wxAuiManager *mgr)
    : wxPanel(parent)
    , m_caption(caption)
    , m_mgr(mgr)
{
    CreateGUIControls();
    Connect();
}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:8,代码来源:workspace_pane.cpp

示例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();	
}
开发者ID:BackupTheBerlios,项目名称:codelite-svn,代码行数:8,代码来源:output_pane.cpp

示例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;
}
开发者ID:niraj-rayalla,项目名称:PhysicsHelper,代码行数:9,代码来源:VectorAddDialog.cpp

示例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();
}
开发者ID:crudelios,项目名称:dolphin,代码行数:9,代码来源:LogConfigWindow.cpp

示例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"));
}
开发者ID:segrax,项目名称:KiLLARMY,代码行数:9,代码来源:panelSearchResult.cpp

示例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();
}
开发者ID:stahta01,项目名称:codelite,代码行数:9,代码来源:debuggerpane.cpp

示例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();
}
开发者ID:kamciak,项目名称:Ryzyko,代码行数:9,代码来源:NumberChoiceDialog.cpp

示例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();
}
开发者ID:Krude,项目名称:dolphin,代码行数:10,代码来源:PHackSettings.cpp

示例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;
}
开发者ID:niraj-rayalla,项目名称:PhysicsHelper,代码行数:10,代码来源:CenterOfMassAddDialog.cpp

示例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);
}
开发者ID:stahta01,项目名称:codelite,代码行数:10,代码来源:workspace_pane.cpp

示例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();
}
开发者ID:Catnips,项目名称:dolphin,代码行数:10,代码来源:DebuggerPanel.cpp


注:本文中的CreateGUIControls函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。