-protected:
- /// Deletes from cursor to end of line.
- void DeleteToEndOfLine(void);
- /// Deletes everything left of cursor.
- void DeleteToBeginOfLine(void);
- /// Goto end of line.
- void GotoEndOfLine(void);
- /// Goto begin of line.
- void GotoBeginOfLine(void);
- /// Delete Line
- void DeleteLine(void);
+ //@}
+
+ /// Creates a wxMenu for use as a format popup.
+ static wxMenu * MakeFormatMenu(void);
+ /**@name Dirty flag handling for optimisations. */
+ //@{
+ /// Set dirty flag.
+ void SetDirty(void) { m_Dirty = true; }
+ /// Query whether window needs redrawing.
+ bool IsDirty(void) const { return m_Dirty; }
+ /// Reset dirty flag.
+ void ResetDirty(void) { m_Dirty = false; }
+ //@}
+ /// Redraws the window, used by DoPaint() or OnPaint().
+ void InternalPaint(const wxRect *updateRect);
+
+ /// Has list been modified/edited?
+ bool IsModified(void) const { return m_Modified; }
+ /// Mark list as modified or unchanged.
+ void SetModified(bool modified = true) { m_Modified = modified; }
+
+protected: