Go to the documentation of this file.
33 #include <wx/filedlg.h>
41 #if wxCHECK_VERSION(3, 0, 0)
42 #define wxOPEN wxFD_OPEN
67 wxString wildcard = _T(
"Architecture Definition Files (*.adf)|*.adf");
68 wildcard.Append(_T(
"|Processor Configuration Files (*.pcf)|*.pcf"));
69 wildcard.Append(_T(
"|All files|*.*"));
74 if (dialog.ShowModal() == wxID_CANCEL) {
85 if (extension ==
".pcf") {
91 wxGetApp().simulation()->lineReader().input(command);
103 return "open_machine.png";
virtual ProximOpenMachineCmd * create() const
#define assert(condition)
static const std::string SCL_LOAD_MACHINE
Command for loading a new machine in the simulator.
virtual ~ProximOpenMachineCmd()
static std::string fileExtension(const std::string &fileName)
static const std::string SCL_LOAD_CONF
Command for loading a new machine configuration file in the simulator.
virtual std::string icon() const
static std::string toString(const wxString &source)
wxWindow * parentWindow() const
virtual std::string shortName() const