]> Shamusworld >> Repos - ttedit/blob - src/ttedit.cpp
a657cad17a48bb10d259299b5ad786b1b68aadd3
[ttedit] / src / ttedit.cpp
1 //
2 // TTEDIT.CPP - The TrueType Editor
3 // by James L. Hammons
4 // (C) 2004 Underground Software
5 //
6 // JLH = James L. Hammons <jlhamm@acm.org>
7 //
8 // Who  When        What
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
17 //
18
19 // FIXED:
20 //
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]
23 //
24 // STILL TO BE DONE:
25 //
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...)
31 //
32
33 // Uncomment this for debugging...
34 //#define DEBUG
35 //#define DEBUGFOO                      // Various tool debugging...
36 //#define DEBUGTP                               // Toolpalette debugging...
37
38 #include "ttedit.h"
39 #include <QApplication>
40 #include "ttemainwindow.h"
41 //#include "charwindow.h"
42
43 // Main app constructor--we stick globally accessible stuff here...
44
45 TTEdit::TTEdit(int argc, char * argv[]): QApplication(argc, argv), charWnd(NULL)
46 {
47         mainWindow = new TTEMainWindow;
48 //printf("mainWindow.show();\n");
49         mainWindow->show();
50 }
51
52
53 // Here's the main application loop--short and simple...
54 int main(int argc, char * argv[])
55 {
56         Q_INIT_RESOURCE(ttedit);        // This must the same name as the exe filename
57
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");
64         return app.exec();
65 }
66