OpenASIP 2.2
Loading...
Searching...
No Matches
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
39class MainFrame;
40
41class ProximMainFrame;
42class wxPanel;
44class 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 */
53class Proxim : public wxApp {
54public:
55 Proxim();
56 virtual ~Proxim();
57 virtual bool OnInit();
58 virtual int OnExit();
62
63private:
64 void loadOptions();
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
82DECLARE_APP(Proxim)
83
84#endif
static const std::string CONFIG_FILE_NAME
Name of the config file.
Definition Proxim.hh:77
CommandRegistry * commandRegistry_
The application command registry.
Definition Proxim.hh:70
virtual int OnExit()
Definition Proxim.cc:188
GUIOptions * options_
Options defining toolbar, keyboard shortcuts etc.
Definition Proxim.hh:74
GUIOptions & options()
Definition Proxim.cc:347
virtual bool OnInit()
Definition Proxim.cc:92
ProximSimulationThread * simulation_
The simulation thread running the simulator backend.
Definition Proxim.hh:72
void createDefaultOptions()
Definition Proxim.cc:270
ProximSimulationThread * simulation()
Definition Proxim.cc:202
CommandRegistry & commandRegistry()
Definition Proxim.cc:216
ProximMainFrame * mainFrame_
The application main frame.
Definition Proxim.hh:68
virtual ~Proxim()
Definition Proxim.cc:76
void loadOptions()
Definition Proxim.cc:227
Proxim()
Definition Proxim.cc:67
static const std::string SCHEMA_FILE_NAME
Name of the xml-schema file.
Definition Proxim.hh:79