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";
#define assert(condition)
static std::string fileExtension(const std::string &fileName)
wxWindow * parentWindow() const
static const std::string SCL_LOAD_CONF
Command for loading a new machine configuration file in the simulator.
static const std::string SCL_LOAD_MACHINE
Command for loading a new machine in the simulator.
virtual ProximOpenMachineCmd * create() const
virtual std::string shortName() const
virtual ~ProximOpenMachineCmd()
virtual std::string icon() const
static std::string toString(const wxString &source)