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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 #include <iostream>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 #include <sstream>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 #include <string>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 #include <cstdlib>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 #include <cstring>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 #include <QApplication>
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 #include "gui-main.h"
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 {
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 QApplication app (argc, argv);
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 }
dff751fb985c initial revision
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 }