Updated FSF address in all files. Fixes ticket:51
[debian/gnuradio] / ezdop / src / host / hunter / src / hunterapp.cc
1 /*
2  Copyright 2006 Johnathan Corgan.
3  
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License version 2
6  as published by the Free Software Foundation.
7  
8  This software is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  GNU General Public License for more details.
12  
13  You should have received a copy of the GNU General Public License
14  along with GNU Radio; see the file COPYING.  If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street,
16  Boston, MA 02110-1301, USA.
17 */
18
19 // Application level includes
20 #include "hunterapp.h"
21 #include "hunter.h"
22
23 // wxWidgets includes
24 #include <wx/xrc/xmlres.h>
25 #include <wx/log.h>
26
27 // Provided in resource.cpp created from hunter.xrc by make system
28 extern void InitXmlResource();
29
30 bool Hunter::OnInit()
31 {
32         m_logger = new wxLogStream();
33         wxLog::SetActiveTarget(m_logger);
34
35     // Get XML resources linked in via resource.cpp
36         wxXmlResource::Get()->InitAllHandlers();
37     InitXmlResource();
38
39         HunterFrame *top = new HunterFrame();
40         top->Show(true);
41
42     // Everything Zen
43         return true;
44 }
45
46 int Hunter::OnExit()
47 {
48         return 0;
49 }
50
51 // Creates main() and WinMain() entry points
52 IMPLEMENT_APP(Hunter)