48 #if wxCHECK_VERSION(3, 0, 0)
49 #define wxOPEN wxFD_OPEN
75 if (manager == NULL) {
79 wxString wildcard = _T(
"Architecture Definition Files (*.adf)|*.adf");
80 wildcard.Append(_T(
"|All files|*.*"));
86 if (dialog.ShowModal() == wxID_CANCEL) {
90 wxString fileName = dialog.GetPath();
99 wxString message = _T(
"Error opening ");
100 message.Append(fileName);
101 message.Append(_T(
":\n\n"));
111 if (nav.
count() == 0) {
112 wxString message = _T(
"The file ");
113 message.Append(fileName);
114 message.Append(_T(
" doesn't contain any function units."));
123 for (
int i = 0; i < nav.
count(); i++) {
127 wxSingleChoiceDialog choicer(
128 parentWindow(), _T(
"Choose Function Unit"), _T(
"Choose Function Unit"),
131 if (choicer.ShowModal() != wxID_OK) {
145 if (paramDialog.ShowModal() != wxID_OK) {
153 wxString message = _T(
"Erroneous function unit architecture:\n\n");
160 wxGetApp().mainFrame().update();
161 wxGetApp().mainFrame().browser()->selectFUArchitecture(
id);
207 if (manager == NULL) {