OpenASIP  2.0
OSEdConstants.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 OSEdConstants.hh
26  *
27  * Declaration of OSEdConstants class.
28  *
29  * @author Jussi Nykänen 2004 (nykanen-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef OSED_CONSTANTS_HH
34 #define OSED_CONSTANTS_HH
35 
36 #include <string>
37 #include <wx/string.h>
38 #include <wx/wx.h>
39 #include <wx/font.h>
40 #include <wx/treectrl.h>
41 
42 /**
43  * Holds all the constants for OSEd.
44  */
46 public:
47 
48  /// Quit command name.
49  static const std::string CMD_NAME_QUIT;
50  /// About command name.
51  static const std::string CMD_NAME_ABOUT;
52  /// Operation properties command name.
53  static const std::string CMD_NAME_PROPERTIES;
54  /// Add module command name.
55  static const std::string CMD_NAME_ADD_MODULE;
56  /// Add operation command name.
57  static const std::string CMD_NAME_ADD_OPERATION;
58  /// Simulate command name.
59  static const std::string CMD_NAME_SIMULATE;
60  /// Option command name.
61  static const std::string CMD_NAME_OPTIONS;
62  /// Build command name.
63  static const std::string CMD_NAME_BUILD;
64  /// Build all command name.
65  static const std::string CMD_NAME_BUILD_ALL;
66  /// User manual command name.
67  static const std::string CMD_NAME_USER_MANUAL;
68  /// Remove module command name.
69  static const std::string CMD_NAME_REMOVE_MODULE;
70  /// Modify behavior command name.
71  static const std::string CMD_NAME_MODIFY_BEHAVIOR;
72  /// Remove operation command name.
73  static const std::string CMD_NAME_REMOVE_OPERATION;
74  /// Investigate memory command name.
75  static const std::string CMD_NAME_MEMORY;
76 
77  /// Configuration file name.
78  static const std::string CONF_FILE_NAME;
79  /// Name of the user manual.
80  static const std::string USER_MANUAL_NAME;
81  /// Name of the behavior template file name.
82  static const std::string BEHAVIOR_TEMPLATE_FILE_NAME;
83 
84  /// Default editor name.
85  static const std::string DEFAULT_EDITOR;
86 
87  /**
88  * All the command ids.
89  */
90  enum CommandID {
91  CMD_QUIT = 1, ///< Quit command id.
92  CMD_ADD_MODULE, ///< Add module command id.
93  CMD_ADD_OPERATION, ///< Add operation command id.
94  CMD_PROPERTIES, ///< Operation properties command id.
95  CMD_REMOVE_MODULE, ///< Remove module command id.
96  CMD_REMOVE_OPERATION, ///< Remove operation command id.
97  CMD_MODIFY_BEHAVIOR, ///< Modify operation behavior command id.
98  CMD_BUILD, ///< Build command id.
99  CMD_BUILD_ALL, ///< Build all command id.
100  CMD_SIMULATE, ///< Simulate command id.
101  CMD_ABOUT, ///< About command id.
102  CMD_OPTIONS, ///< Option command id.
103  CMD_USER_MANUAL, ///< User manual command id.
104  CMD_MEMORY, ///< Memory command id.
105  CMD_TREE_ITEM, ///< Id for tree events.
106  CMD_INFO_VIEW ///< Id for list events.
107  };
108 
109  /// The name of the application.
110  static const wxString APPLICATION_NAME;
111 
112  /// Default column width.
113  static const int DEFAULT_COLUMN_WIDTH;
114 
115  /// Name of the logo.
116  static const std::string LOGO_NAME;
117 
118  /// Copyright string
119  static const wxString OSED_COPYRIGHT;
120 };
121 
122 #endif
OSEdConstants::BEHAVIOR_TEMPLATE_FILE_NAME
static const std::string BEHAVIOR_TEMPLATE_FILE_NAME
Name of the behavior template file name.
Definition: OSEdConstants.hh:82
OSEdConstants::CMD_QUIT
@ CMD_QUIT
Quit command id.
Definition: OSEdConstants.hh:91
OSEdConstants::DEFAULT_COLUMN_WIDTH
static const int DEFAULT_COLUMN_WIDTH
Default column width.
Definition: OSEdConstants.hh:113
OSEdConstants::APPLICATION_NAME
static const wxString APPLICATION_NAME
The name of the application.
Definition: OSEdConstants.hh:110
OSEdConstants::CMD_ADD_OPERATION
@ CMD_ADD_OPERATION
Add operation command id.
Definition: OSEdConstants.hh:93
OSEdConstants::CMD_MEMORY
@ CMD_MEMORY
Memory command id.
Definition: OSEdConstants.hh:104
OSEdConstants::CMD_NAME_MEMORY
static const std::string CMD_NAME_MEMORY
Investigate memory command name.
Definition: OSEdConstants.hh:75
OSEdConstants::CMD_BUILD
@ CMD_BUILD
Build command id.
Definition: OSEdConstants.hh:98
OSEdConstants::CMD_REMOVE_OPERATION
@ CMD_REMOVE_OPERATION
Remove operation command id.
Definition: OSEdConstants.hh:96
OSEdConstants::USER_MANUAL_NAME
static const std::string USER_MANUAL_NAME
Name of the user manual.
Definition: OSEdConstants.hh:80
OSEdConstants::CMD_NAME_ABOUT
static const std::string CMD_NAME_ABOUT
About command name.
Definition: OSEdConstants.hh:51
OSEdConstants::CMD_PROPERTIES
@ CMD_PROPERTIES
Operation properties command id.
Definition: OSEdConstants.hh:94
OSEdConstants::CMD_NAME_QUIT
static const std::string CMD_NAME_QUIT
Quit command name.
Definition: OSEdConstants.hh:49
OSEdConstants::CMD_NAME_ADD_OPERATION
static const std::string CMD_NAME_ADD_OPERATION
Add operation command name.
Definition: OSEdConstants.hh:57
OSEdConstants::CMD_SIMULATE
@ CMD_SIMULATE
Simulate command id.
Definition: OSEdConstants.hh:100
OSEdConstants::CMD_INFO_VIEW
@ CMD_INFO_VIEW
Id for list events.
Definition: OSEdConstants.hh:106
OSEdConstants::CMD_REMOVE_MODULE
@ CMD_REMOVE_MODULE
Remove module command id.
Definition: OSEdConstants.hh:95
OSEdConstants::DEFAULT_EDITOR
static const std::string DEFAULT_EDITOR
Default editor name.
Definition: OSEdConstants.hh:85
OSEdConstants
Definition: OSEdConstants.hh:45
OSEdConstants::OSED_COPYRIGHT
static const wxString OSED_COPYRIGHT
Copyright string.
Definition: OSEdConstants.hh:119
OSEdConstants::CommandID
CommandID
Definition: OSEdConstants.hh:90
OSEdConstants::CMD_NAME_OPTIONS
static const std::string CMD_NAME_OPTIONS
Option command name.
Definition: OSEdConstants.hh:61
OSEdConstants::CMD_OPTIONS
@ CMD_OPTIONS
Option command id.
Definition: OSEdConstants.hh:102
OSEdConstants::CMD_USER_MANUAL
@ CMD_USER_MANUAL
User manual command id.
Definition: OSEdConstants.hh:103
OSEdConstants::CMD_NAME_PROPERTIES
static const std::string CMD_NAME_PROPERTIES
Operation properties command name.
Definition: OSEdConstants.hh:53
OSEdConstants::CMD_ADD_MODULE
@ CMD_ADD_MODULE
Add module command id.
Definition: OSEdConstants.hh:92
OSEdConstants::CMD_TREE_ITEM
@ CMD_TREE_ITEM
Id for tree events.
Definition: OSEdConstants.hh:105
OSEdConstants::CMD_NAME_USER_MANUAL
static const std::string CMD_NAME_USER_MANUAL
User manual command name.
Definition: OSEdConstants.hh:67
OSEdConstants::CMD_ABOUT
@ CMD_ABOUT
About command id.
Definition: OSEdConstants.hh:101
OSEdConstants::CMD_NAME_BUILD_ALL
static const std::string CMD_NAME_BUILD_ALL
Build all command name.
Definition: OSEdConstants.hh:65
OSEdConstants::CMD_NAME_REMOVE_OPERATION
static const std::string CMD_NAME_REMOVE_OPERATION
Remove operation command name.
Definition: OSEdConstants.hh:73
OSEdConstants::CMD_BUILD_ALL
@ CMD_BUILD_ALL
Build all command id.
Definition: OSEdConstants.hh:99
OSEdConstants::CMD_NAME_MODIFY_BEHAVIOR
static const std::string CMD_NAME_MODIFY_BEHAVIOR
Modify behavior command name.
Definition: OSEdConstants.hh:71
OSEdConstants::LOGO_NAME
static const std::string LOGO_NAME
Name of the logo.
Definition: OSEdConstants.hh:116
OSEdConstants::CONF_FILE_NAME
static const std::string CONF_FILE_NAME
Configuration file name.
Definition: OSEdConstants.hh:78
OSEdConstants::CMD_NAME_ADD_MODULE
static const std::string CMD_NAME_ADD_MODULE
Add module command name.
Definition: OSEdConstants.hh:55
OSEdConstants::CMD_MODIFY_BEHAVIOR
@ CMD_MODIFY_BEHAVIOR
Modify operation behavior command id.
Definition: OSEdConstants.hh:97
OSEdConstants::CMD_NAME_SIMULATE
static const std::string CMD_NAME_SIMULATE
Simulate command name.
Definition: OSEdConstants.hh:59
OSEdConstants::CMD_NAME_BUILD
static const std::string CMD_NAME_BUILD
Build command name.
Definition: OSEdConstants.hh:63
OSEdConstants::CMD_NAME_REMOVE_MODULE
static const std::string CMD_NAME_REMOVE_MODULE
Remove module command name.
Definition: OSEdConstants.hh:69