Update of /cvsroot/mahogany/M/include
In directory usw-pr-cvs1:/tmp/cvs-serv21789/include
Modified Files:
MessageView.h
Log Message:
added popup menu for mail addresses in the message view
Index: MessageView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageView.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -b -u -2 -r1.30 -r1.31
--- MessageView.h 16 Apr 2002 19:15:32 -0000 1.30
+++ MessageView.h 26 Apr 2002 23:28:09 -0000 1.31
@@ -50,4 +50,22 @@
// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+/// the kind of the URL for PopupURLMenu()
+enum URLKind
+{
+ URL_Mailto,
+ URL_Other
+};
+
+/// options for OpenURL() (these are bit masks)
+enum
+{
+ URLOpen_Default = 0,
+ URLOpen_New_Window = 1
+};
+
+// ----------------------------------------------------------------------------
// MessageView: this class does MIME handling and uses MessageViewer to really
// show things on screen
@@ -93,4 +111,7 @@
UIdType GetUId() const { return m_uid; }
+ /// return the name of the folder which messages we're viewing
+ String GetFolderName() const;
+
//@}
@@ -114,6 +135,12 @@
void SetLanguage(int cmdLang);
- /// open the URL (in a new browser window if inNewWindow)
- void OpenURL(const String& url, bool inNewWindow);
+ /// open the URL (in a new browser window if options has NewWindow flag)
+ void OpenURL(const String& url, int options = URLOpen_Default);
+
+ /// open an address, i.e. start writing message to it normally
+ void OpenAddress(const String& address);
+
+ /// add an address to the address book
+ void AddToAddressBook(const String& address);
//@}
@@ -287,5 +314,6 @@
virtual void PopupURLMenu(wxWindow *window,
const String& url,
- const wxPoint& pt) = 0;
+ const wxPoint& pt,
+ URLKind urlkind) = 0;
/// show the MIME popup menu for this message part
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates