OpenASIP  2.0
Proxim.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file Proxim.hh
26  *
27  * Declaration of Proxim class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef PROXIM_HH
34 #define PROXIM_HH
35 
36 #include <wx/app.h>
37 #include "CommandRegistry.hh"
38 
39 class MainFrame;
40 
41 class ProximMainFrame;
42 class wxPanel;
44 class GUIOptions;
45 
46 /**
47  * Represents the Proxim application.
48  *
49  * This is the top level class of the application. Derived from the wxApp
50  * class, which does the low level initialization of wxWidgets. This class
51  * is responsible for the application initialization and termination.
52  */
53 class Proxim : public wxApp {
54 public:
55  Proxim();
56  virtual ~Proxim();
57  virtual bool OnInit();
58  virtual int OnExit();
62 
63 private:
64  void loadOptions();
65  void createDefaultOptions();
66 
67  /// The application main frame.
69  /// The application command registry.
71  /// The simulation thread running the simulator backend.
73  /// Options defining toolbar, keyboard shortcuts etc.
75 
76  /// Name of the config file.
77  static const std::string CONFIG_FILE_NAME;
78  /// Name of the xml-schema file.
79  static const std::string SCHEMA_FILE_NAME;
80 };
81 
82 DECLARE_APP(Proxim)
83 
84 #endif
ProximMainFrame
Definition: ProximMainFrame.hh:58
Proxim::options_
GUIOptions * options_
Options defining toolbar, keyboard shortcuts etc.
Definition: Proxim.hh:74
CommandRegistry.hh
MainFrame
Definition: MainFrame.hh:50
ProximSimulationThread
Definition: ProximSimulationThread.hh:55
Proxim::OnInit
virtual bool OnInit()
Definition: Proxim.cc:92
Proxim::simulation
ProximSimulationThread * simulation()
Definition: Proxim.cc:202
Proxim::mainFrame_
ProximMainFrame * mainFrame_
The application main frame.
Definition: Proxim.hh:68
Proxim::Proxim
Proxim()
Definition: Proxim.cc:67
Proxim::OnExit
virtual int OnExit()
Definition: Proxim.cc:188
Proxim::~Proxim
virtual ~Proxim()
Definition: Proxim.cc:76
CommandRegistry
Definition: CommandRegistry.hh:47
Proxim::commandRegistry
CommandRegistry & commandRegistry()
Definition: Proxim.cc:216
Proxim
Definition: Proxim.hh:53
GUIOptions
Definition: GUIOptions.hh:58
Proxim::createDefaultOptions
void createDefaultOptions()
Definition: Proxim.cc:270
Proxim::options
GUIOptions & options()
Definition: Proxim.cc:347
Proxim::simulation_
ProximSimulationThread * simulation_
The simulation thread running the simulator backend.
Definition: Proxim.hh:72
Proxim::loadOptions
void loadOptions()
Definition: Proxim.cc:227
Proxim::CONFIG_FILE_NAME
static const std::string CONFIG_FILE_NAME
Name of the config file.
Definition: Proxim.hh:77
Proxim::SCHEMA_FILE_NAME
static const std::string SCHEMA_FILE_NAME
Name of the xml-schema file.
Definition: Proxim.hh:79
Proxim::commandRegistry_
CommandRegistry * commandRegistry_
The application command registry.
Definition: Proxim.hh:70