]> Shamusworld >> Repos - ttedit/blobdiff - src/ttedit.cpp
Added preview window to file loading dialog. :-)
[ttedit] / src / ttedit.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 62417b5..f023f03
@@ -6,7 +6,7 @@
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
 // 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
 
 #include "ttedit.h"
 #include <QApplication>
-#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();
 }