OpenASIP
2.0
src
applibs
wxToolkit
GUITextGenerator.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 GUITextGenerator.hh
26
*
27
* Declaration of the GUITextGenerator class.
28
*
29
* @author Veli-Pekka Jääskeläinen 2004 (vjaaskel-no.spam-.cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_GUI_TEXT_GENERATOR_HH
34
#define TTA_GUI_TEXT_GENERATOR_HH
35
36
#include <wx/string.h>
37
#include "
TextGenerator.hh
"
38
39
/**
40
* Provides common texts for tce graphical user interfaces.
41
*
42
* The class is implemented using the 'singleton' design pattern.
43
* Only one instance of this class is created, and the instance
44
* can be accessed using the instance() method.
45
*/
46
class
GUITextGenerator
:
public
Texts::TextGenerator
{
47
public
:
48
static
GUITextGenerator
*
instance
();
49
static
void
destroy
();
50
51
/// Ids for the generated texts.
52
enum
{
53
TXT_BUTTON_ADD
=
Texts::LAST__
,
///< Label for an add button.
54
TXT_BUTTON_ADD_DIALOG
,
///< Label for add button (with trailing ...).
55
TXT_BUTTON_CANCEL
,
///< Label for cancel button.
56
TXT_BUTTON_DELETE
,
///< Label for delete button.
57
TXT_BUTTON_EDIT
,
///< Label for edit button.
58
TXT_BUTTON_EDIT_DIALOG
,
///< Label for edit button (with trailing ...).
59
TXT_BUTTON_OK
,
///< Label for OK button.
60
TXT_BUTTON_HELP
///< Label for help button.
61
};
62
63
private
:
64
GUITextGenerator
();
65
~GUITextGenerator
();
66
static
GUITextGenerator
*
instance_
;
67
};
68
69
#endif
GUITextGenerator::GUITextGenerator
GUITextGenerator()
Definition:
GUITextGenerator.cc:42
GUITextGenerator::instance
static GUITextGenerator * instance()
Definition:
GUITextGenerator.cc:67
GUITextGenerator::~GUITextGenerator
~GUITextGenerator()
Definition:
GUITextGenerator.cc:57
GUITextGenerator
Definition:
GUITextGenerator.hh:46
GUITextGenerator::TXT_BUTTON_HELP
@ TXT_BUTTON_HELP
Label for help button.
Definition:
GUITextGenerator.hh:60
GUITextGenerator::TXT_BUTTON_CANCEL
@ TXT_BUTTON_CANCEL
Label for cancel button.
Definition:
GUITextGenerator.hh:55
GUITextGenerator::instance_
static GUITextGenerator * instance_
Definition:
GUITextGenerator.hh:66
GUITextGenerator::TXT_BUTTON_ADD
@ TXT_BUTTON_ADD
Label for an add button.
Definition:
GUITextGenerator.hh:53
Texts::TextGenerator
Definition:
TextGenerator.hh:79
GUITextGenerator::TXT_BUTTON_DELETE
@ TXT_BUTTON_DELETE
Label for delete button.
Definition:
GUITextGenerator.hh:56
TextGenerator.hh
GUITextGenerator::TXT_BUTTON_ADD_DIALOG
@ TXT_BUTTON_ADD_DIALOG
Label for add button (with trailing ...).
Definition:
GUITextGenerator.hh:54
GUITextGenerator::TXT_BUTTON_EDIT_DIALOG
@ TXT_BUTTON_EDIT_DIALOG
Label for edit button (with trailing ...).
Definition:
GUITextGenerator.hh:58
GUITextGenerator::destroy
static void destroy()
Definition:
GUITextGenerator.cc:79
Texts::LAST__
@ LAST__
Definition:
TextGenerator.hh:68
GUITextGenerator::TXT_BUTTON_EDIT
@ TXT_BUTTON_EDIT
Label for edit button.
Definition:
GUITextGenerator.hh:57
GUITextGenerator::TXT_BUTTON_OK
@ TXT_BUTTON_OK
Label for OK button.
Definition:
GUITextGenerator.hh:59
Generated by
1.8.17