aboutsummaryrefslogtreecommitdiff
path: root/src/gui/main.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/main.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/main.cc')
-rw-r--r--src/gui/main.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/main.cc b/src/gui/main.cc
index 3f05c12e..621f4c28 100644
--- a/src/gui/main.cc
+++ b/src/gui/main.cc
@@ -32,11 +32,20 @@
#include <QApplication>
#include "main-window.h"
+
int
main(int argc, char* argv[]) {
using namespace OpenAxiom;
+ Command command;
+ // The toplevel driver may be have called us with the
+ // path to the gui interface (argv[0]) and the full name
+ // of the toplevel driver itself (argv[1].) Skip.
+ preprocess_arguments(&command, argc - 1, argv + 1);
QApplication app(argc, argv);
- MainWindow main_win;
+ QApplication::setApplicationName("OpenAxiom");
+ QApplication::setOrganizationDomain("www.open-axiom.org");
+ MainWindow main_win(command);
+ main_win.setWindowTitle("OpenAxiom");
main_win.show();
return app.exec();
}