equal
deleted
inserted
replaced
33 #include "newnetclient.h" |
33 #include "newnetclient.h" |
34 |
34 |
35 #include "DataManager.h" |
35 #include "DataManager.h" |
36 #include "FileEngine.h" |
36 #include "FileEngine.h" |
37 |
37 |
|
38 #include "frontlib.h" |
|
39 |
38 #ifdef _WIN32 |
40 #ifdef _WIN32 |
39 #include <Shlobj.h> |
41 #include <Shlobj.h> |
40 #endif |
42 #endif |
41 #ifdef __APPLE__ |
43 #ifdef __APPLE__ |
42 #include "CocoaInitializer.h" |
44 #include "CocoaInitializer.h" |
107 { |
109 { |
108 HWApplication app(argc, argv); |
110 HWApplication app(argc, argv); |
109 |
111 |
110 FileEngineHandler engine(argv[0]); |
112 FileEngineHandler engine(argv[0]); |
111 |
113 |
|
114 flib_init(); |
|
115 |
112 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
116 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
113 |
117 |
114 QStringList arguments = app.arguments(); |
118 QStringList arguments = app.arguments(); |
115 QMap<QString, QString> parsedArgs; |
119 QMap<QString, QString> parsedArgs; |
116 { |
120 { |
288 if (file.open(QIODevice::ReadOnly | QIODevice::Text)) |
292 if (file.open(QIODevice::ReadOnly | QIODevice::Text)) |
289 style.append(file.readAll()); |
293 style.append(file.readAll()); |
290 |
294 |
291 app.form = new HWForm(NULL, style); |
295 app.form = new HWForm(NULL, style); |
292 app.form->show(); |
296 app.form->show(); |
293 return app.exec(); |
297 int r = app.exec(); |
|
298 |
|
299 flib_quit(); |
|
300 |
|
301 return r; |
294 } |
302 } |