aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.cc
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-03 16:26:34 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-03 16:26:34 +0000
commitb5ef39f0f52945c1d465b9fb0e1c014355ffc713 (patch)
treed901f72e35dcfc1757b55a28e839a8c388109c4f /src/gui/debate.cc
parent91ac879b87e3fdf5c796b65d4b2a259397b18002 (diff)
downloadopen-axiom-b5ef39f0f52945c1d465b9fb0e1c014355ffc713.tar.gz
Enable the new GUI interface as default driver
on Windows platforms with QT available.
Diffstat (limited to 'src/gui/debate.cc')
-rw-r--r--src/gui/debate.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc
index 35740c37..101dae1d 100644
--- a/src/gui/debate.cc
+++ b/src/gui/debate.cc
@@ -32,23 +32,23 @@
#include <QApplication>
#include <QScrollBar>
#include "debate.h"
-#include <iostream>
-#include "open-axiom.h"
namespace OpenAxiom {
static void
- start_interpreter(Conversation* conv) {
+ start_interpreter(Conversation* conv, Command& cmd) {
QStringList args;
- args << "--no-server" << "--role=server";
- conv->oracle()->start("open-axiom",args);
+ args << "--" << "--role=server";
+ for (int i = 0; i < cmd.rt_args.size(); ++i)
+ args << cmd.rt_args[i];
+ conv->oracle()->start(make_path_for(cmd.root_dir, core_driver), args);
// When invoked in a --role=server mode, OpenAxiom would
// wait to be pinged before displayed a prompt. This is
// an unfortunate result of a rather awkward hack.
conv->submit_query("");
}
- Debate::Debate(QWidget* parent)
+ Debate::Debate(QWidget* parent, Command& cmd)
: QScrollArea(parent), conv(*this) {
setWidget(&conv);
setViewportMargins(0, 0, 0, 0);
@@ -57,7 +57,7 @@ namespace OpenAxiom {
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
adjustSize();
- start_interpreter(exchanges());
+ start_interpreter(exchanges(), cmd);
connect(conv.oracle(),
SIGNAL(finished(int,QProcess::ExitStatus)),
this, SLOT(done(int)));