OpenASIP
2.0
|
#include <GUITextGenerator.hh>
Public Types | |
enum | { TXT_BUTTON_ADD = Texts::LAST__, TXT_BUTTON_ADD_DIALOG, TXT_BUTTON_CANCEL, TXT_BUTTON_DELETE, TXT_BUTTON_EDIT, TXT_BUTTON_EDIT_DIALOG, TXT_BUTTON_OK, TXT_BUTTON_HELP } |
Ids for the generated texts. More... | |
Static Public Member Functions | |
static GUITextGenerator * | instance () |
static void | destroy () |
Private Member Functions | |
GUITextGenerator () | |
~GUITextGenerator () | |
Static Private Attributes | |
static GUITextGenerator * | instance_ = NULL |
Additional Inherited Members | |
Public Member Functions inherited from Texts::TextGenerator | |
TextGenerator () | |
virtual | ~TextGenerator () |
virtual boost::format | text (int textId) |
virtual void | addText (int textId, const std::string &templateString) |
virtual void | replaceText (int textId, const std::string &newString) |
Provides common texts for tce graphical user interfaces.
The class is implemented using the 'singleton' design pattern. Only one instance of this class is created, and the instance can be accessed using the instance() method.
Definition at line 46 of file GUITextGenerator.hh.
anonymous enum |
Ids for the generated texts.
Definition at line 52 of file GUITextGenerator.hh.
|
private |
The Constructor.
Initializes string templates to the text generator.
Definition at line 42 of file GUITextGenerator.cc.
References Texts::TextGenerator::addText(), TXT_BUTTON_ADD, TXT_BUTTON_ADD_DIALOG, TXT_BUTTON_CANCEL, TXT_BUTTON_DELETE, TXT_BUTTON_EDIT, TXT_BUTTON_EDIT_DIALOG, TXT_BUTTON_HELP, and TXT_BUTTON_OK.
Referenced by instance().
|
private |
|
static |
|
static |
Returns the only instance of this class.
Definition at line 67 of file GUITextGenerator.cc.
References GUITextGenerator(), and instance_.
Referenced by GCUDialog::setLabels(), AboutDialog::setTexts(), OSEdAboutDialog::setTexts(), OSEdOptionsDialog::setTexts(), AddModuleDialog::setTexts(), IUPortDialog::setTexts(), RFPortDialog::setTexts(), OperationDialog::setTexts(), BridgeDialog::setTexts(), ResultDialog::setTexts(), ImmediateSlotDialog::setTexts(), FUPortDialog::setTexts(), OTAFormatListDialog::setTexts(), RFGuardDialog::setTexts(), SRPortDialog::setTexts(), TemplateSlotDialog::setTexts(), FUGuardDialog::setTexts(), AddressSpacesDialog::setTexts(), TemplateListDialog::setTexts(), RFDialog::setTexts(), SocketDialog::setTexts(), OutputOperandDialog::setTexts(), BusDialog::setTexts(), IUDialog::setTexts(), InputOperandDialog::setTexts(), SimulateDialog::setTexts(), FUDialog::setTexts(), AddressSpaceDialog::setTexts(), and OperationPropertyDialog::setTexts().
|
staticprivate |
Definition at line 66 of file GUITextGenerator.hh.
Referenced by destroy(), and instance().