]> Shamusworld >> Repos - ttedit/blob - src/ttedit.cpp
Added preview window to file loading dialog. :-)
[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 "global.h"
22 #include "mainwindow.h"
23
24 // Main app constructor--we stick globally accessible stuff here...
25
26 TTEdit::TTEdit(int & argc, char * argv[]): QApplication(argc, argv)
27 {
28         Global::mainWindow = new MainWindow;
29         Global::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         TTEdit app(argc, argv);
39         return app.exec();
40 }