X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a6cb56fb5d06e98fd3fae24cefbe7b244a20820..5e6e6e73d2321c791fa6b9a014400f84a56743e5:/include/wx/generic/listctrl.h diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index 2b633a5a0e..5b3ab33687 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -158,20 +158,24 @@ public: // We have to hand down a few functions - bool SetBackgroundColour( const wxColour &colour ); - bool SetForegroundColour( const wxColour &colour ); - bool SetFont( const wxFont &font ); + virtual void Freeze(); + virtual void Thaw(); + + virtual bool SetBackgroundColour( const wxColour &colour ); + virtual bool SetForegroundColour( const wxColour &colour ); + virtual wxColour GetBackgroundColour() const; + virtual wxColour GetForegroundColour() const; + virtual bool SetFont( const wxFont &font ); + virtual bool SetCursor( const wxCursor &cursor ); #if wxUSE_DRAG_AND_DROP - void SetDropTarget( wxDropTarget *dropTarget ); - wxDropTarget *GetDropTarget() const; + virtual void SetDropTarget( wxDropTarget *dropTarget ); + virtual wxDropTarget *GetDropTarget() const; #endif - bool SetCursor( const wxCursor &cursor ); - wxColour GetBackgroundColour() const; - wxColour GetForegroundColour() const; - bool DoPopupMenu( wxMenu *menu, int x, int y ); - void SetFocus(); + virtual bool DoPopupMenu( wxMenu *menu, int x, int y ); + + virtual void SetFocus(); // implementation // -------------- @@ -196,7 +200,6 @@ protected: virtual wxListItemAttr *OnGetItemAttr(long item) const; // it calls our OnGetXXX() functions - friend class WXDLLEXPORT wxListMainWindow; private: @@ -206,6 +209,10 @@ private: // create the header window void CreateHeaderWindow(); + // reposition the header and the main window in the report view depending + // on whether it should be shown or not + void ResizeReportView(bool showHeader); + DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxListCtrl); };