Mercurial > jwe > qt-gui-with-push-parser
annotate gui-main.cpp @ 11:b652a5528fb1
handle EOF on input; more misc refactoring
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 May 2019 13:42:57 -0400 |
parents | 822a2fe5bb51 |
children | 1e5a1e15fa56 |
rev | line source |
---|---|
0 | 1 #include <iostream> |
2 #include <sstream> | |
3 #include <string> | |
4 | |
5 #include <cstdlib> | |
6 #include <cstring> | |
7 | |
8 #include <QApplication> | |
9 | |
9
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
10 #include "command-window.h" |
0 | 11 #include "gui-main.h" |
12 | |
9
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
13 namespace calc |
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
14 { |
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
15 int gui_main (int argc, char *argv[]) |
0 | 16 { |
17 QApplication app (argc, argv); | |
18 | |
9
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
19 command_window command_window; |
0 | 20 |
9
822a2fe5bb51
move command window to separate file and other refactoring
John W. Eaton <jwe@octave.org>
parents:
7
diff
changeset
|
21 command_window.show (); |
0 | 22 |
11
b652a5528fb1
handle EOF on input; more misc refactoring
John W. Eaton <jwe@octave.org>
parents:
9
diff
changeset
|
23 return app.exec (); |
0 | 24 } |
25 } |