]> Shamusworld >> Repos - ttedit/blob - src/ttedit.cpp
Fix zoom to zoom in/out from the center.
[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 #include "ttedit.h"
20 #include <QApplication>
21 #include "mainwindow.h"
22
23 // Main app constructor--we stick globally accessible stuff here...
24
25 TTEdit::TTEdit(int & argc, char * argv[]): QApplication(argc, argv), charWnd(NULL)
26 {
27         mainWindow = new MainWindow;
28 //printf("mainWindow.show();\n");
29         mainWindow->show();
30 }
31
32
33 // Here's the main application loop--short and simple...
34 int main(int argc, char * argv[])
35 {
36         Q_INIT_RESOURCE(ttedit);        // This must the same name as the exe filename
37
38 //      QApplication app(argc, argv);
39 //printf("TTEdit app(argc, argv);\n");
40         TTEdit app(argc, argv);
41 //printf("TTEMainWindow mainWindow;\n");
42 //OK, it gets to here at least...
43 //printf("return app.exec();\n");
44         return app.exec();
45 }