OpenASIP
2.0
|
#include <WidgetTools.hh>
Static Public Member Functions | |
static void | setWidgetLabel (wxWindow *widget, std::string text) |
static void | setWidgetLabel (wxStaticBoxSizer *widget, std::string text) |
static void | setLabel (Texts::TextGenerator *generator, wxWindow *widget, int textID) |
static std::string | lcStringSelection (wxListCtrl *list, int column) |
Helper functions for handling wxWidgets controls.
Definition at line 46 of file WidgetTools.hh.
|
static |
Returns wxListCtrl's first selected item as a string.
list | List to search for selected item. |
column | Column of the string to return. |
Definition at line 108 of file WidgetTools.cc.
References WxConversion::toString().
Referenced by BlockImplementationDialog::doOK(), OperationDialog::onBindOperand(), FUImplementationDialog::onClearOpcode(), OperationDialog::onDeleteOperand(), GCUDialog::onDeleteOperation(), FUDialog::onDeleteOperation(), RFImplementationDialog::onDeleteSourceFile(), FUImplementationDialog::onDeleteSourceFile(), OperationPropertyDialog::onModifyInputOperand(), OperationPropertyDialog::onModifyOutputOperand(), OperationPropertyDialog::onMoveInputDown(), OperationPropertyDialog::onMoveInputUp(), OperationPropertyDialog::onMoveOutputDown(), OperationPropertyDialog::onMoveOutputUp(), RFImplementationDialog::onMoveSourceFileDown(), FUImplementationDialog::onMoveSourceFileDown(), RFImplementationDialog::onMoveSourceFileUp(), FUImplementationDialog::onMoveSourceFileUp(), FUImplementationDialog::onOpcodeSelection(), OperationDialog::onOperandSelection(), OperationPropertyDialog::onSelection(), FUImplementationDialog::onSetOpcode(), RFImplementationDialog::onSourceFileSelection(), FUImplementationDialog::onSourceFileSelection(), SimulateDialog::onUpdateValue(), OSEdInfoView::selectedModule(), FUDialog::selectedOperation(), GCUDialog::selectedOperation(), OSEdInfoView::selectedOperation(), OTAFormatListDialog::selectedOperation(), OSEdInfoView::selectedPath(), FUDialog::selectedPort(), GCUDialog::selectedPort(), and TemplateListDialog::selectedSlot().
|
static |
Sets a widget label text.
generator | TextGenerator which provides the label text. |
widget | Widget to set the label to. |
textID | Text generator string ID for the label text. |
Definition at line 92 of file WidgetTools.cc.
References setWidgetLabel(), and Texts::TextGenerator::text().
Referenced by OperationPropertyDialog::setBehaviorLabel(), GCUDialog::setLabels(), AboutDialog::setTexts(), OSEdAboutDialog::setTexts(), OSEdOptionsDialog::setTexts(), AddModuleDialog::setTexts(), IUPortDialog::setTexts(), OperationDialog::setTexts(), RFPortDialog::setTexts(), BridgeDialog::setTexts(), ImmediateSlotDialog::setTexts(), ResultDialog::setTexts(), FUPortDialog::setTexts(), OTAFormatListDialog::setTexts(), RFGuardDialog::setTexts(), SRPortDialog::setTexts(), TemplateSlotDialog::setTexts(), FUGuardDialog::setTexts(), AddressSpacesDialog::setTexts(), MemoryDialog::setTexts(), TemplateListDialog::setTexts(), RFDialog::setTexts(), OutputOperandDialog::setTexts(), SocketDialog::setTexts(), BusDialog::setTexts(), IUDialog::setTexts(), SimulateDialog::setTexts(), InputOperandDialog::setTexts(), FUDialog::setTexts(), AddressSpaceDialog::setTexts(), OperationDAGDialog::setTexts(), and OperationPropertyDialog::setTexts().
|
static |
Sets a boxsizer label text.
sizer | wxStaticBoxSizer to set the label to. |
textId | Enumerated ID which identifies the text label. |
Definition at line 76 of file WidgetTools.cc.
References WxConversion::toWxString().
|
static |
Sets a wxControl label text.
widget | Widget to set the label to. |
textId | Enumerated ID which identifies the text label. |
WrongSubclass | If the widget was not a wxControl. |
Definition at line 52 of file WidgetTools.cc.
References assert, and WxConversion::toWxString().
Referenced by setLabel(), GCUDialog::setLabels(), OperationDialog::setTexts(), OTAFormatListDialog::setTexts(), RFDialog::setTexts(), TemplateListDialog::setTexts(), SocketDialog::setTexts(), BusDialog::setTexts(), IUDialog::setTexts(), SimulateDialog::setTexts(), InputOperandDialog::setTexts(), FUDialog::setTexts(), AddressSpaceDialog::setTexts(), and OperationPropertyDialog::setTexts().