X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fttedit.cpp;h=f023f034e5d5f609e69dff76c6b622a1aff4b51f;hb=HEAD;hp=62417b5fd010ff88c20f6bfed5a2e60ecdd33856;hpb=0cdf0ebfb4b788156b8eb2c2acadd5f95fe5be26;p=ttedit diff --git a/src/ttedit.cpp b/src/ttedit.cpp old mode 100755 new mode 100644 index 62417b5..f023f03 --- a/src/ttedit.cpp +++ b/src/ttedit.cpp @@ -6,7 +6,7 @@ // JLH = James L. Hammons // // Who When What -// --- ---------- ------------------------------------------------------------- +// --- ---------- ----------------------------------------------------------- // JLH 04/10/2002 Created this file // JLH 05/10/2004 Translated file from ASM to CPP // JLH 05/14/2004 Added rudimentary editing capability to tool palette tools @@ -18,15 +18,15 @@ #include "ttedit.h" #include -#include "ttemainwindow.h" +#include "global.h" +#include "mainwindow.h" // Main app constructor--we stick globally accessible stuff here... -TTEdit::TTEdit(int & argc, char * argv[]): QApplication(argc, argv), charWnd(NULL) +TTEdit::TTEdit(int & argc, char * argv[]): QApplication(argc, argv) { - mainWindow = new TTEMainWindow; -//printf("mainWindow.show();\n"); - mainWindow->show(); + Global::mainWindow = new MainWindow; + Global::mainWindow->show(); } @@ -35,11 +35,6 @@ int main(int argc, char * argv[]) { Q_INIT_RESOURCE(ttedit); // This must the same name as the exe filename -// QApplication app(argc, argv); -//printf("TTEdit app(argc, argv);\n"); TTEdit app(argc, argv); -//printf("TTEMainWindow mainWindow;\n"); -//OK, it gets to here at least... -//printf("return app.exec();\n"); return app.exec(); }