本文整理汇总了C++中wt::WApplication::setLoadingIndicator方法的典型用法代码示例。如果您正苦于以下问题:C++ WApplication::setLoadingIndicator方法的具体用法?C++ WApplication::setLoadingIndicator怎么用?C++ WApplication::setLoadingIndicator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wt::WApplication
的用法示例。
在下文中一共展示了WApplication::setLoadingIndicator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RegionsCreator
/*!
* \brief Конструктор класса сайта.
* \param[in] Класс хранения окружения сайта
*/
CompanyesApplication(const Wt::WEnvironment& env)
: Wt::WApplication(env)
{
this->messageResourceBundle().use(this->appRoot() + "rus_locale");
this->useStyleSheet(this->appRoot() + "main.css");
this->setTitle(Wt::WString::tr("Title"));
Wt::WApplication *app = Wt::WApplication::instance();
app->setLoadingIndicator(new Wt::WOverlayLoadingIndicator());
app->styleSheet().addRule("body", "margin: 0px");
Wt::WStackedWidget* contents = new Wt::WStackedWidget();
contents->setOverflow(Wt::WContainerWidget::OverflowAuto);
contents->setPositionScheme(Wt::Relative);
Wt::WMenu* menu = new Wt::WMenu(contents, Wt::Vertical, 0);
menu->setRenderAsList(true);
menu->setStyleClass("menu");
std::string absolute_path = boost::filesystem::system_complete(boost::filesystem::path(".")).string();
new RegionsCreator(absolute_path, contents, menu);
Wt::WHBoxLayout* hlayout = new Wt::WHBoxLayout();
hlayout->addWidget(menu, 0);
hlayout->addWidget(contents, 1);
Wt::WVBoxLayout* vlayout = new Wt::WVBoxLayout(this->root());
vlayout->addWidget(new Wt::WText(Wt::WString::tr("Header")), 0);
vlayout->addLayout(hlayout, 1);
}