25:256bb5c6b77f | 26:9aab482c9125 |
---|---|
18 | 18 |
19 #include <QApplication> | 19 #include <QApplication> |
20 #include "config.h" | 20 #include "config.h" |
21 #include "types.h" | 21 #include "types.h" |
22 #include "demo.h" | 22 #include "demo.h" |
23 #include "prompts.h" | |
23 | 24 |
24 // ============================================================================= | 25 // ============================================================================= |
25 // ----------------------------------------------------------------------------- | 26 // ----------------------------------------------------------------------------- |
26 int main (int argc, char* argv[]) { | 27 int main (int argc, char* argv[]) { |
27 QApplication app (argc, argv); | 28 QApplication app (argc, argv); |
39 return dlg.exec(); | 40 return dlg.exec(); |
40 } | 41 } |
41 } | 42 } |
42 | 43 |
43 if (argc != 2) { | 44 if (argc != 2) { |
44 fprint (stderr, "Usage: %1 <demo> - Launch a demo file\n", argv[0]); | 45 FindFilePrompt* dlg = new FindFilePrompt (null); |
45 fprint (stderr, " %1 --config - Configure " APPNAME "\n", argv[0]); | 46 if (!dlg->exec()) |
46 return 255; | 47 return 255; |
48 | |
49 return launchDemo (dlg->path()); | |
47 } | 50 } |
48 | 51 |
49 return launchDemo (argv[1]); | 52 return launchDemo (argv[1]); |
50 } | 53 } |
51 | 54 |
71 # error Invalid build code! | 74 # error Invalid build code! |
72 #endif // BUILD_ID | 75 #endif // BUILD_ID |
73 | 76 |
74 return text; | 77 return text; |
75 } | 78 } |
79 | |
80 QString versionSignature() { | |
81 return QString (APPNAME) + " " + versionString(); | |
82 } |