wxToolTip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,9 +94,6 @@ public:
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
void SetDropTarget( wxDropTarget *dropTarget );
|
||||
#endif
|
||||
void SetToolTip( wxToolTip *tip );
|
||||
void SetToolTip( const wxString &tip );
|
||||
|
||||
|
||||
// implementation
|
||||
|
||||
@@ -105,6 +102,7 @@ public:
|
||||
GtkWidget *GetConnectWidget();
|
||||
bool IsOwnGtkWindow( GdkWindow *window );
|
||||
void ApplyWidgetStyle();
|
||||
void ApplyToolTip( GtkTooltips *tips, const char *tip );
|
||||
|
||||
GtkList *m_list;
|
||||
wxList m_clientDataList;
|
||||
|
@@ -33,23 +33,21 @@ class wxToolTip: public wxObject
|
||||
public:
|
||||
|
||||
wxToolTip( const wxString &tip );
|
||||
~wxToolTip();
|
||||
|
||||
wxString GetTip();
|
||||
void SetTip( const wxString &tip );
|
||||
wxString GetTip() const;
|
||||
wxWindow *GetWindow() const;
|
||||
bool Ok() const;
|
||||
|
||||
void Enable( bool flag );
|
||||
void SetDelay( long msecs );
|
||||
bool Ok();
|
||||
static void Enable( bool flag );
|
||||
static void SetDelay( long msecs );
|
||||
|
||||
// implementation
|
||||
|
||||
wxString m_text;
|
||||
wxWindow *m_window;
|
||||
|
||||
GtkTooltips *m_tooltips;
|
||||
GdkColor *m_bg;
|
||||
GdkColor *m_fg;
|
||||
|
||||
void Create( GtkWidget *tool );
|
||||
void Apply( wxWindow *win );
|
||||
};
|
||||
|
||||
#endif // __GTKTOOLTIPH__
|
||||
|
@@ -231,16 +231,16 @@ public:
|
||||
|
||||
virtual void SetToolTip( const wxString &tip );
|
||||
virtual void SetToolTip( wxToolTip *tip );
|
||||
virtual wxToolTip& GetToolTip();
|
||||
virtual wxToolTip* GetToolTip();
|
||||
|
||||
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
||||
virtual void Clear();
|
||||
|
||||
virtual wxRegion GetUpdateRegion() const;
|
||||
virtual bool IsExposed(int x, int y) const;
|
||||
virtual bool IsExposed(int x, int y, int w, int h) const;
|
||||
virtual bool IsExposed(const wxPoint& pt) const;
|
||||
virtual bool IsExposed(const wxRect& rect) const;
|
||||
virtual bool IsExposed( int x, int y ) const;
|
||||
virtual bool IsExposed( int x, int y, int w, int h ) const;
|
||||
virtual bool IsExposed( const wxPoint& pt ) const;
|
||||
virtual bool IsExposed( const wxRect& rect ) const;
|
||||
|
||||
virtual wxColour GetBackgroundColour() const;
|
||||
virtual void SetBackgroundColour( const wxColour &colour );
|
||||
@@ -320,24 +320,37 @@ public:
|
||||
|
||||
// implementation
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
|
||||
|
||||
bool HasVMT();
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
|
||||
/* used by all classes in the widget creation process */
|
||||
|
||||
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
||||
const wxSize &size, long style, const wxString &name );
|
||||
void PostCreation();
|
||||
|
||||
/* the methods below are required because many native widgets
|
||||
are composed of several subwidgets and setting a style for
|
||||
the widget means setting it for all subwidgets as well.
|
||||
also, it is nor clear, which native widget is the top
|
||||
widget where (most of) the input goes. even tooltips have
|
||||
to be applied to all subwidgets. */
|
||||
|
||||
virtual GtkWidget* GetConnectWidget();
|
||||
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
||||
void ConnectWidget( GtkWidget *widget );
|
||||
|
||||
bool HasVMT();
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
|
||||
|
||||
GtkStyle *GetWidgetStyle();
|
||||
void SetWidgetStyle();
|
||||
virtual void ApplyWidgetStyle();
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
virtual void ApplyToolTip( GtkTooltips *tips, const char *tip );
|
||||
|
||||
/* private member variables */
|
||||
|
||||
wxWindow *m_parent;
|
||||
wxList m_children;
|
||||
|
@@ -94,9 +94,6 @@ public:
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
void SetDropTarget( wxDropTarget *dropTarget );
|
||||
#endif
|
||||
void SetToolTip( wxToolTip *tip );
|
||||
void SetToolTip( const wxString &tip );
|
||||
|
||||
|
||||
// implementation
|
||||
|
||||
@@ -105,6 +102,7 @@ public:
|
||||
GtkWidget *GetConnectWidget();
|
||||
bool IsOwnGtkWindow( GdkWindow *window );
|
||||
void ApplyWidgetStyle();
|
||||
void ApplyToolTip( GtkTooltips *tips, const char *tip );
|
||||
|
||||
GtkList *m_list;
|
||||
wxList m_clientDataList;
|
||||
|
@@ -33,23 +33,21 @@ class wxToolTip: public wxObject
|
||||
public:
|
||||
|
||||
wxToolTip( const wxString &tip );
|
||||
~wxToolTip();
|
||||
|
||||
wxString GetTip();
|
||||
void SetTip( const wxString &tip );
|
||||
wxString GetTip() const;
|
||||
wxWindow *GetWindow() const;
|
||||
bool Ok() const;
|
||||
|
||||
void Enable( bool flag );
|
||||
void SetDelay( long msecs );
|
||||
bool Ok();
|
||||
static void Enable( bool flag );
|
||||
static void SetDelay( long msecs );
|
||||
|
||||
// implementation
|
||||
|
||||
wxString m_text;
|
||||
wxWindow *m_window;
|
||||
|
||||
GtkTooltips *m_tooltips;
|
||||
GdkColor *m_bg;
|
||||
GdkColor *m_fg;
|
||||
|
||||
void Create( GtkWidget *tool );
|
||||
void Apply( wxWindow *win );
|
||||
};
|
||||
|
||||
#endif // __GTKTOOLTIPH__
|
||||
|
@@ -231,16 +231,16 @@ public:
|
||||
|
||||
virtual void SetToolTip( const wxString &tip );
|
||||
virtual void SetToolTip( wxToolTip *tip );
|
||||
virtual wxToolTip& GetToolTip();
|
||||
virtual wxToolTip* GetToolTip();
|
||||
|
||||
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
||||
virtual void Clear();
|
||||
|
||||
virtual wxRegion GetUpdateRegion() const;
|
||||
virtual bool IsExposed(int x, int y) const;
|
||||
virtual bool IsExposed(int x, int y, int w, int h) const;
|
||||
virtual bool IsExposed(const wxPoint& pt) const;
|
||||
virtual bool IsExposed(const wxRect& rect) const;
|
||||
virtual bool IsExposed( int x, int y ) const;
|
||||
virtual bool IsExposed( int x, int y, int w, int h ) const;
|
||||
virtual bool IsExposed( const wxPoint& pt ) const;
|
||||
virtual bool IsExposed( const wxRect& rect ) const;
|
||||
|
||||
virtual wxColour GetBackgroundColour() const;
|
||||
virtual void SetBackgroundColour( const wxColour &colour );
|
||||
@@ -320,24 +320,37 @@ public:
|
||||
|
||||
// implementation
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
|
||||
|
||||
bool HasVMT();
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
|
||||
/* used by all classes in the widget creation process */
|
||||
|
||||
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
||||
const wxSize &size, long style, const wxString &name );
|
||||
void PostCreation();
|
||||
|
||||
/* the methods below are required because many native widgets
|
||||
are composed of several subwidgets and setting a style for
|
||||
the widget means setting it for all subwidgets as well.
|
||||
also, it is nor clear, which native widget is the top
|
||||
widget where (most of) the input goes. even tooltips have
|
||||
to be applied to all subwidgets. */
|
||||
|
||||
virtual GtkWidget* GetConnectWidget();
|
||||
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
||||
void ConnectWidget( GtkWidget *widget );
|
||||
|
||||
bool HasVMT();
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
|
||||
|
||||
GtkStyle *GetWidgetStyle();
|
||||
void SetWidgetStyle();
|
||||
virtual void ApplyWidgetStyle();
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
virtual void ApplyToolTip( GtkTooltips *tips, const char *tip );
|
||||
|
||||
/* private member variables */
|
||||
|
||||
wxWindow *m_parent;
|
||||
wxList m_children;
|
||||
|
Reference in New Issue
Block a user