OpenASIP
2.0
|
#include <HDBEditorDeleteCmd.hh>
Public Member Functions | |
HDBEditorDeleteCmd () | |
virtual | ~HDBEditorDeleteCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual HDBEditorDeleteCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Private Member Functions | |
bool | confirmDeletion (const wxString &component) |
Command for deleting entries from the HDB.
Definition at line 41 of file HDBEditorDeleteCmd.hh.
HDBEditorDeleteCmd::HDBEditorDeleteCmd | ( | ) |
|
virtual |
|
private |
Creates a dialog box to confirm deletion.
component | Type of component to be deleted. |
Definition at line 252 of file HDBEditorDeleteCmd.cc.
References GUICommand::parentWindow().
Referenced by Do().
|
virtual |
Creates a new instance of this command.
Implements GUICommand.
Definition at line 206 of file HDBEditorDeleteCmd.cc.
References HDBEditorDeleteCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 61 of file HDBEditorDeleteCmd.cc.
References HDB::HDBManager::canRemoveFUArchitecture(), HDB::HDBManager::canRemoveRFArchitecture(), confirmDeletion(), HDB::HDBManager::fuEntryIDOfImplementation(), HDBBrowserWindow::isBusEntrySelected(), HDBBrowserWindow::isCostFunctionPluginSelected(), HDBBrowserWindow::isFUArchitectureSelected(), HDBBrowserWindow::isFUEntrySelected(), HDBBrowserWindow::isFUImplementationSelected(), HDBBrowserWindow::isOperationImplementationResourceSelected(), HDBBrowserWindow::isOperationImplementationSelected(), HDBBrowserWindow::isRFArchitectureSelected(), HDBBrowserWindow::isRFEntrySelected(), HDBBrowserWindow::isRFImplementationSelected(), HDBBrowserWindow::isSocketEntrySelected(), GUICommand::parentWindow(), HDB::HDBManager::removeBusEntry(), HDB::HDBManager::removeCostFunctionPlugin(), HDB::HDBManager::removeFUArchitecture(), HDB::HDBManager::removeFUEntry(), HDB::HDBManager::removeOperationImplementation(), HDB::HDBManager::removeOperationImplementationResource(), HDB::HDBManager::removeRFArchitecture(), HDB::HDBManager::removeRFEntry(), HDB::HDBManager::removeSocketEntry(), HDB::HDBManager::rfEntryIDOfImplementation(), HDBBrowserWindow::selectedBusEntry(), HDBBrowserWindow::selectedCostFunctionPlugin(), HDBBrowserWindow::selectedFUArchitecture(), HDBBrowserWindow::selectedFUEntry(), HDBBrowserWindow::selectedFUImplementation(), HDBBrowserWindow::selectedOperationImplementation(), HDBBrowserWindow::selectedOperationImplementationResource(), HDBBrowserWindow::selectedRFArchitecture(), HDBBrowserWindow::selectedRFEntry(), HDBBrowserWindow::selectedRFImplementation(), HDBBrowserWindow::selectedSocketEntry(), and WxConversion::toWxString().
|
virtual |
Returns name of the command icon file.
Implements GUICommand.
Definition at line 184 of file HDBEditorDeleteCmd.cc.
|
virtual |
Returns the command id.
Implements GUICommand.
Definition at line 195 of file HDBEditorDeleteCmd.cc.
References HDBEditorConstants::COMMAND_DELETE.
|
virtual |
Returns true if the command should be enabled in the menu/toolbar.
Implements GUICommand.
Definition at line 217 of file HDBEditorDeleteCmd.cc.
References HDBBrowserWindow::isBusEntrySelected(), HDBBrowserWindow::isCostFunctionPluginSelected(), HDBBrowserWindow::isFUArchitectureSelected(), HDBBrowserWindow::isFUEntrySelected(), HDBBrowserWindow::isFUImplementationSelected(), HDBBrowserWindow::isOperationImplementationResourceSelected(), HDBBrowserWindow::isOperationImplementationSelected(), HDBBrowserWindow::isRFArchitectureSelected(), HDBBrowserWindow::isRFEntrySelected(), HDBBrowserWindow::isRFImplementationSelected(), and HDBBrowserWindow::isSocketEntrySelected().