]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/listbox.h
define wxHAS_CONFIG_TEMPLATE_RW if template wxConfig::Read/Write() are available...
[wxWidgets.git] / include / wx / gtk / listbox.h
index 1c959e0ba6378ed2cc322d0ad31e7dc6da8f01f2..92b6f1b8c63e3ba78c40306f396d18f15792f8fb 100644 (file)
@@ -73,6 +73,10 @@ public:
     virtual int GetSelection() const;
     virtual int GetSelections(wxArrayInt& aSelections) const;
 
+    virtual void EnsureVisible(int n);
+
+    virtual void Update();
+
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 
@@ -91,11 +95,10 @@ public:
     bool       m_hasCheckBoxes;
 #endif // wxUSE_CHECKLISTBOX
 
-    bool       m_blockEvent;
-
     struct _GtkTreeEntry* GtkGetEntry(unsigned pos) const;
-    void GtkDeselectAll();
-    void GtkSetSelection(int n, const bool select, const bool blockEvent);
+
+    void GtkDisableEvents();
+    void GtkEnableEvents();
 
 protected:
     virtual void DoClear();
@@ -124,6 +127,9 @@ protected:
     // set the specified item
     void GtkSetItem(_GtkTreeIter& iter, const _GtkTreeEntry *entry);
 
+    // common part of DoSetFirstItem() and EnsureVisible()
+    void DoScrollToCell(int n, float alignY, float alignX);
+
 private:
     void Init(); //common construction