projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change wxDataViewModel::Compare() to including column and sortorder
[wxWidgets.git]
/
include
/
wx
/
vlbox.h
diff --git
a/include/wx/vlbox.h
b/include/wx/vlbox.h
index bc61c0d542268cc19f90aeda857ba4947323222d..2301f7c651b020ac61de115336a980f598409c2d 100644
(file)
--- a/
include/wx/vlbox.h
+++ b/
include/wx/vlbox.h
@@
-15,7
+15,7
@@
#include "wx/vscroll.h" // base class
#include "wx/bitmap.h"
#include "wx/vscroll.h" // base class
#include "wx/bitmap.h"
-class WXDLL
EXPORT
wxSelectionStore;
+class WXDLL
IMPEXP_FWD_CORE
wxSelectionStore;
#define wxVListBoxNameStr _T("wxVListBox")
#define wxVListBoxNameStr _T("wxVListBox")
@@
-75,7
+75,7
@@
public:
// ---------
// get the number of items in the control
// ---------
// get the number of items in the control
- size_t GetItemCount() const { return Get
Line
Count(); }
+ size_t GetItemCount() const { return Get
Row
Count(); }
// does this control use multiple selection?
bool HasMultipleSelection() const { return m_selStore != NULL; }
// does this control use multiple selection?
bool HasMultipleSelection() const { return m_selStore != NULL; }
@@
-133,7
+133,7
@@
public:
// set the number of items to be shown in the control
//
// set the number of items to be shown in the control
//
- // this is just a synonym for wxVScrolledWindow::Set
Line
Count()
+ // this is just a synonym for wxVScrolledWindow::Set
Row
Count()
virtual void SetItemCount(size_t count);
// delete all items from the control
virtual void SetItemCount(size_t count);
// delete all items from the control
@@
-189,6
+189,9
@@
public:
// change the background colour of the selected cells
void SetSelectionBackground(const wxColour& col);
// change the background colour of the selected cells
void SetSelectionBackground(const wxColour& col);
+ // refreshes only the selected items
+ void RefreshSelected();
+
virtual wxVisualAttributes GetDefaultAttributes() const
{
virtual wxVisualAttributes GetDefaultAttributes() const
{
@@
-198,6
+201,8
@@
public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+ virtual wxBorder GetDefaultBorder() const { return GetDefaultBorderForControl(); }
+
protected:
// the derived class must implement this function to actually draw the item
// with the given index on the provided DC
protected:
// the derived class must implement this function to actually draw the item
// with the given index on the provided DC
@@
-223,11
+228,11
@@
protected:
// current
virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const;
// current
virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const;
- // we implement OnGet
Line
Height() in terms of OnMeasureItem() because this
+ // we implement OnGet
Row
Height() in terms of OnMeasureItem() because this
// allows us to add borders to the items easily
//
// this function is not supposed to be overridden by the derived classes
// allows us to add borders to the items easily
//
// this function is not supposed to be overridden by the derived classes
- virtual wxCoord OnGet
Line
Height(size_t line) const;
+ virtual wxCoord OnGet
Row
Height(size_t line) const;
// event handlers
// event handlers
@@
-235,7
+240,7
@@
protected:
void OnKeyDown(wxKeyEvent& event);
void OnLeftDown(wxMouseEvent& event);
void OnLeftDClick(wxMouseEvent& event);
void OnKeyDown(wxKeyEvent& event);
void OnLeftDown(wxMouseEvent& event);
void OnLeftDClick(wxMouseEvent& event);
-
+ void OnSetOrKillFocus(wxFocusEvent& event);
// common part of all ctors
void Init();
// common part of all ctors
void Init();
@@
-287,9
+292,6
@@
private:
// the selection bg colour
wxColour m_colBgSel;
// the selection bg colour
wxColour m_colBgSel;
- // double buffer
- wxBitmap* m_doubleBuffer;
-
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxVListBox)
DECLARE_ABSTRACT_CLASS(wxVListBox)
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxVListBox)
DECLARE_ABSTRACT_CLASS(wxVListBox)