Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5730/include

Modified Files:
        AttachDialog.h 
Log Message:
don't add the attachment if the user cancelled the dialog where its properties are 
edited immediately after selecting the file to be attached

Index: AttachDialog.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/AttachDialog.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- AttachDialog.h      18 Sep 2003 16:30:39 -0000      1.2
+++ AttachDialog.h      2 Jul 2004 21:37:09 -0000       1.3
@@ -66,19 +66,38 @@
 
 /**
-  Show the dialog allowing the user to edit the attachment properties. It can
-  be shown either automatically when the user attaches the file in which case
-  allowDisable should be pointing to a bool var with value == true which will
-  be set to false by this function if the user chose to disable showing this
-  dialog; or when the user clicks on the attachment in which case allowDisable
-  should be NULL.
+   Show the dialog allowing the user to edit the attachment properties.
+
+   This dialog is shown when the user chooses to edit the properties of an
+   already existing attachment.
+
+   @sa ShowAttachmentDialog()
 
   @param parent the parent for the dialog
   @param properties to edit, can't be NULL
-  @param allowDisable if true, the dialog will have "don't show again" checkbox
   @return true if the user has changed something, false otherwise
  */
-extern bool ShowAttachmentDialog(wxWindow *parent,
+extern bool
+EditAttachmentProperties(wxWindow *parent, AttachmentProperties *properties);
+
+/**
+   Show the dialog allowing the user to edit the attachment properties
+   immediately after attaching the file.
+
+   The difference between this function and EditAttachmentProperties() is the
+   allowDisable parameter and different return value interpretation: if the
+   user cancels the EditAttachmentProperties() dialog, nothing should be done
+   while if he cancels this one, the attachment shouldn't be inserted at all as
+   still inserting it after the user pressed cancel would be counterintuitive.
+
+   @param parent the parent for the dialog
+   @param properties to edit, can't be NULL
+   @param dontShowAgain if set to true on return, the dialog shouldn't be shown
+                        the next time any more (user chose to disable it)
+   @return true if the user chose ok, false if the dialog was cancelled
+ */
+extern bool
+ShowAttachmentDialog(wxWindow *parent,
                                  AttachmentProperties *properties,
-                                 bool *allowDisable = NULL);
+                     bool& dontShowAgain);
 
 #endif // _ATTACHDIALOG_H_



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to