本文整理汇总了C++中SplashScreen::PushStatusText方法的典型用法代码示例。如果您正苦于以下问题:C++ SplashScreen::PushStatusText方法的具体用法?C++ SplashScreen::PushStatusText怎么用?C++ SplashScreen::PushStatusText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SplashScreen
的用法示例。
在下文中一共展示了SplashScreen::PushStatusText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInit
//.........这里部分代码省略.........
return false;
}
return false;
}
InitGL();
SplashScreen *splash = NULL;
wxBitmap bitmap;
// this loads draw64_xpm under Linux, or draw64 icon resource under Windows
szFrame::setDefaultIcon(wxICON(draw64));
wxString splashimage = GetSzarpDir();
#ifndef MINGW32
splashimage += _T("resources/wx/images/szarp-logo.png");
#else
splashimage += _T("resources\\wx\\images\\szarp-logo.png");
#endif
#if wxUSE_LIBPNG
/* Activate PNG image handler. */
wxImage::AddHandler( new wxPNGHandler );
#endif
if (bitmap.LoadFile(splashimage, wxBITMAP_TYPE_PNG))
splash = new SplashScreen(&bitmap);
else
splash = new SplashScreen();
splash->Show(true);
splash->PushStatusText(_("Setting locale..."));
/* Set locale. */
this->InitializeLocale(_T("draw3"), locale);
splash->PushStatusText(_("Reading params from szarp.cfg..."));
wxString _lang = wxConfig::Get()->Read(_T("LANGUAGE"), AUTO_LANGUAGE);
if (_lang == AUTO_LANGUAGE)
_lang = DEFAULT_LANGUAGE;
splash->PushStatusText(_("Initializing IPKContainer..."));
IPKContainer::Init(GetSzarpDataDir().c_str(),
GetSzarpDir().c_str(),
_lang.c_str());
m_cfg_mgr = new ConfigManager(GetSzarpDataDir(), IPKContainer::GetObject());
m_cfg_mgr->SetSplashScreen(splash);
splash->PushStatusText(_("Initializing szbase..."));
splash->PushStatusText(_("Initializing XML Resources..."));
InitXmlResource();
splash->PushStatusText(_("Starting database query mechanism..."));
m_db_queue = new DatabaseQueryQueue();
m_dbmgr = new DatabaseManager(m_db_queue, m_cfg_mgr);
m_db_queue->SetDatabaseManager(m_dbmgr);
m_dbmgr->SetProbersAddresses(GetProbersAddresses());
Draw3Base* draw_base;