Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv4916/src/gui

Modified Files:
        wxMDialogs.cpp 
Log Message:
added support for persistent Yes/No/Cancel msg boxes

Index: wxMDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMDialogs.cpp,v
retrieving revision 1.371
retrieving revision 1.372
diff -b -u -2 -r1.371 -r1.372
--- wxMDialogs.cpp      6 May 2002 11:29:38 -0000       1.371
+++ wxMDialogs.cpp      18 May 2002 17:11:17 -0000      1.372
@@ -776,13 +776,21 @@
                                const wxWindow *parent,
                                char const *title,
-                               int flags)
+                               int flags,
+                               const MPersMsgBox *persMsg)
 {
    CloseSplash();
    NoBusyCursor noBC;
 
-   switch ( wxMessageBox
+   String configPath;
+   if ( persMsg )
+   {
+      configPath = GetPersMsgBoxName(persMsg);
+   }
+
+   switch ( wxPMessageBox
             (
+               configPath,
                message,
-               String("Mahogany: ") + title,
+               String(M_TITLE_PREFIX) + title,
                GetYesNoMsgBoxStyle(flags) | wxCANCEL,
                GetDialogParent(parent)


_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to