7 #include "fwGuiQt/App.hpp" 9 #include <fwGui/dialog/MessageDialog.hpp> 11 #include <fwRuntime/profile/Profile.hpp> 13 #include <fwTools/Os.hpp> 17 #include <boost/filesystem/operations.hpp> 18 #include <boost/filesystem/path.hpp> 19 #include <boost/tokenizer.hpp> 29 App::App(
int& argc,
char** argv,
bool guiEnabled) :
30 QApplication(argc, argv, guiEnabled)
34 setlocale(LC_ALL,
"C");
35 QLocale::setDefault(QLocale::C);
37 std::string appName =
"No name";
39 ::fwRuntime::profile::Profile::sptr profile = ::fwRuntime::profile::getCurrentProfile();
43 appName = profile->getName();
46 this->setApplicationName( QString::fromStdString(appName) );
48 QObject::connect(
this, SIGNAL(aboutToQuit()),
this, SLOT(aboutToQuit()));
53 void App::aboutToQuit()
64 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
65 QApplication::restoreOverrideCursor();
#define SLM_TRACE_FUNC()
Trace contextual function signature.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...