]> git.saurik.com Git - wxWidgets.git/blame - utils/screenshotgen/src/screenshot_app.cpp
Further refine of #15226: wxRichTextCtrl: Implement setting properties with undo...
[wxWidgets.git] / utils / screenshotgen / src / screenshot_app.cpp
CommitLineData
0d5eda9c
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: screenshot_app.cpp
3// Purpose: Implement Application Class
4// Author: Utensil Candel (UtensilCandel@@gmail.com)
526954c5 5// Licence: wxWindows licence
0d5eda9c
FM
6/////////////////////////////////////////////////////////////////////////////
7
8// For compilers that support precompilation, includes "wx/wx.h".
9#include "wx/wxprec.h"
10
11#ifdef __BORLANDC__
f978831f 12#pragma hdrstop
0d5eda9c
FM
13#endif
14
f978831f 15// for all others, include the necessary headers wxWidgets headers)
0d5eda9c 16#ifndef WX_PRECOMP
f978831f 17#include "wx/wx.h"
0d5eda9c
FM
18#endif
19
f978831f 20#include "wx/richtext/richtextxml.h"
0d5eda9c
FM
21
22#include "screenshot_app.h"
23#include "screenshot_main.h"
24
25
26// ----------------------------------------------------------------------------
4bae10bd 27// ScreenshotApp
0d5eda9c
FM
28// ----------------------------------------------------------------------------
29
4bae10bd 30IMPLEMENT_APP(ScreenshotApp);
0d5eda9c 31
4bae10bd 32bool ScreenshotApp::OnInit()
0d5eda9c
FM
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
4bae10bd 40 ScreenshotFrame* frame = new ScreenshotFrame(0L);
0d5eda9c
FM
41 frame->Show();
42
43 return true;
44}