]> git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/screenshot_app.cpp
support for GTK3
[wxWidgets.git] / utils / screenshotgen / src / screenshot_app.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: screenshot_app.cpp
3 // Purpose: Implement Application Class
4 // Author: Utensil Candel (UtensilCandel@@gmail.com)
5 // RCS-ID: $Id$
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 // For compilers that support precompilation, includes "wx/wx.h".
10 #include "wx/wxprec.h"
11
12 #ifdef __BORLANDC__
13 #pragma hdrstop
14 #endif
15
16 // for all others, include the necessary headers wxWidgets headers)
17 #ifndef WX_PRECOMP
18 #include "wx/wx.h"
19 #endif
20
21 #include "wx/richtext/richtextxml.h"
22
23 #include "screenshot_app.h"
24 #include "screenshot_main.h"
25
26
27 // ----------------------------------------------------------------------------
28 // ScreenshotApp
29 // ----------------------------------------------------------------------------
30
31 IMPLEMENT_APP(ScreenshotApp);
32
33 bool ScreenshotApp::OnInit()
34 {
35 // Init all Image handlers
36 wxInitAllImageHandlers();
37
38 // Add richtext extra handlers (plain text is automatically added)
39 wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler);
40
41 ScreenshotFrame* frame = new ScreenshotFrame(0L);
42 frame->Show();
43
44 return true;
45 }