updated richedit and nettest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*-*- c++ -*-********************************************************
|
||||
* wxLwindow.h : a scrolled Window for displaying/entering rich text*
|
||||
* *
|
||||
* (C) 1998,1999 by Karsten Ball<6C>der (Ballueder@usa.net) *
|
||||
* (C) 1998-1999 by Karsten Ball<6C>der (karsten@phy.hw.ac.uk) *
|
||||
* *
|
||||
* $Id$
|
||||
*******************************************************************/
|
||||
@@ -106,8 +106,15 @@ public:
|
||||
bool Cut(void);
|
||||
//@}
|
||||
|
||||
#ifdef M_BASEDIR
|
||||
/// find string in buffer
|
||||
bool Find(const wxString &needle,
|
||||
wxPoint * fromWhere = NULL);
|
||||
wxPoint * fromWhere = NULL,
|
||||
const wxString &configPath = "MsgViewFindString");
|
||||
/// find the same string again
|
||||
bool FindAgain(void);
|
||||
#endif
|
||||
|
||||
|
||||
void EnablePopup(bool enable = true) { m_DoPopupMenu = enable; }
|
||||
|
||||
@@ -120,7 +127,7 @@ public:
|
||||
Internally, this stores the parameter and calls a refresh on
|
||||
wxMSW, draws directly on wxGTK.
|
||||
*/
|
||||
void DoPaint(const wxRect *updateRect = NULL);
|
||||
void RequestUpdate(const wxRect *updateRect = NULL);
|
||||
|
||||
/// if exact == false, assume 50% extra size for the future
|
||||
void ResizeScrollbars(bool exact = false); // don't change this to true!
|
||||
@@ -155,22 +162,9 @@ public:
|
||||
|
||||
/// 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().
|
||||
/// Redraws the window, used by RequestUpdate() 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; }
|
||||
/** Tell window to update a wxStatusBar with UserData labels and
|
||||
cursor positions.
|
||||
@param bar wxStatusBar pointer
|
||||
@@ -184,7 +178,36 @@ public:
|
||||
m_StatusBar = bar; m_StatusFieldLabel = labelfield;
|
||||
m_StatusFieldCursor = cursorfield;
|
||||
}
|
||||
#ifndef __WXMSW__
|
||||
/// Enable or disable focus follow mode under non-MSW
|
||||
void SetFocusFollowMode(bool enable = TRUE)
|
||||
{ m_FocusFollowMode = enable; }
|
||||
#endif
|
||||
|
||||
/**@name Modified flag handling, will not get reset by list unless
|
||||
in Clear() */
|
||||
//@{
|
||||
/// Set dirty flag.
|
||||
void SetModified(bool modified = TRUE) { m_Modified = modified; }
|
||||
/// Query whether window needs redrawing.
|
||||
bool IsModified(void) const { return m_Modified; }
|
||||
//@}
|
||||
|
||||
/**@name Dirty flag handling for optimisations.
|
||||
Normally one should only need to call SetDirty(), e.g. when
|
||||
manipulating the wxLayoutList directly, so the window will update
|
||||
itself. ResetDirty() and IsDirty() should only be used
|
||||
internally. */
|
||||
//@{
|
||||
/// Set dirty flag.
|
||||
void SetDirty(void) { m_Dirty = true; m_Modified = true; }
|
||||
/// Query whether window needs redrawing.
|
||||
bool IsDirty(void) const { return m_Dirty; }
|
||||
/// Reset dirty flag.
|
||||
void ResetDirty(void) { m_Dirty = false; }
|
||||
//@}
|
||||
|
||||
|
||||
protected:
|
||||
/// generic function for mouse events processing
|
||||
void OnMouse(int eventId, wxMouseEvent& event);
|
||||
@@ -237,10 +260,10 @@ private:
|
||||
bool m_Selecting;
|
||||
/// wrap margin
|
||||
CoordType m_WrapMargin;
|
||||
/// Is list dirty (for redraws, internal use)?
|
||||
bool m_Dirty;
|
||||
/// Has list been edited?
|
||||
bool m_Modified;
|
||||
/// Has list changed since last redraw, e.g. in size?
|
||||
bool m_Dirty;
|
||||
/// Has the list ever been modified?
|
||||
bool m_Modified;
|
||||
wxMemoryDC *m_memDC;
|
||||
wxBitmap *m_bitmap;
|
||||
wxPoint m_bitmapSize;
|
||||
@@ -256,7 +279,13 @@ private:
|
||||
//@{
|
||||
/// Do we want to auto-replace the selection with new text?
|
||||
bool m_AutoDeleteSelection;
|
||||
//@}
|
||||
#ifndef __WXMSW__
|
||||
/// Do we want the focus to follow the mouse?
|
||||
bool m_FocusFollowMode;
|
||||
#endif
|
||||
/// For finding text and finding it again:
|
||||
wxString m_FindString;
|
||||
//@}
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user