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

« back to all changes in this revision

Viewing changes to src/tools/cb_share_config/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
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 
3
 * http://www.gnu.org/licenses/gpl-3.0.html
 
4
 *
 
5
 * $Revision$
 
6
 * $Id$
 
7
 * $HeadURL$
 
8
 */
 
9
 
 
10
#include "app.h"
 
11
 
 
12
//(*AppHeaders
 
13
#include "mainframe.h"
 
14
#include <wx/image.h>
 
15
//*)
 
16
 
 
17
IMPLEMENT_APP(MyApp);
 
18
 
 
19
bool MyApp::OnInit()
 
20
{
 
21
 
 
22
        //(*AppInitialize
 
23
        bool wxsOK = true;
 
24
        ::wxInitAllImageHandlers();
 
25
        if ( wxsOK )
 
26
        {
 
27
          MainFrame* MainResource = new MainFrame(0L);
 
28
          if ( MainResource ) MainResource->Show();
 
29
        }
 
30
        //*)
 
31
 
 
32
        return wxsOK;
 
33
}