Initial commit, just the project skell
authorFelipe <felipe@zimmerle.org>
Tue, 29 Sep 2009 21:33:02 +0000 (18:33 -0300)
committerFelipe <felipe@zimmerle.org>
Tue, 29 Sep 2009 21:33:02 +0000 (18:33 -0300)
Signed-off-by: Felipe Zimmerle <felipe@zimmerle.org>

slock.pro [new file with mode: 0644]
src/main.cpp [new file with mode: 0644]
src/mainwindow.cpp [new file with mode: 0644]
src/mainwindow.h [new file with mode: 0644]

diff --git a/slock.pro b/slock.pro
new file mode 100644 (file)
index 0000000..c12fbfc
--- /dev/null
+++ b/slock.pro
@@ -0,0 +1,12 @@
+######################################################################
+# Automatically generated by qmake (2.01a) Tue Sep 29 18:01:27 2009
+######################################################################
+
+TEMPLATE = app
+TARGET = slock
+DEPENDPATH += . src
+INCLUDEPATH += . src
+
+# Input
+HEADERS += src/mainwindow.h
+SOURCES += src/main.cpp src/mainwindow.cpp
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644 (file)
index 0000000..6e7efd9
--- /dev/null
@@ -0,0 +1,10 @@
+#include <QtGui/QApplication>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+    MainWindow w;
+    w.show();
+    return a.exec();
+}
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
new file mode 100644 (file)
index 0000000..3bb2417
--- /dev/null
@@ -0,0 +1,17 @@
+#include "mainwindow.h"
+
+#include <QDebug>
+
+MainWindow::MainWindow(QWidget *parent)
+    : QMainWindow(parent)
+{
+#ifdef MAEMO
+    showFullScreen();
+#endif
+    qDebug() << "Trying to grab all inputs.";
+}
+
+MainWindow::~MainWindow()
+{
+
+}
diff --git a/src/mainwindow.h b/src/mainwindow.h
new file mode 100644 (file)
index 0000000..40c9649
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QtGui/QMainWindow>
+
+class MainWindow : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    MainWindow(QWidget *parent = 0);
+    ~MainWindow();
+};
+
+#endif // MAINWINDOW_H