|
|
@ -57,7 +57,7 @@ MainWindow::createCollectionMenu() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
checkedCollection_ = 0;
|
|
|
|
checkedCollection_ = 0;
|
|
|
|
|
|
|
|
|
|
|
|
KConfig *cfg=(KApplication::kApplication())->config();
|
|
|
|
KConfig *cfg=(TDEApplication::kApplication())->config();
|
|
|
|
cfg->setGroup("settings");
|
|
|
|
cfg->setGroup("settings");
|
|
|
|
int id = cfg->readNumEntry("collection", 10);
|
|
|
|
int id = cfg->readNumEntry("collection", 10);
|
|
|
|
|
|
|
|
|
|
|
@ -76,7 +76,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) {
|
|
|
|
|
|
|
|
|
|
|
|
setEraseColor(TQColor(0,0,0));
|
|
|
|
setEraseColor(TQColor(0,0,0));
|
|
|
|
|
|
|
|
|
|
|
|
KConfig *cfg=(KApplication::kApplication())->config();
|
|
|
|
KConfig *cfg=(TDEApplication::kApplication())->config();
|
|
|
|
cfg->setGroup("Geometry");
|
|
|
|
cfg->setGroup("Geometry");
|
|
|
|
int width = cfg->readNumEntry("width", 750);
|
|
|
|
int width = cfg->readNumEntry("width", 750);
|
|
|
|
int height = cfg->readNumEntry("height", 562);
|
|
|
|
int height = cfg->readNumEntry("height", 562);
|
|
|
@ -107,7 +107,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) {
|
|
|
|
game_->insertItem(TQIconSet(pixmap), i18n("&Redo"), playField_, TQT_SLOT(redo()), TQKeySequence( (KStdAccel::redo()).toString()));
|
|
|
|
game_->insertItem(TQIconSet(pixmap), i18n("&Redo"), playField_, TQT_SLOT(redo()), TQKeySequence( (KStdAccel::redo()).toString()));
|
|
|
|
game_->insertSeparator();
|
|
|
|
game_->insertSeparator();
|
|
|
|
pixmap = SmallIcon("exit");
|
|
|
|
pixmap = SmallIcon("exit");
|
|
|
|
game_->insertItem(TQIconSet(pixmap), i18n("&Quit"), KApplication::kApplication(), TQT_SLOT(closeAllWindows()), TQKeySequence( (KStdAccel::quit()).toString()));
|
|
|
|
game_->insertItem(TQIconSet(pixmap), i18n("&Quit"), TDEApplication::kApplication(), TQT_SLOT(closeAllWindows()), TQKeySequence( (KStdAccel::quit()).toString()));
|
|
|
|
menu_->insertItem(i18n("&Game"), game_);
|
|
|
|
menu_->insertItem(i18n("&Game"), game_);
|
|
|
|
|
|
|
|
|
|
|
|
animation_ = new TQPopupMenu(0,"animation menu");
|
|
|
|
animation_ = new TQPopupMenu(0,"animation menu");
|
|
|
@ -190,7 +190,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) {
|
|
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg=(KApplication::kApplication())->config();
|
|
|
|
KConfig *cfg=(TDEApplication::kApplication())->config();
|
|
|
|
|
|
|
|
|
|
|
|
cfg->setGroup("Geometry");
|
|
|
|
cfg->setGroup("Geometry");
|
|
|
|
cfg->writeEntry("width", width());
|
|
|
|
cfg->writeEntry("width", width());
|
|
|
@ -297,7 +297,7 @@ MainWindow::changeCollection(int id)
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
MainWindow::loadLevels() {
|
|
|
|
MainWindow::loadLevels() {
|
|
|
|
KConfig *cfg=(KApplication::kApplication())->config();
|
|
|
|
KConfig *cfg=(TDEApplication::kApplication())->config();
|
|
|
|
cfg->setGroup("settings");
|
|
|
|
cfg->setGroup("settings");
|
|
|
|
TQString lastFile = cfg->readPathEntry("lastLevelFile");
|
|
|
|
TQString lastFile = cfg->readPathEntry("lastLevelFile");
|
|
|
|
|
|
|
|
|
|
|
@ -309,7 +309,7 @@ MainWindow::loadLevels() {
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
MainWindow::openURL(KURL _url) {
|
|
|
|
MainWindow::openURL(KURL _url) {
|
|
|
|
KConfig *cfg=(KApplication::kApplication())->config();
|
|
|
|
KConfig *cfg=(TDEApplication::kApplication())->config();
|
|
|
|
|
|
|
|
|
|
|
|
// int namepos = _url.path().findRev('/') + 1; // NOTE: findRev can return -1
|
|
|
|
// int namepos = _url.path().findRev('/') + 1; // NOTE: findRev can return -1
|
|
|
|
// TQString levelName = _url.path().mid(namepos);
|
|
|
|
// TQString levelName = _url.path().mid(namepos);
|
|
|
|