-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI: Add stub for Phaethon's main window
- Loading branch information
1 parent
ceffc9d
commit 6e5f245
Showing
5 changed files
with
144 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games | ||
* | ||
* Phaethon is the legal property of its developers, whose names | ||
* can be found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* Phaethon 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 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* Phaethon 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 Phaethon. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** @file | ||
* Phaethon's main window. | ||
*/ | ||
|
||
#include <QAction> | ||
#include <QCoreApplication> | ||
|
||
#include "verdigris/wobjectimpl.h" | ||
|
||
#include "src/gui/mainwindow.h" | ||
|
||
#include "src/common/util.h" | ||
|
||
namespace GUI { | ||
|
||
W_OBJECT_IMPL(MainWindow) | ||
|
||
MainWindow::MainWindow(QWidget *parent, const char *title, const QSize &size, const char *UNUSED(path)) : QMainWindow(parent) { | ||
_centralWidget = new QWidget(this); | ||
setCentralWidget(_centralWidget); | ||
setWindowTitle(title); | ||
resize(size); | ||
} | ||
|
||
} // End of namespace GUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games | ||
* | ||
* Phaethon is the legal property of its developers, whose names | ||
* can be found in the AUTHORS file distributed with this source | ||
* distribution. | ||
* | ||
* Phaethon 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 3 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* Phaethon 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 Phaethon. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** @file | ||
* Phaethon's main window. | ||
*/ | ||
|
||
#ifndef MAINWINDOW_H | ||
#define MAINWINDOW_H | ||
|
||
#include <QMainWindow> | ||
|
||
#include "verdigris/wobjectdefs.h" | ||
|
||
namespace GUI { | ||
|
||
class MainWindow : public QMainWindow { | ||
W_OBJECT(MainWindow) | ||
|
||
public: | ||
MainWindow(QWidget *parent, const char *title, const QSize &size, const char *path); | ||
|
||
private: | ||
QWidget *_centralWidget; | ||
}; | ||
|
||
} // End of namespace GUI | ||
|
||
#endif // MAINWINDOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games | ||
# | ||
# Phaethon is the legal property of its developers, whose names | ||
# can be found in the AUTHORS file distributed with this source | ||
# distribution. | ||
# | ||
# Phaethon 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 3 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# Phaethon 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 Phaethon. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# GUI code using Qt5. | ||
|
||
noinst_LTLIBRARIES += src/gui/libgui.la | ||
|
||
src_gui_libgui_la_SOURCES = | ||
|
||
src_gui_libgui_la_SOURCES += \ | ||
src/gui/mainwindow.h \ | ||
$(EMPTY) | ||
|
||
src_gui_libgui_la_SOURCES += \ | ||
src/gui/mainwindow.cpp \ | ||
$(EMPTY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters