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

Modified Files:
        LayoutEditor.cpp 
Log Message:
implemented collective reply/forward

Index: LayoutEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/LayoutEditor.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- LayoutEditor.cpp    15 Apr 2002 23:36:46 -0000      1.4
+++ LayoutEditor.cpp    13 May 2002 00:27:39 -0000      1.5
@@ -65,4 +65,5 @@
    virtual wxWindow *GetWindow() const;
    virtual bool IsModified() const;
+   virtual bool IsEmpty() const;
    virtual unsigned long ComputeHash() const;
 
@@ -84,4 +85,5 @@
 
    virtual void MoveCursorTo(unsigned long x, unsigned long y);
+   virtual void MoveCursorBy(long x, long y);
    virtual void SetFocus();
 
@@ -281,4 +283,12 @@
 }
 
+bool LayoutEditor::IsEmpty() const
+{
+   // see below: the hash is just the text length
+   //
+   // if our "hash" ever changes, we'd need to be less lazy here
+   return !ComputeHash();
+}
+
 unsigned long LayoutEditor::ComputeHash() const
 {
@@ -350,4 +360,11 @@
 {
    m_LayoutWindow->GetLayoutList()->MoveCursorTo(wxPoint(x, y));
+}
+
+void LayoutEditor::MoveCursorBy(long x, long y)
+{
+   wxLayoutList *llist = m_LayoutWindow->GetLayoutList();
+   llist->MoveCursorVertically(y);
+   llist->MoveCursorHorizontally(x);
 }
 


_______________________________________________________________

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

Reply via email to