diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-11-25 15:16:40 +0100 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-12-01 12:21:04 +0100 |
commit | e33e8edb80936f8dd04729d70c0c991612340d5e (patch) | |
tree | e0b1b8d6098491db4d7d642bed7d5ef5747952d2 /tdefifteen/src/main.cpp | |
parent | 4fd2e55a49048dcecdf7ebd7ce7e78b822c06156 (diff) | |
download | tdegames-e33e8edb80936f8dd04729d70c0c991612340d5e.tar.gz tdegames-e33e8edb80936f8dd04729d70c0c991612340d5e.zip |
Turn into a TDE application.
The game is renamed TDEFifteen (original name: q15).
Add icons (Public Domaine, https://commons.wikimedia.org/wiki/File:15-puzzle.svg).
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'tdefifteen/src/main.cpp')
-rw-r--r-- | tdefifteen/src/main.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tdefifteen/src/main.cpp b/tdefifteen/src/main.cpp new file mode 100644 index 00000000..d9d5c989 --- /dev/null +++ b/tdefifteen/src/main.cpp @@ -0,0 +1,45 @@ +// Author: Denis Kozadaev - (c) 2017-2020 + + +#include "mainwindow.h" + +#include <tdeaboutdata.h> +#include <tdeapplication.h> +#include <tdecmdlineargs.h> +#include <tdelocale.h> + + +const int XSize = 640, YSize = 480; +static const char description[] = I18N_NOOP("TDEFifteen is a sliding puzzle\n" + "that consists of a frame of numbered square tiles\n" + "in random order with one tile missing."); + + +int main(int argc, char *argv[]) +{ + TDEAboutData about( "tdefifteen", // program name used internally + I18N_NOOP("TDEFifteen"), // displayable program name + "14.0.10", // program version string + description, // short description + TDEAboutData::License_GPL, // licence type + I18N_NOOP("(c) 2017-2020 Denis Kozadaev"), // copyright statement + 0, // text - any information + "http://trinitydesktop.org", // home page address + 0); // bug email address + + about.addAuthor( "Denis Kozadaev", "Author", "denis@tambov.ru" ); + + TDECmdLineArgs::init(argc, argv, &about); + TDEApplication app; + MainWindow* mainWin = new MainWindow(); + + mainWin->resize(XSize, YSize); + mainWin->setMinimumSize( mainWin->size() ); + mainWin->setMaximumSize( mainWin->size() ); + + app.setMainWidget( mainWin ); + app.miniIcon(); + mainWin->show(); + + return app.exec(); +} |