Update of /cvsroot/mahogany/M/include
In directory usw-pr-cvs1:/tmp/cvs-serv1332/include
Modified Files:
Composer.h MailFolder.h MessageEditor.h
Log Message:
implemented collective reply/forward
Index: Composer.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/Composer.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- Composer.h 11 Apr 2002 23:15:48 -0000 1.10
+++ Composer.h 13 May 2002 00:27:39 -0000 1.11
@@ -45,29 +45,23 @@
/** Constructor for posting news.
@param profile parent profile
- @param hide if true, do not show frame
@return pointer to the new compose view
*/
static Composer *CreateNewArticle(const MailFolder::Params& params,
- Profile *profile = NULL,
- bool hide = false);
+ Profile *profile = NULL);
/// short cut
- static Composer *CreateNewArticle(Profile *profile = NULL,
- bool hide = false)
- { return CreateNewArticle(MailFolder::Params(), profile, hide); }
+ static Composer *CreateNewArticle(Profile *profile = NULL)
+ { return CreateNewArticle(MailFolder::Params(), profile); }
/** Constructor for sending mail.
@param profile parent profile
- @param hide if true, do not show frame
@return pointer to the new compose view
*/
static Composer *CreateNewMessage(const MailFolder::Params& params,
- Profile *profile = NULL,
- bool hide = false);
+ Profile *profile = NULL);
/// short cut
- static Composer *CreateNewMessage(Profile *profile = NULL,
- bool hide = false)
- { return CreateNewMessage(MailFolder::Params(), profile, hide); }
+ static Composer *CreateNewMessage(Profile *profile = NULL)
+ { return CreateNewMessage(MailFolder::Params(), profile); }
/** Constructor for sending a reply to a message.
@@ -75,11 +69,9 @@
@param profile parent profile
@param original message that we replied to
- @param hide if true, do not show frame
@return pointer to the new compose view
*/
static Composer *CreateReplyMessage(const MailFolder::Params& params,
Profile *profile,
- Message * original = NULL,
- bool hide = false);
+ Message * original = NULL);
/** Constructor for forwarding a message.
@@ -87,11 +79,9 @@
@param templ is the template to use
@param profile parent profile
- @param hide if true, do not show frame
@return pointer to the new compose view
*/
static Composer *CreateFwdMessage(const MailFolder::Params& params,
Profile *profile,
- Message *original = NULL,
- bool hide = false);
+ Message *original = NULL);
/**
@@ -207,4 +197,9 @@
virtual void InitText(Message *msg = NULL, MessageView *msgview = NULL) = 0;
+ /** Finishes the composer initialization and shows the composer frame,
+ should be called after all calls to InitText()
+ */
+ virtual void Launch() = 0;
+
/** insert a file into buffer
@param filename file to insert (ask the user if NULL)
@@ -234,4 +229,7 @@
/// move the cursor to the given position
virtual void MoveCursorTo(int x, int y) = 0;
+
+ /// move the cursor to the right and downwards by given number of characters
+ virtual void MoveCursorBy(int x, int y) = 0;
/// reset the "dirty" flag
Index: MailFolder.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MailFolder.h,v
retrieving revision 1.173
retrieving revision 1.174
diff -b -u -2 -r1.173 -r1.174
--- MailFolder.h 19 Mar 2002 01:43:44 -0000 1.173
+++ MailFolder.h 13 May 2002 00:27:39 -0000 1.174
@@ -22,4 +22,6 @@
#include "kbList.h"
+class Composer;
+
// ----------------------------------------------------------------------------
// constants
@@ -486,9 +488,12 @@
@param profile environment
@param parent window for dialog
+ @param composer the composer to use, will create if NULL
+ @return the composer
*/
- static void ForwardMessage(Message *msg,
+ static Composer *ForwardMessage(Message *msg,
const Params& params,
Profile *profile = NULL,
- wxWindow *parent = NULL);
+ wxWindow *parent = NULL,
+ Composer *composer = NULL);
/** Reply to one message.
@@ -497,9 +502,12 @@
@param profile environment
@param parent window for dialog
+ @param composer the composer to use, will create if NULL
+ @return the composer
*/
- static void ReplyMessage(Message *msg,
+ static Composer *ReplyMessage(Message *msg,
const Params& params,
Profile *profile = NULL,
- wxWindow *parent = NULL);
+ wxWindow *parent = NULL,
+ Composer *composer = NULL);
//@}
Index: MessageEditor.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageEditor.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -u -2 -r1.3 -r1.4
--- MessageEditor.h 5 Apr 2002 15:12:45 -0000 1.3
+++ MessageEditor.h 13 May 2002 00:27:39 -0000 1.4
@@ -85,4 +85,7 @@
virtual bool IsModified() const = 0;
+ /// do we contain anything at all?
+ virtual bool IsEmpty() const = 0;
+
/// compute the text hash
virtual unsigned long ComputeHash() const = 0;
@@ -125,4 +128,7 @@
/// move the cursor to the initial position
virtual void MoveCursorTo(unsigned long x, unsigned long y) = 0;
+
+ /// move the cursor by the given displacement
+ virtual void MoveCursorBy(long x, long y) = 0;
/// set focus to the window where the user may type the text
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates