Fixed the child windows appearing under the parent window with "Keep window on top" enabled.

This commit is contained in:
skidau 2015-05-23 01:56:33 +00:00
parent d9e705d39a
commit bca162d761
6 changed files with 120 additions and 84 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-23 11:19+1000\n" "POT-Creation-Date: 2015-05-23 11:54+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -142,7 +142,7 @@ msgstr ""
msgid "ROM+MBC7+BATT" msgid "ROM+MBC7+BATT"
msgstr "" msgstr ""
#: ../src/wx/cmdevents.cpp:649 ../src/wx/guiinit.cpp:807 #: ../src/wx/cmdevents.cpp:649 ../src/wx/guiinit.cpp:818
msgid "GameGenie" msgid "GameGenie"
msgstr "" msgstr ""
@ -166,7 +166,7 @@ msgstr ""
msgid "ROM+HuC-1" msgid "ROM+HuC-1"
msgstr "" msgstr ""
#: ../src/wx/cmdevents.cpp:721 ../src/wx/guiinit.cpp:1876 #: ../src/wx/cmdevents.cpp:721 ../src/wx/guiinit.cpp:1892
#: ../src/wx/xrc/DisplayConfig.xrc:77 ../src/wx/xrc/DisplayConfig.xrc:221 #: ../src/wx/xrc/DisplayConfig.xrc:77 ../src/wx/xrc/DisplayConfig.xrc:221
#: ../src/wx/xrc/DisplayConfig.xrc:270 #: ../src/wx/xrc/DisplayConfig.xrc:270
#: ../src/wx/xrc/GameBoyAdvanceConfig.xrc:32 #: ../src/wx/xrc/GameBoyAdvanceConfig.xrc:32
@ -314,7 +314,7 @@ msgstr ""
#: ../src/wx/cmdevents.cpp:1160 ../src/wx/cmdevents.cpp:1261 #: ../src/wx/cmdevents.cpp:1160 ../src/wx/cmdevents.cpp:1261
#: ../src/wx/cmdevents.cpp:1353 ../src/wx/cmdevents.cpp:1396 #: ../src/wx/cmdevents.cpp:1353 ../src/wx/cmdevents.cpp:1396
#: ../src/wx/viewers.cpp:555 ../src/wx/viewers.cpp:750 #: ../src/wx/viewers.cpp:555 ../src/wx/viewers.cpp:760
#: ../src/wx/viewsupt.cpp:1239 #: ../src/wx/viewsupt.cpp:1239
msgid "Select output file" msgid "Select output file"
msgstr "" msgstr ""
@ -542,166 +542,166 @@ msgstr ""
msgid "Saved cheats" msgid "Saved cheats"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:346 ../src/wx/guiinit.cpp:370 #: ../src/wx/guiinit.cpp:352 ../src/wx/guiinit.cpp:376
msgid "Restore old values?" msgid "Restore old values?"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:347 ../src/wx/guiinit.cpp:371 #: ../src/wx/guiinit.cpp:353 ../src/wx/guiinit.cpp:377
msgid "Removing cheats" msgid "Removing cheats"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:806 ../src/wx/xrc/JoyPanel.xrc:244 #: ../src/wx/guiinit.cpp:817 ../src/wx/xrc/JoyPanel.xrc:244
msgid "GameShark" msgid "GameShark"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:811 #: ../src/wx/guiinit.cpp:822
msgid "Generic Code" msgid "Generic Code"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:812 #: ../src/wx/guiinit.cpp:823
msgid "GameShark Advance" msgid "GameShark Advance"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:813 #: ../src/wx/guiinit.cpp:824
msgid "CodeBreaker Advance" msgid "CodeBreaker Advance"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:814 #: ../src/wx/guiinit.cpp:825
msgid "Flashcart CHT" msgid "Flashcart CHT"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:876 ../src/wx/guiinit.cpp:1143 #: ../src/wx/guiinit.cpp:887 ../src/wx/guiinit.cpp:1159
msgid "Number cannot be empty" msgid "Number cannot be empty"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:917 #: ../src/wx/guiinit.cpp:928
#, c-format #, c-format
msgid "Search produced %d results. Please refine better" msgid "Search produced %d results. Please refine better"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:930 #: ../src/wx/guiinit.cpp:941
msgid "Search produced no results" msgid "Search produced no results"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1105 #: ../src/wx/guiinit.cpp:1116
msgid "8-bit " msgid "8-bit "
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1109 #: ../src/wx/guiinit.cpp:1120
msgid "16-bit " msgid "16-bit "
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1113 #: ../src/wx/guiinit.cpp:1124
msgid "32-bit " msgid "32-bit "
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1120 #: ../src/wx/guiinit.cpp:1131
msgid "signed decimal" msgid "signed decimal"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1124 #: ../src/wx/guiinit.cpp:1135
msgid "unsigned decimal" msgid "unsigned decimal"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1128 #: ../src/wx/guiinit.cpp:1139
msgid "unsigned hexadecimal" msgid "unsigned hexadecimal"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1612 #: ../src/wx/guiinit.cpp:1628
#, c-format #, c-format
msgid "%d frames = %.2f ms" msgid "%d frames = %.2f ms"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1623 #: ../src/wx/guiinit.cpp:1639
msgid "Default device" msgid "Default device"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1763 #: ../src/wx/guiinit.cpp:1779
msgid "Desktop mode" msgid "Desktop mode"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1771 #: ../src/wx/guiinit.cpp:1787
#, c-format #, c-format
msgid "%d x %d - %dbpp @ %dHz" msgid "%d x %d - %dbpp @ %dHz"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1921 #: ../src/wx/guiinit.cpp:1937
#, c-format #, c-format
msgid "No usable rpi plugins found in %s" msgid "No usable rpi plugins found in %s"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1944 ../src/wx/xrc/DisplayConfig.xrc:242 #: ../src/wx/guiinit.cpp:1960 ../src/wx/xrc/DisplayConfig.xrc:242
msgid "Plugin" msgid "Plugin"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1977 #: ../src/wx/guiinit.cpp:1993
msgid "Please select a plugin or a different filter" msgid "Please select a plugin or a different filter"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:1978 #: ../src/wx/guiinit.cpp:1994
msgid "Plugin selection error" msgid "Plugin selection error"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2182 #: ../src/wx/guiinit.cpp:2198
msgid "This will clear all user-defined accelerators. Are you sure?" msgid "This will clear all user-defined accelerators. Are you sure?"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2183 #: ../src/wx/guiinit.cpp:2199
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2685 #: ../src/wx/guiinit.cpp:2701
msgid "Main display panel not found" msgid "Main display panel not found"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2700 #: ../src/wx/guiinit.cpp:2716
msgid "Main icon not found" msgid "Main icon not found"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2825 #: ../src/wx/guiinit.cpp:2841
#, c-format #, c-format
msgid "Duplicate menu accelerator: %s for %s and %s; keeping first" msgid "Duplicate menu accelerator: %s for %s and %s; keeping first"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2842 #: ../src/wx/guiinit.cpp:2858
#, c-format #, c-format
msgid "Menu accelerator %s for %s overrides default for %s ; keeping menu" msgid "Menu accelerator %s for %s overrides default for %s ; keeping menu"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:2958 #: ../src/wx/guiinit.cpp:2974
#, c-format #, c-format
msgid "Invalid menu item %s; removing" msgid "Invalid menu item %s; removing"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3139 #: ../src/wx/guiinit.cpp:3155
msgid "Code" msgid "Code"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3148 #: ../src/wx/guiinit.cpp:3164
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3222 ../src/wx/xrc/CheatAdd.xrc:31 #: ../src/wx/guiinit.cpp:3238 ../src/wx/xrc/CheatAdd.xrc:31
msgid "Address" msgid "Address"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3223 #: ../src/wx/guiinit.cpp:3239
msgid "Old Value" msgid "Old Value"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3224 #: ../src/wx/guiinit.cpp:3240
msgid "New Value" msgid "New Value"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3667 #: ../src/wx/guiinit.cpp:3683
msgid "Menu commands" msgid "Menu commands"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3694 #: ../src/wx/guiinit.cpp:3710
msgid "Other commands" msgid "Other commands"
msgstr "" msgstr ""
#: ../src/wx/guiinit.cpp:3806 #: ../src/wx/guiinit.cpp:3822
msgid "JoyBus host invalid; disabling" msgid "JoyBus host invalid; disabling"
msgstr "" msgstr ""
@ -901,37 +901,37 @@ msgstr ""
msgid "%d%%" msgid "%d%%"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:838 ../src/wx/xrc/GBPrinter.xrc:65 #: ../src/wx/sys.cpp:847 ../src/wx/xrc/GBPrinter.xrc:65
msgid "&Discard" msgid "&Discard"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:872 #: ../src/wx/sys.cpp:881
msgid "Image files (*.bmp;*.jpg;*.png)|*.bmp;*.jpg;*.png|" msgid "Image files (*.bmp;*.jpg;*.png)|*.bmp;*.jpg;*.png|"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:881 #: ../src/wx/sys.cpp:890
msgid "Save printer image to" msgid "Save printer image to"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:896 ../src/wx/sys.cpp:1105 #: ../src/wx/sys.cpp:905 ../src/wx/sys.cpp:1114
#, c-format #, c-format
msgid "Wrote printer output to %s" msgid "Wrote printer output to %s"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:902 ../src/wx/sys.cpp:975 #: ../src/wx/sys.cpp:911 ../src/wx/sys.cpp:984
msgid "&Close" msgid "&Close"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:969 #: ../src/wx/sys.cpp:978
msgid "Printed" msgid "Printed"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:1296 #: ../src/wx/sys.cpp:1305
#, c-format #, c-format
msgid "Error opening pseudo tty: %s" msgid "Error opening pseudo tty: %s"
msgstr "" msgstr ""
#: ../src/wx/sys.cpp:1395 #: ../src/wx/sys.cpp:1404
#, c-format #, c-format
msgid "Error setting up server socket (%d)" msgid "Error setting up server socket (%d)"
msgstr "" msgstr ""
@ -940,7 +940,7 @@ msgstr ""
msgid "Text files (*.txt;*.log)|*.txt;*.log|" msgid "Text files (*.txt;*.log)|*.txt;*.log|"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:688 ../src/wx/viewers.cpp:748 #: ../src/wx/viewers.cpp:688 ../src/wx/viewers.cpp:758
msgid "Memory dumps (*.dmp;*.bin)|*.dmp;*.bin|" msgid "Memory dumps (*.dmp;*.bin)|*.dmp;*.bin|"
msgstr "" msgstr ""
@ -948,67 +948,67 @@ msgstr ""
msgid "Select memory dump file" msgid "Select memory dump file"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:791 #: ../src/wx/viewers.cpp:801
msgid "0x00000000 - BIOS" msgid "0x00000000 - BIOS"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:792 #: ../src/wx/viewers.cpp:802
msgid "0x02000000 - WRAM" msgid "0x02000000 - WRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:793 #: ../src/wx/viewers.cpp:803
msgid "0x03000000 - IRAM" msgid "0x03000000 - IRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:794 #: ../src/wx/viewers.cpp:804
msgid "0x04000000 - I/O" msgid "0x04000000 - I/O"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:795 #: ../src/wx/viewers.cpp:805
msgid "0x05000000 - PALETTE" msgid "0x05000000 - PALETTE"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:796 #: ../src/wx/viewers.cpp:806
msgid "0x06000000 - VRAM" msgid "0x06000000 - VRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:797 #: ../src/wx/viewers.cpp:807
msgid "0x07000000 - OAM" msgid "0x07000000 - OAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:798 #: ../src/wx/viewers.cpp:808
msgid "0x08000000 - ROM" msgid "0x08000000 - ROM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:903 #: ../src/wx/viewers.cpp:913
msgid "0x0000 - ROM" msgid "0x0000 - ROM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:904 #: ../src/wx/viewers.cpp:914
msgid "0x4000 - ROM" msgid "0x4000 - ROM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:905 #: ../src/wx/viewers.cpp:915
msgid "0x8000 - VRAM" msgid "0x8000 - VRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:906 #: ../src/wx/viewers.cpp:916
msgid "0xA000 - SRAM" msgid "0xA000 - SRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:907 #: ../src/wx/viewers.cpp:917
msgid "0xC000 - RAM" msgid "0xC000 - RAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:908 #: ../src/wx/viewers.cpp:918
msgid "0xD000 - WRAM" msgid "0xD000 - WRAM"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:909 #: ../src/wx/viewers.cpp:919
msgid "0xFF00 - I/O" msgid "0xFF00 - I/O"
msgstr "" msgstr ""
#: ../src/wx/viewers.cpp:910 #: ../src/wx/viewers.cpp:920
msgid "0xFF80 - RAM" msgid "0xFF80 - RAM"
msgstr "" msgstr ""
@ -1807,11 +1807,11 @@ msgstr ""
msgid "Notes:" msgid "Notes:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:4 #: ../src/wx/xrc/GBAROMInfo.xrc:4 ../src/wx/xrc/GBROMInfo.xrc:4
msgid "Rom Information" msgid "Rom Information"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:11 ../src/wx/xrc/GBROMInfo.xrc:11 #: ../src/wx/xrc/GBAROMInfo.xrc:11 ../src/wx/xrc/GBROMInfo.xrc:12
msgid "Game title:" msgid "Game title:"
msgstr "" msgstr ""
@ -1835,11 +1835,11 @@ msgstr ""
msgid "Game code:" msgid "Game code:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:83 ../src/wx/xrc/GBROMInfo.xrc:23 #: ../src/wx/xrc/GBAROMInfo.xrc:83 ../src/wx/xrc/GBROMInfo.xrc:24
msgid "Maker code:" msgid "Maker code:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:95 ../src/wx/xrc/GBROMInfo.xrc:35 #: ../src/wx/xrc/GBAROMInfo.xrc:95 ../src/wx/xrc/GBROMInfo.xrc:36
msgid "Maker name:" msgid "Maker name:"
msgstr "" msgstr ""
@ -1851,11 +1851,11 @@ msgstr ""
msgid "Device type:" msgid "Device type:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:131 ../src/wx/xrc/GBROMInfo.xrc:71 #: ../src/wx/xrc/GBAROMInfo.xrc:131 ../src/wx/xrc/GBROMInfo.xrc:72
msgid "ROM version:" msgid "ROM version:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBAROMInfo.xrc:143 ../src/wx/xrc/GBROMInfo.xrc:83 #: ../src/wx/xrc/GBAROMInfo.xrc:143 ../src/wx/xrc/GBROMInfo.xrc:84
msgid "CRC:" msgid "CRC:"
msgstr "" msgstr ""
@ -2107,35 +2107,35 @@ msgstr ""
msgid "C&ontinue" msgid "C&ontinue"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:47 #: ../src/wx/xrc/GBROMInfo.xrc:48
msgid "Unit code:" msgid "Unit code:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:59 #: ../src/wx/xrc/GBROMInfo.xrc:60
msgid "Cartridge type:" msgid "Cartridge type:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:95 #: ../src/wx/xrc/GBROMInfo.xrc:96
msgid "Color:" msgid "Color:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:107 #: ../src/wx/xrc/GBROMInfo.xrc:108
msgid "ROM size:" msgid "ROM size:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:119 #: ../src/wx/xrc/GBROMInfo.xrc:120
msgid "RAM size:" msgid "RAM size:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:131 #: ../src/wx/xrc/GBROMInfo.xrc:132
msgid "Dest. code:" msgid "Dest. code:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:143 #: ../src/wx/xrc/GBROMInfo.xrc:144
msgid "License code:" msgid "License code:"
msgstr "" msgstr ""
#: ../src/wx/xrc/GBROMInfo.xrc:155 #: ../src/wx/xrc/GBROMInfo.xrc:156
msgid "Checksum:" msgid "Checksum:"
msgstr "" msgstr ""

