~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/wxwidgets/common/app.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************
 
2
 * Name:      [FILENAME_PREFIX]App.cpp
 
3
 * Purpose:   Code for Application Class
 
4
 * Author:    [AUTHOR_NAME] ([AUTHOR_EMAIL])
 
5
 * Created:   [NOW]
 
6
 * Copyright: [AUTHOR_NAME] ([AUTHOR_WWW])
 
7
 * License:
 
8
 **************************************************************/
 
9
 
 
10
#ifdef WX_PRECOMP
 
11
#include "wx_pch.h"
 
12
#endif
 
13
 
 
14
#ifdef __BORLANDC__
 
15
#pragma hdrstop
 
16
#endif //__BORLANDC__
 
17
 
 
18
#include "[FILENAME_PREFIX]App.h"
 
19
#include "[FILENAME_PREFIX]Main.h"
 
20
 
 
21
IMPLEMENT_APP([CLASS_PREFIX]App);
 
22
 
 
23
bool [CLASS_PREFIX]App::OnInit()
 
24
{
 
25
    [IF WXFRAME][CLASS_PREFIX]Frame* frame = new [CLASS_PREFIX]Frame(0L[IF NONE], _("wxWidgets Application Template")[ENDIF NONE]);
 
26
    [IF WINDOWS]frame->SetIcon(wxICON(aaaa)); // To Set App Icon[ENDIF WINDOWS]
 
27
    frame->Show();[ENDIF WXFRAME]
 
28
    [IF WXDIALOG][CLASS_PREFIX]Dialog* dlg = new [CLASS_PREFIX]Dialog(0L[IF NONE], _("wxWidgets Application Template")[ENDIF NONE]);
 
29
    [IF WINDOWS]dlg->SetIcon(wxICON(aaaa)); // To Set App Icon[ENDIF WINDOWS]
 
30
    dlg->Show();[ENDIF WXDIALOG]
 
31
    return true;
 
32
}