2 // TTEDIT.CPP - The TrueType Editor
4 // (C) 2004 Underground Software
6 // JLH = James L. Hammons <jlhamm@acm.org>
9 // --- ---------- -------------------------------------------------------------
10 // JLH 04/10/2002 Created this file
11 // JLH 05/10/2004 Translated file from ASM to CPP
12 // JLH 05/14/2004 Added rudimentary editing capability to tool palette tools
13 // JLH 11/18/2006 Initial port to Linux
14 // JLH 08/27/2008 Fixed tool palette focus problems
15 // JLH 08/28/2008 Split out classes defined here into separate files
16 // JLH 03/05/2009 Initial conversion from wxWidgets to Qt
21 // - Fix problem with tool palette not getting focus 1st time it's called up [DONE]
22 // - Split out windows/classes defined here into their own files [DONE]
26 // - Fix bug in Glyphpoints when dragging on an empty canvas or loading a font
27 // - Fix scrolling, zooming, settings (ini)
28 // - Finish conversion to wxWidgets for cross-platform portability
29 // - Fix problem with owned window causing main window refresh problems
30 // (ironically enough, it doesn't seem to be a problem anymore...)
33 // Uncomment this for debugging...
35 //#define DEBUGFOO // Various tool debugging...
36 //#define DEBUGTP // Toolpalette debugging...
39 #include <QApplication>
40 #include "ttemainwindow.h"
41 //#include "charwindow.h"
43 // Main app constructor--we stick globally accessible stuff here...
45 TTEdit::TTEdit(int argc, char * argv[]): QApplication(argc, argv), charWnd(NULL)
47 mainWindow = new TTEMainWindow;
48 //printf("mainWindow.show();\n");
53 // Here's the main application loop--short and simple...
54 int main(int argc, char * argv[])
56 Q_INIT_RESOURCE(ttedit); // This must the same name as the exe filename
58 // QApplication app(argc, argv);
59 //printf("TTEdit app(argc, argv);\n");
60 TTEdit app(argc, argv);
61 //printf("TTEMainWindow mainWindow;\n");
62 //OK, it gets to here at least...
63 //printf("return app.exec();\n");