#endif
#include <wx/listctrl.h>
#include <wx/treectrl.h>
+#include <wx/imaglist.h>
%}
//----------------------------------------------------------------------
wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK,
};
+enum {
+ /* Style flags */
+ wxLC_ICON,
+ wxLC_SMALL_ICON,
+ wxLC_LIST,
+ wxLC_REPORT,
+ wxLC_ALIGN_TOP,
+ wxLC_ALIGN_LEFT,
+ wxLC_AUTOARRANGE,
+ wxLC_USER_TEXT,
+ wxLC_EDIT_LABELS,
+ wxLC_NO_HEADER,
+ wxLC_NO_SORT_HEADER,
+ wxLC_SINGLE_SEL,
+ wxLC_SORT_ASCENDING,
+ wxLC_SORT_DESCENDING,
+ wxLC_MASK_TYPE,
+ wxLC_MASK_ALIGN,
+ wxLC_MASK_SORT,
+ wxLC_HRULES,
+ wxLC_VRULES,
+ wxLC_VIRTUAL,
+};
+
class wxListItemAttr
};
-class wxListItem {
+class wxListItem : public wxObject {
public:
wxListItem();
~wxListItem();
bool Arrange(int flag = wxLIST_ALIGN_DEFAULT);
void AssignImageList(wxImageList* imageList, int which);
+ %pragma(python) addtomethod = "AssignImageList:_args[0].thisown = 0"
bool DeleteItem(long item);
bool DeleteAllItems();
bool DeleteColumn(int col);
wxEVT_COMMAND_TREE_ITEM_ACTIVATED,
wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK,
+ wxEVT_COMMAND_TREE_END_DRAG,
};
-%name(wxTreeItemData) class wxPyTreeItemData {
+%name(wxTreeItemData) class wxPyTreeItemData : public wxObject {
public:
wxPyTreeItemData(PyObject* obj = NULL);
%{
class wxPyTreeCtrl : public wxTreeCtrl {
+ DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
public:
wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
char* name) :
wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
-
int OnCompareItems(const wxTreeItemId& item1,
const wxTreeItemId& item2) {
int rval = 0;
PYPRIVATE;
};
+IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
+
%}
// These are for the GetFirstChild/GetNextChild methods below
%pragma(python) addtomethod = "__init__:self._setSelf(self, wxTreeCtrl)"
void AssignImageList(wxImageList* imageList);
+ %pragma(python) addtomethod = "AssignImageList:_args[0].thisown = 0"
size_t GetCount();
unsigned int GetIndent();
void SetIndent(unsigned int indent);
//----------------------------------------------------------------------
+%init %{
+ wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
+ wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
+%}
+
+//----------------------------------------------------------------------
+