Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv18973/include/gui
Modified Files:
wxMDialogs.h
Log Message:
preparations for ADB expansion enhancements: no real changes yet but the
code refactored to allow for them soon
Index: wxMDialogs.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMDialogs.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -b -u -2 -r1.97 -r1.98
--- wxMDialogs.h 17 Mar 2002 21:45:02 -0000 1.97
+++ wxMDialogs.h 16 Apr 2002 22:48:23 -0000 1.98
@@ -31,5 +31,4 @@
// fwd decl
class Profile;
-class ArrayAdbElements;
class MFolder;
class MPersMsgBox;
@@ -324,13 +323,4 @@
const wxPoint& pos = wxDefaultPosition);
-/**
- Let the user choose an element from aEntries. If there is exactly one element
- in the array (and we shouldn't be called with 0), 0 is always returned and
- user is not asked at all. If the dialog is shown, the user may cancel it and
- in this case -1 is returned. Otherwise, it's the index of selected item.
-*/
-int MDialog_AdbLookupList(ArrayAdbElements& aEntries,
- const wxWindow *parent = NULL);
-
/// simple AboutDialog to be displayed at startup
void
@@ -545,4 +535,11 @@
wxWindow *m_Parent;
};
+
+/// returns the argument if it's !NULL of the top-level application frame
+inline wxWindow *GetDialogParent(const wxWindow *parent)
+{
+ return parent == NULL ? mApplication->TopLevelFrame()
+ : GetFrame(parent);
+}
#endif //WXMDIALOGS_H
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates