From 48062cc0b5cc0d90b619bdfbc3875741126c2e8a Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 24 Jun 2008 11:56:06 +0000 Subject: [PATCH] MGR: Add contrasting background on alternate rows and progress bars to List Views svn path=/workspaces/wxListCtrl/; revision=15460 --- clientgui/BOINCListCtrl.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/clientgui/BOINCListCtrl.h b/clientgui/BOINCListCtrl.h index d87f6a9008..a9cc60a22f 100644 --- a/clientgui/BOINCListCtrl.h +++ b/clientgui/BOINCListCtrl.h @@ -55,7 +55,6 @@ public: long GetFocusedItem() { return GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED); } long GetFirstSelected() { return GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); } - private: virtual void OnClick(wxCommandEvent& event); @@ -69,19 +68,19 @@ private: #if USE_NATIVE_LISTCONTROL public: - void PostDrawBarGraphEvent(); + void PostDrawBarGraphEvent(); private: - void OnDrawBarGraph(CDrawBarGraphEvent& event); - void DrawBarGraphs(void); + void OnDrawBarGraph(CDrawBarGraphEvent& event); + void DrawBarGraphs(void); - bool m_bBarGraphEventPending; + bool m_bBarGraphEventPending; DECLARE_EVENT_TABLE() #else public: - void DrawBarGraphs(void); - wxScrolledWindow* GetMainWin(void) { return (wxScrolledWindow*) m_mainWin; } - wxCoord GetHeaderHeight(void) { return m_headerHeight; } + void DrawBarGraphs(void); + wxScrolledWindow* GetMainWin(void) { return (wxScrolledWindow*) m_mainWin; } + wxCoord GetHeaderHeight(void) { return m_headerHeight; } #endif }; @@ -94,7 +93,7 @@ public: SetEventObject(myCtrl); } - virtual wxEvent *Clone() const { return new CDrawBarGraphEvent(*this); } + virtual wxEvent * Clone() const { return new CDrawBarGraphEvent(*this); } }; BEGIN_DECLARE_EVENT_TYPES() @@ -109,10 +108,10 @@ class MyEvtHandler : public wxEvtHandler { public: MyEvtHandler(CBOINCListCtrl *theListControl) { m_listCtrl = theListControl; } - void OnPaint(wxPaintEvent & event); + void OnPaint(wxPaintEvent & event); private: - CBOINCListCtrl *m_listCtrl; + CBOINCListCtrl * m_listCtrl; DECLARE_EVENT_TABLE() };