summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-04-07 15:20:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-07 15:59:33 -0700
commitba712c3b5420ed461b8b7a1fdd14849e622ae974 (patch)
tree4a18b4d7c740e5b20c110279f29594ec1550a266 /qt-gui.cpp
parent081000963a822c1a9814bf4eba3e9dd4485a2cf9 (diff)
downloadsubsurface-ba712c3b5420ed461b8b7a1fdd14849e622ae974.tar.gz
Start creating the Qt UI
This is based on several commits from Tomaz - mingled together and mildly extended by Dirk (mostly Makefile hacking). All Qt UI related stuff should eventually move into the qt-ui directory. So the Makefile rules for moc and uic have been adjusted accordingly. The MainWindow class has been moved into its own file in qt-ui (but just with a placeholder, the existing class has simply been ifdef'ed out in qt-gui.cpp for the moment). We still have a couple of Qt things in qt-gui.cpp in the main directory... all this needs to move into the qt-ui directory and be built with separate .h files. Right now we have the one-off Makefile rule to create the qt-gui.moc file from the qt-gui.cpp file. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 285f2082d..e46f4765f 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -24,10 +24,11 @@
#include "webservice.h"
#include "version.h"
#include "libdivecomputer.h"
-#include "main-window.ui.h"
+#include "qt-ui/mainwindow.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf/gdk-pixdata.h>
+
#include <QApplication>
#include <QFileDialog>
#include <QFileInfo>
@@ -1737,6 +1738,9 @@ static gboolean notebook_tooltip (GtkWidget *widget, gint x, gint y,
}
}
+#if NEEDS_TO_MOVE_TO_QT_UI
+/* this appears to have moved - but it's very different in qt-ui */
+
class MainWindow: public QMainWindow, private Ui::MainWindow
{
Q_OBJECT
@@ -1850,6 +1854,7 @@ QStringList MainWindow::fileNameFilters() const
;
return filters;
}
+#endif /* NEEDS_TO_MOVE_TO_QT_UI */
void init_ui(int *argcp, char ***argvp)
{