]>
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)
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx/wx.h".
10 #include "wx/wxprec.h"
16 // for all others, include the necessary headers wxWidgets headers)
21 #include "wx/richtext/richtextxml.h"
23 #include "screenshot_app.h"
24 #include "screenshot_main.h"
27 // ----------------------------------------------------------------------------
29 // ----------------------------------------------------------------------------
31 IMPLEMENT_APP(ScreenshotApp
);
33 bool ScreenshotApp::OnInit()
35 // Init all Image handlers
36 wxInitAllImageHandlers();
38 // Add richtext extra handlers (plain text is automatically added)
39 wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler
);
41 ScreenshotFrame
* frame
= new ScreenshotFrame(0L);