View File

@ -321,6 +321,12 @@ public:
int ncheats = isgb ? gbCheatNumber : cheatsNumber; int ncheats = isgb ? gbCheatNumber : cheatsNumber;
ce_codes = wxEmptyString; ce_codes = wxEmptyString;
wxDialog* subdlg = GetXRCDialog("CheatEdit"); wxDialog* subdlg = GetXRCDialog("CheatEdit");
if (gopts.keep_on_top)
subdlg->SetWindowStyle(subdlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
subdlg->SetWindowStyle(subdlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
subdlg->ShowModal(); subdlg->ShowModal();
AddCheat(); AddCheat();
Reload(ncheats); Reload(ncheats);
@ -581,6 +587,11 @@ public:
wxDialog* subdlg = GetXRCDialog("CheatEdit"); wxDialog* subdlg = GetXRCDialog("CheatEdit");
if (gopts.keep_on_top)
subdlg->SetWindowStyle(subdlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
subdlg->SetWindowStyle(subdlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
if (subdlg->ShowModal() != wxID_OK) if (subdlg->ShowModal() != wxID_OK)
return; return;
@ -1135,6 +1146,11 @@ public:
SetValVal(ca_val_tc); SetValVal(ca_val_tc);
wxDialog* subdlg = GetXRCDialog("CheatAdd"); wxDialog* subdlg = GetXRCDialog("CheatAdd");
if (gopts.keep_on_top)
subdlg->SetWindowStyle(subdlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
subdlg->SetWindowStyle(subdlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
if (subdlg->ShowModal() != wxID_OK) if (subdlg->ShowModal() != wxID_OK)
return; return;

View File

@ -747,7 +747,16 @@ class PrintDialog : public wxEvtHandler, public wxPrintout
public: public:
PrintDialog(const u16* data, int lines, bool cont); PrintDialog(const u16* data, int lines, bool cont);
~PrintDialog(); ~PrintDialog();
int ShowModal() {CheckPointer(wxGetApp().frame); return wxGetApp().frame->ShowModal(dlg); } int ShowModal()
{
if (gopts.keep_on_top)
dlg->SetWindowStyle(dlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
dlg->SetWindowStyle(dlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
CheckPointer(wxGetApp().frame);
return wxGetApp().frame->ShowModal(dlg);
}
private: private:
void DoSave(wxCommandEvent &); void DoSave(wxCommandEvent &);
void DoPrint(wxCommandEvent &); void DoPrint(wxCommandEvent &);

View File

@ -717,6 +717,11 @@ public:
s.Printf(addrlen == 4 ? wxT("%04X") : wxT("%08X"), len); s.Printf(addrlen == 4 ? wxT("%04X") : wxT("%08X"), len);
selreg_len->SetValue(s); selreg_len->SetValue(s);
if (gopts.keep_on_top)
selregion->SetWindowStyle(selregion->GetWindowStyle() | wxSTAY_ON_TOP);
else
selregion->SetWindowStyle(selregion->GetWindowStyle() & ~wxSTAY_ON_TOP);
if (selregion->ShowModal() != wxID_OK) if (selregion->ShowModal() != wxID_OK)
return; return;
@ -735,6 +740,11 @@ public:
selreg_lenlab->Enable(); selreg_lenlab->Enable();
selreg_len->SetValue(wxEmptyString); selreg_len->SetValue(wxEmptyString);
if (gopts.keep_on_top)
selregion->SetWindowStyle(selregion->GetWindowStyle() | wxSTAY_ON_TOP);
else
selregion->SetWindowStyle(selregion->GetWindowStyle() & ~wxSTAY_ON_TOP);
if (selregion->ShowModal() != wxID_OK) if (selregion->ShowModal() != wxID_OK)
return; return;

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0"> <resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
<object class="wxDialog" name="GBROMInfo"> <object class="wxDialog" name="GBROMInfo">
<title>Rom Information</title>
<object class="wxBoxSizer"> <object class="wxBoxSizer">
<orient>wxVERTICAL</orient> <orient>wxVERTICAL</orient>
<object class="sizeritem"> <object class="sizeritem">