1 #include "words_dicDlg.h"
3 #include <QApplication>
4 #include "nel/misc/app_context.h"
5 #include "nel/misc/path.h"
11 #ifndef NL_WORDS_DIC_CFG
12 #define NL_WORDS_DIC_CFG "."
15 #ifdef QT_STATICPLUGIN
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
)
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
;
40 std::string homeDir
= getenv("HOME");
41 NLMISC::CPath::addSearchPath( homeDir
+ "/.nel");
44 NLMISC::CPath::addSearchPath(NL_WORDS_DIC_CFG
);
46 Q_INIT_RESOURCE(words_dic_Qt
);
47 QApplication
app(argc
, argv
);
49 CWords_dicDlg wordsDic
;