Changeset 375
- Timestamp:
- 09/11/11 18:31:44 (8 months ago)
- Location:
- cafu/trunk/CaWE
- Files:
-
- 3 modified
-
ChildFrame.cpp (modified) (2 diffs)
-
GuiEditor/ChildFrame.cpp (modified) (2 diffs)
-
ModelEditor/ChildFrame.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/CaWE/ChildFrame.cpp
r321 r375 748 748 } 749 749 750 const int Answer=wxMessageBox("The map has been modified since it was last saved.\n" 751 "Do you want to save it before closing?\n" 752 "Note that when you select 'No', all changes since the last save will be LOST.", 753 "Save map before closing?", wxYES_NO | wxCANCEL | wxICON_EXCLAMATION); 754 755 switch (Answer) 756 { 757 case wxYES: 750 // This "Save Confirmation Alert" essentially follows the GNOME Human Interface Guidelines, 751 // see http://developer.gnome.org/hig-book/ for details. 752 wxMessageDialog Msg(NULL, "Save changes to map \"" + m_Doc->GetFileName() + "\" before closing?", "CaWE Map Editor", wxYES_NO | wxCANCEL); 753 754 Msg.SetExtendedMessage("If you close without saving, your changes will be discarded."); 755 Msg.SetYesNoLabels("Save", "Close without Saving"); 756 757 switch (Msg.ShowModal()) 758 { 759 case wxID_YES: 758 760 if (!m_Doc->Save()) 759 761 { … … 776 778 return; 777 779 778 case wx NO:780 case wxID_NO: 779 781 Destroy(); 780 782 return; 781 783 782 default: // Answer==wxCANCEL784 default: // wxID_CANCEL 783 785 CE.Veto(); 784 786 return; -
cafu/trunk/CaWE/GuiEditor/ChildFrame.cpp
r368 r375 624 624 } 625 625 626 const int Answer=wxMessageBox("The GUI has been modified since it was last saved.\n" 627 "Do you want to save it before closing?\n" 628 "Note that when you select 'No', all changes since the last save will be LOST.", 629 "Save GUI before closing?", wxYES_NO | wxCANCEL | wxICON_EXCLAMATION); 630 631 switch (Answer) 632 { 633 case wxYES: 626 // This "Save Confirmation Alert" essentially follows the GNOME Human Interface Guidelines, 627 // see http://developer.gnome.org/hig-book/ for details. 628 wxMessageDialog Msg(NULL, "Save changes to GUI \"" + m_FileName + "\" before closing?", "CaWE GUI Editor", wxYES_NO | wxCANCEL); 629 630 Msg.SetExtendedMessage("If you close without saving, your changes will be discarded."); 631 Msg.SetYesNoLabels("Save", "Close without Saving"); 632 633 switch (Msg.ShowModal()) 634 { 635 case wxID_YES: 634 636 if (!Save()) 635 637 { … … 643 645 return; 644 646 645 case wx NO:647 case wxID_NO: 646 648 Destroy(); 647 649 return; 648 650 649 default: // Answer==wxCANCEL651 default: // wxID_CANCEL 650 652 CE.Veto(); 651 653 return; -
cafu/trunk/CaWE/ModelEditor/ChildFrame.cpp
r354 r375 865 865 } 866 866 867 const int Answer=wxMessageBox("The model has been modified since it was last saved.\n" 868 "Do you want to save it before closing?\n" 869 "Note that when you select 'No', all changes since the last save will be LOST.", 870 "Save model before closing?", wxYES_NO | wxCANCEL | wxICON_EXCLAMATION); 871 872 switch (Answer) 873 { 874 case wxYES: 867 // This "Save Confirmation Alert" essentially follows the GNOME Human Interface Guidelines, 868 // see http://developer.gnome.org/hig-book/ for details. 869 wxMessageDialog Msg(NULL, "Save changes to model \"" + m_FileName + "\" before closing?", "CaWE Model Editor", wxYES_NO | wxCANCEL); 870 871 Msg.SetExtendedMessage("If you close without saving, your changes will be discarded."); 872 Msg.SetYesNoLabels("Save", "Close without Saving"); 873 874 switch (Msg.ShowModal()) 875 { 876 case wxID_YES: 875 877 if (!Save()) 876 878 { … … 884 886 return; 885 887 886 case wx NO:888 case wxID_NO: 887 889 Destroy(); 888 890 return; 889 891 890 default: // Answer==wxCANCEL892 default: // wxID_CANCEL 891 893 CE.Veto(); 892 894 return;
