106 wxWindow* topWindow = wxGetApp().GetTopWindow();
107 if (topWindow != NULL) {
125 wxWindow* topWindow = wxGetApp().GetTopWindow();
127 if (topWindow == NULL) {
131 wxWindow* machineWin = topWindow->FindWindowById(
134 if (machineWin == NULL) {
152 wxWindow* topWindow = wxGetApp().GetTopWindow();
154 if (topWindow == NULL) {
158 wxWindow* disasmWin = topWindow->FindWindowById(
161 if (disasmWin == NULL) {
177 wxWindow* window,
const wxString& title,
bool stayOnTop,
178 const wxSize& minSize) {
181 long style = wxDEFAULT_FRAME_STYLE;
183 style = (style | wxFRAME_FLOAT_ON_PARENT);
186 wxFrame* frame =
new wxFrame(
187 mainFrame(), -1, title, wxDefaultPosition, wxDefaultSize, style);
189 window->Reparent(frame);
190 wxBoxSizer* sizer =
new wxBoxSizer(wxVERTICAL);
191 sizer->Add(window, 1, wxGROW);
192 sizer->SetSizeHints(window);
193 frame->SetSizer(sizer);
195 frame->SetSizeHints(minSize.GetWidth(), minSize.GetHeight());
210 if (simulation == NULL) {
224 if (wxGetApp().simulation() == NULL) {
227 return wxGetApp().simulation()->frontend();
239 return wxGetApp().simulation()->lineReader();
253 wxWindow* parent,
const std::string& expression) {
262 wxString message = _T(
"Error in expression:\n");
281 wxWindow* parent,
const std::string& condition) {
290 wxString message = _T(
"Error in condition:\n");