]> git.saurik.com Git - wxWidgets.git/blame - utils/screenshotgen/src/screenshot_app.cpp
added wxLog::IsLevelEnabled() helper; document it and a few related functions which...
[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)
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9// For compilers that support precompilation, includes "wx/wx.h".
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
f978831f 13#pragma hdrstop
0d5eda9c
FM
14#endif
15
f978831f 16// for all others, include the necessary headers wxWidgets headers)
0d5eda9c 17#ifndef WX_PRECOMP
f978831f 18#include "wx/wx.h"
0d5eda9c
FM
19#endif
20
f978831f 21#include "wx/richtext/richtextxml.h"
0d5eda9c
FM
22
23#include "screenshot_app.h"
24#include "screenshot_main.h"
25
26
27// ----------------------------------------------------------------------------
4bae10bd 28// ScreenshotApp
0d5eda9c
FM
29// ----------------------------------------------------------------------------
30
4bae10bd 31IMPLEMENT_APP(ScreenshotApp);
0d5eda9c 32
4bae10bd 33bool ScreenshotApp::OnInit()
0d5eda9c
FM
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
4bae10bd 41 ScreenshotFrame* frame = new ScreenshotFrame(0L);
0d5eda9c
FM
42 frame->Show();
43
44 return true;
45}