]>
git.saurik.com Git - wxWidgets.git/blob - 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 /////////////////////////////////////////////////////////////////////////////
8 // For compilers that support precompilation, includes "wx/wx.h".
15 // for all others, include the necessary headers wxWidgets headers)
20 #include "wx/richtext/richtextxml.h"
22 #include "screenshot_app.h"
23 #include "screenshot_main.h"
26 // ----------------------------------------------------------------------------
28 // ----------------------------------------------------------------------------
30 IMPLEMENT_APP(ScreenshotApp
);
32 bool ScreenshotApp::OnInit()
34 // Init all Image handlers
35 wxInitAllImageHandlers();
37 // Add richtext extra handlers (plain text is automatically added)
38 wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler
);
40 ScreenshotFrame
* frame
= new ScreenshotFrame(0L);