Files
wxWidgets/utils/screenshotgen/src/screenshot_app.cpp
Dimitri Schoolwerth 8f8d58d193 Use wx-prefixed macros throughout the repository.
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00

45 lines
1.2 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: screenshot_app.cpp
// Purpose: Implement Application Class
// Author: Utensil Candel (UtensilCandel@@gmail.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// for all others, include the necessary headers wxWidgets headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/richtext/richtextxml.h"
#include "screenshot_app.h"
#include "screenshot_main.h"
// ----------------------------------------------------------------------------
// ScreenshotApp
// ----------------------------------------------------------------------------
wxIMPLEMENT_APP(ScreenshotApp);
bool ScreenshotApp::OnInit()
{
// Init all Image handlers
wxInitAllImageHandlers();
// Add richtext extra handlers (plain text is automatically added)
wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler);
ScreenshotFrame* frame = new ScreenshotFrame(0L);
frame->Show();
return true;
}