Update OpenVMS makefile
[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 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7
8 // For compilers that support precompilation, includes "wx/wx.h".
9 #include "wx/wxprec.h"
10
11 #ifdef __BORLANDC__
12 #pragma hdrstop
13 #endif
14
15 // for all others, include the necessary headers wxWidgets headers)
16 #ifndef WX_PRECOMP
17 #include "wx/wx.h"
18 #endif
19
20 #include "wx/richtext/richtextxml.h"
21
22 #include "screenshot_app.h"
23 #include "screenshot_main.h"
24
25
26 // ----------------------------------------------------------------------------
27 // ScreenshotApp
28 // ----------------------------------------------------------------------------
29
30 IMPLEMENT_APP(ScreenshotApp);
31
32 bool ScreenshotApp::OnInit()
33 {
34 // Init all Image handlers
35 wxInitAllImageHandlers();
36
37 // Add richtext extra handlers (plain text is automatically added)
38 wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler);
39
40 ScreenshotFrame* frame = new ScreenshotFrame(0L);
41 frame->Show();
42
43 return true;
44 }