Skip to content

Commit

Permalink
Shell: Basic GUI app stub
Browse files Browse the repository at this point in the history
Created an empty main window.
  • Loading branch information
skyjake committed Jan 7, 2013
1 parent adedad6 commit a385746
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 8 deletions.
3 changes: 2 additions & 1 deletion doomsday/tools/shell/libshell/libshell.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ INCLUDEPATH += include
HEADERS +=

# Sources and private headers.
SOURCES +=
SOURCES += \
src/deng_shell.cpp
18 changes: 18 additions & 0 deletions doomsday/tools/shell/libshell/src/deng_shell.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @file deng_shell.cpp Library init.
*
* @authors Copyright © 2013 Jaakko Keränen <jaakko.keranen@iki.fi>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
*/

Binary file not shown.
10 changes: 7 additions & 3 deletions doomsday/tools/shell/shell-gui/shell-gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include(../../../config.pri)

TEMPLATE = app

win32|macx: TARGET = "Doomsday Shell"
win32|macx: TARGET = Doomsday-Shell
else: TARGET = doomsday-shell

VERSION = 0.1.0
Expand All @@ -18,11 +18,15 @@ VERSION = 0.1.0

include(../../../dep_deng2.pri)

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

INCLUDEPATH += ../libshell/include

# Sources -------------------------------------------------------------------

HEADERS +=
HEADERS += \
src/mainwindow.h

SOURCES += \
src/main.cpp
src/main.cpp \
src/mainwindow.cpp
12 changes: 8 additions & 4 deletions doomsday/tools/shell/shell-gui/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
* http://www.gnu.org/licenses</small>
*/

#include "mainwindow.h"
#include <QApplication>

#include <de/libdeng2.h>

int main(int argc, char **argv)
int main(int argc, char *argv[])
{
DENG2_UNUSED(argc);
DENG2_UNUSED(argv);
return 0;
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
11 changes: 11 additions & 0 deletions doomsday/tools/shell/shell-gui/src/mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
}

MainWindow::~MainWindow()
{

}
15 changes: 15 additions & 0 deletions doomsday/tools/shell/shell-gui/src/mainwindow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class MainWindow : public QMainWindow
{
Q_OBJECT

public:
MainWindow(QWidget *parent = 0);
~MainWindow();
};

#endif // MAINWINDOW_H

0 comments on commit a385746

Please sign in to comment.