added the automatic screenshot generator utility by Utensil Candel (with some revisions and reorganizations)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-10-06 09:37:27 +00:00
parent cbff0d0e3d
commit 0d5eda9ccd
36 changed files with 9055 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/////////////////////////////////////////////////////////////////////////////
// Name: screenshot_app.cpp
// Purpose: Implement Application Class
// Author: Utensil Candel (UtensilCandel@@gmail.com)
// RCS-ID: $Id$
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// 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
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/richtext/richtextxml.h>
#include "screenshot_app.h"
#include "screenshot_main.h"
// ----------------------------------------------------------------------------
// wxScreenshotApp
// ----------------------------------------------------------------------------
IMPLEMENT_APP(wxScreenshotApp);
bool wxScreenshotApp::OnInit()
{
// Init all Image handlers
wxInitAllImageHandlers();
// Add richtext extra handlers (plain text is automatically added)
wxRichTextBuffer::AddHandler(new wxRichTextXMLHandler);
wxScreenshotFrame* frame = new wxScreenshotFrame(0L);
frame->Show();
return true;
}