X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmainwin.cpp;h=a4aec01054e143afd19db13a563d66f235bbac5f;hb=058aca46f433b3a36a341ca7272c39d2bef55c09;hp=010f27f7d63f78ab6652bfd87743b3f5c4d4d8f4;hpb=cee848899590199081c8ade4736662a8a5dc4a2f;p=warehouse-man-deluxe diff --git a/src/mainwin.cpp b/src/mainwin.cpp index 010f27f..a4aec01 100644 --- a/src/mainwin.cpp +++ b/src/mainwin.cpp @@ -16,6 +16,7 @@ #include // For rand() #include // For time() #include "gameboard.h" +#include "editorwindow.h" // Actual mouse/drawing window #include "gamewidget.h" // Actual mouse/drawing window //#include "resource.h" //#include "optiondlg.h" // Options dialog class @@ -30,6 +31,12 @@ MainWin::MainWin() setWindowTitle("Warehouse Man Deluxe"); setWindowIcon(QIcon(":/wmd-icon.png")); +// editor = new QWindow(this); + editorWindow = new EditorWindow(this); +// editor->setCentralWidget(editorWidget); +// editorWidget->setFocusPolicy(Qt::StrongFocus); // Without this, it gets no keys + editorWindow->show(); + newGame = CreateAction(tr("&New"), tr("New Game"), tr("Start a new game of Warehouse Man Deluxe"), QIcon(), QKeySequence(tr("ctrl+n"))); // connect(newGame, SIGNAL(triggered()), this, SLOT(OnNewGame())); @@ -122,6 +129,7 @@ MainWin::MainWin() MainWin::~MainWin() { // ShutDownAudio(); + delete editorWindow; }