OpenASIP
2.0
|
#include <ProDeExportCmd.hh>
Public Member Functions | |
ProDeExportCmd () | |
virtual | ~ProDeExportCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual ProDeExportCmd * | create () const |
virtual bool | isEnabled () |
Public Member Functions inherited from EditorCommand | |
EditorCommand (std::string name, wxWindow *parent=NULL) | |
virtual | ~EditorCommand () |
void | setView (wxView *view) |
wxView * | view () const |
virtual std::string | icon () const |
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 |
EditorCommand for exporting machine visualization to an encapsulated postscript file or a bitmap.
Definition at line 43 of file ProDeExportCmd.hh.
ProDeExportCmd::ProDeExportCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 156 of file ProDeExportCmd.cc.
References ProDeExportCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 75 of file ProDeExportCmd.cc.
References assert, FileSystem::fileExtension(), GUICommand::parentWindow(), MachineCanvas::saveEPS(), MachineCanvas::savePNG(), WxConversion::toString(), WxConversion::toWxString(), and EditorCommand::view().
|
virtual |
Returns id of this command.
Implements GUICommand.
Definition at line 145 of file ProDeExportCmd.cc.
References ProDeConstants::COMMAND_EXPORT.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when a document is open.
Reimplemented from EditorCommand.
Definition at line 169 of file ProDeExportCmd.cc.
References EditorCommand::view().