parent
a81ef5296b
commit
7730258155
@ -1,41 +1,38 @@
|
||||
/*
|
||||
* $Id: main.cpp,v 0.1 2005/08/14 11:21:13 denis Exp $
|
||||
*
|
||||
* Author: Denis Kozadaev (denis@tambov.ru)
|
||||
* Description:
|
||||
*
|
||||
* See also: style(9)
|
||||
*
|
||||
* Hacked by:
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <tqapplication.h>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <tdeaboutdata.h>
|
||||
#include <tdeapplication.h>
|
||||
#include <tdecmdlineargs.h>
|
||||
|
||||
const int XSize = 640, YSize = 480;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
TQApplication *app;
|
||||
MainWindow *mw;
|
||||
int result;
|
||||
|
||||
app = new TQApplication(argc, argv);
|
||||
mw = new MainWindow(NULL);
|
||||
|
||||
mw->resize(XSize, YSize);
|
||||
mw->show();
|
||||
mw->setMinimumSize(mw->size());
|
||||
mw->setMaximumSize(mw->size());
|
||||
result = app->exec();
|
||||
static const char description[] = I18N_NOOP("TDE Gem/Puzzle Game");
|
||||
const int XSize = 640, YSize = 480;
|
||||
|
||||
delete mw;
|
||||
delete app;
|
||||
|
||||
return (result);
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TDEAboutData about( "TDEFifteenPieces", // program name used internally
|
||||
"TDEFifteenPieces", // displayable program name
|
||||
"14.0.10", // program version string
|
||||
description, // short description
|
||||
0, // licence type
|
||||
"(c) 2017-2020 by 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 );
|
||||
mainWin->show();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
Loading…
Reference in new issue