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


C++ Navigator::setNavigationPane方法代码示例

本文整理汇总了C++中Navigator::setNavigationPane方法的典型用法代码示例。如果您正苦于以下问题:C++ Navigator::setNavigationPane方法的具体用法?C++ Navigator::setNavigationPane怎么用?C++ Navigator::setNavigationPane使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Navigator的用法示例。


在下文中一共展示了Navigator::setNavigationPane方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1:

MainMenu::MainMenu(Application *app) :
		_nfcManager(0), _appVersion(QString(Settings::AppVersion)) {

	QCoreApplication::setOrganizationName("Example");
	QCoreApplication::setApplicationName("Starship Settings");

	_app = app;
	_qml = QmlDocument::create("asset:///main.qml");
	_qml->setContextProperty("_mainMenu", this);
	_root = _qml->createRootObject<AbstractPane>();
	StateManager* state_mgr = StateManager::getInstance();
	_qml->setContextProperty("_stateManager", state_mgr);

	_invokeManager = new bb::system::InvokeManager();
	Navigator* nav = Navigator::getInstance();
	NavigationPane* navpane = dynamic_cast<NavigationPane*>(_root);
	nav->setNavigationPane(navpane);

	_systemDialog = new bb::system::SystemDialog(this);
	_systemDialog->setTitle("NFC Transaction");
	bb::system::SystemUiButton *confirmButton = _systemDialog->confirmButton();
	confirmButton->setLabel("OK");

	createModules();
	startEventProcessing();
	qDebug() << "XXXX calling connectSignals";
	connectSignals();
	qDebug() << "XXXX done calling connectSignals";
	onMainMenuTriggered();
	//call onButtonClicked if the value of autoActive is True or at least pass the value (true or false)
//	if (getValueFor("autoActive", "false") == "true") {
//		//onButtonClicked(true);
//	}

}
开发者ID:jwoolcox,项目名称:NfcTool,代码行数:35,代码来源:MainMenu.cpp

示例2:

MainMenu::MainMenu(Application *app) :
		_nfcManager(0), _appVersion(QString(Settings::AppVersion)) {

	bb::cascades::Application::setOrganizationName("RIM");
	bb::cascades::Application::setApplicationName("NfcTool");

	qDebug() << "XXXX NFC Tool V" << Settings::AppVersion;
	qDebug() << "XXXX loading main menu qml document";
	_app = app;
	_qml = QmlDocument::create("asset:///main.qml");
	_qml->setContextProperty("_mainMenu", this);
	_root = _qml->createRootObject<AbstractPane>();
	StateManager* state_mgr = StateManager::getInstance();
	_qml->setContextProperty("_stateManager", state_mgr);

	_invokeManager = new bb::system::InvokeManager();
	Navigator* nav = Navigator::getInstance();
	NavigationPane* navpane = dynamic_cast<NavigationPane*>(_root);
	nav->setNavigationPane(navpane);

	_systemDialog = new bb::system::SystemDialog(this);
	_systemDialog->setTitle("NFC Transaction");
	bb::system::SystemUiButton *confirmButton = _systemDialog->confirmButton();
	confirmButton->setLabel("OK");

	createModules();
	startEventProcessing();
	qDebug() << "XXXX calling connectSignals";
	connectSignals();
	qDebug() << "XXXX done calling connectSignals";
	onMainMenuTriggered();

}
开发者ID:BBKeeper,项目名称:Cascades-Community-Samples,代码行数:33,代码来源:MainMenu.cpp


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