aboutsummaryrefslogtreecommitdiff
path: root/src/gui/main-window.cc
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-06-23 04:29:12 +0000
committerdos-reis <gdr@axiomatics.org>2013-06-23 04:29:12 +0000
commitd918d0a1f78696fec489c0ad7d581f9707b13df2 (patch)
tree31dd7bd8fff52651664aab568fb616dd6f9405fa /src/gui/main-window.cc
parentf18f51d6c959ee88a43166d5e5898ae2e84a49fd (diff)
downloadopen-axiom-d918d0a1f78696fec489c0ad7d581f9707b13df2.tar.gz
Rename the gui interface to open-axiom.
Diffstat (limited to 'src/gui/main-window.cc')
-rw-r--r--src/gui/main-window.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/main-window.cc b/src/gui/main-window.cc
index 442841b7..caa6771c 100644
--- a/src/gui/main-window.cc
+++ b/src/gui/main-window.cc
@@ -48,12 +48,14 @@ namespace OpenAxiom {
MainWindow::MainWindow(int argc, char* argv[])
- : srv(argc, argv), debate(this) {
- setCentralWidget(&debate);
+ : srv(argc, argv), tabs(this) {
+ setCentralWidget(&tabs);
setWindowTitle("OpenAxiom");
- auto s = debate.widget()->frameSize();
- s.rwidth() += debate.verticalScrollBar()->width();
- s.rheight() += debate.horizontalScrollBar()->width();
+ auto debate = new Debate(this);
+ tabs.addTab(debate, "Interpreter");
+ auto s = debate->widget()->frameSize();
+ s.rwidth() += debate->verticalScrollBar()->width();
+ s.rheight() += debate->horizontalScrollBar()->width();
resize(s);
QMenu* file = menuBar()->addMenu(tr("&File"));
QAction* action = new QAction(tr("Quit"), this);
@@ -61,7 +63,7 @@ namespace OpenAxiom {
action->setShortcut(tr("Ctrl+Q"));
connect(action, SIGNAL(triggered()), this, SLOT(close()));
- connect_server_io(this, &debate);
+ connect_server_io(this, debate);
server()->launch();
// When invoked in a --role=server mode, OpenAxiom would
// wait to be pinged before displaying a prompt. This is