// 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
// JLH 03/05/2009 Initial conversion from wxWidgets to Qt
//
-// FIXED:
-//
-// - Fix problem with tool palette not getting focus 1st time it's called up [DONE]
-// - Split out windows/classes defined here into their own files [DONE]
-//
-// STILL TO BE DONE:
-//
-// - Fix bug in Glyphpoints when dragging on an empty canvas or loading a font
-// - Fix scrolling, zooming, settings (ini)
-// - Finish conversion to wxWidgets for cross-platform portability
-// - Fix problem with owned window causing main window refresh problems
-// (ironically enough, it doesn't seem to be a problem anymore...)
-//
-
-// Uncomment this for debugging...
-//#define DEBUG
-//#define DEBUGFOO // Various tool debugging...
-//#define DEBUGTP // Toolpalette debugging...
-
#include "ttedit.h"
#include <QApplication>
-#include "ttemainwindow.h"
-//#include "charwindow.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)
{
+ Global::mainWindow = new MainWindow;
+ Global::mainWindow->show();
}
{
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");
- TTEMainWindow mainWindow;
-//printf("mainWindow.show();\n");
- mainWindow.show();
-//OK, it gets to here at least...
-//printf("return app.exec();\n");
return app.exec();
}
-