Update lua versions
[ryzomcore.git] / nel / tools / misc / words_dic_qt / main.cpp
blobae348c7aa59a937312fd8629e3ece2b62f53694b
1 #include "words_dicDlg.h"
3 #include <QApplication>
4 #include "nel/misc/app_context.h"
5 #include "nel/misc/path.h"
7 #ifdef NL_OS_UNIX
8 #include <stdlib.h>
9 #endif // NL_OS_UNIX
11 #ifndef NL_WORDS_DIC_CFG
12 #define NL_WORDS_DIC_CFG "."
13 #endif
15 #ifdef QT_STATICPLUGIN
17 #include <QtPlugin>
19 #if defined(Q_OS_WIN32)
20 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
21 #elif defined(Q_OS_MAC)
22 Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)
23 #elif defined(Q_OS_UNIX)
24 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
25 #endif
27 #endif
29 int main(int argc, char *argv[])
32 // Standard initialization
33 // If you are not using these features and wish to reduce the size
34 // of your final executable, you should remove from the following
35 // the specific initialization routines you do not need.
36 NLMISC::CApplicationContext myApplicationContext;
39 #ifdef NL_OS_UNIX
40 std::string homeDir = getenv("HOME");
41 NLMISC::CPath::addSearchPath( homeDir + "/.nel");
42 #endif // NL_OS_UNIX
44 NLMISC::CPath::addSearchPath(NL_WORDS_DIC_CFG);
46 Q_INIT_RESOURCE(words_dic_Qt);
47 QApplication app(argc, argv);
49 CWords_dicDlg wordsDic;
50 wordsDic.show();
52 return app.exec();