MSW compile fixes, detabified, a couple minor bugs fixed, etc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-05-13 22:10:32 +00:00
parent b8a31222b9
commit 9a27fdf2c6
4 changed files with 339 additions and 330 deletions

View File

@@ -60,9 +60,10 @@ extern PyObject *SWIG_newvarlink(void);
#include <wx/gizmos/splittree.h> #include <wx/gizmos/splittree.h>
#include <wx/gizmos/ledctrl.h> #include <wx/gizmos/ledctrl.h>
#include <wx/gizmos/treelistctrl.h>
#include <wx/listctrl.h> #include <wx/listctrl.h>
#include <wx/treectrl.h> #include <wx/treectrl.h>
#include <wx/imaglist.h>
#include "treelistctrl.h"
#include "pytree.h" #include "pytree.h"

View File

@@ -20,9 +20,10 @@
#include <wx/gizmos/splittree.h> #include <wx/gizmos/splittree.h>
#include <wx/gizmos/ledctrl.h> #include <wx/gizmos/ledctrl.h>
#include <wx/gizmos/treelistctrl.h>
#include <wx/listctrl.h> #include <wx/listctrl.h>
#include <wx/treectrl.h> #include <wx/treectrl.h>
#include <wx/imaglist.h>
#include "treelistctrl.h"
#include "pytree.h" #include "pytree.h"
%} %}

File diff suppressed because it is too large Load Diff

View File

@@ -46,15 +46,15 @@ enum wxTreeListColumnAlign {
class GIZMODLLEXPORT wxTreeListColumnInfo: public wxObject { class GIZMODLLEXPORT wxTreeListColumnInfo: public wxObject {
public: public:
static const size_t DEFAULT_COL_WIDTH = 100; enum { DEFAULT_COL_WIDTH = 100 };
wxTreeListColumnInfo(const wxChar* text = wxT(""), wxTreeListColumnInfo(const wxChar* text = wxT(""),
int image = -1, int image = -1,
size_t width = DEFAULT_COL_WIDTH, size_t width = DEFAULT_COL_WIDTH,
wxTreeListColumnAlign alignment = wxTL_ALIGN_LEFT) wxTreeListColumnAlign alignment = wxTL_ALIGN_LEFT)
{ {
m_image = image; m_image = image;
m_selected_image = -1; m_selected_image = -1;
m_text = text; m_text = text;
m_width = width; m_width = width;
m_alignment = alignment; m_alignment = alignment;
@@ -113,6 +113,7 @@ public:
long style = wxTR_DEFAULT_STYLE, long style = wxTR_DEFAULT_STYLE,
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
const wxString& name = wxTreeListCtrlNameStr ) const wxString& name = wxTreeListCtrlNameStr )
: m_header_win(0), m_main_win(0)
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
} }
@@ -218,7 +219,7 @@ public:
wxTreeItemIcon which = wxTreeItemIcon_Normal) const wxTreeItemIcon which = wxTreeItemIcon_Normal) const
{ return GetItemImage(item, GetMainColumn(), which); } { return GetItemImage(item, GetMainColumn(), which); }
int GetItemImage(const wxTreeItemId& item, size_t column, int GetItemImage(const wxTreeItemId& item, size_t column,
wxTreeItemIcon which = wxTreeItemIcon_Normal) const; wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
// get the data associated with the item // get the data associated with the item
wxTreeItemData *GetItemData(const wxTreeItemId& item) const; wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
@@ -230,7 +231,7 @@ public:
void SetItemText(const wxTreeItemId& item, const wxString& text) void SetItemText(const wxTreeItemId& item, const wxString& text)
{ SetItemText(item, GetMainColumn(), text); } { SetItemText(item, GetMainColumn(), text); }
void SetItemText(const wxTreeItemId& item, size_t column, void SetItemText(const wxTreeItemId& item, size_t column,
const wxString& text); const wxString& text);
// get one of the images associated with the item (normal by default) // get one of the images associated with the item (normal by default)
void SetItemImage(const wxTreeItemId& item, int image, void SetItemImage(const wxTreeItemId& item, int image,
@@ -238,7 +239,7 @@ public:
{ SetItemImage(item, GetMainColumn(), image, which); } { SetItemImage(item, GetMainColumn(), image, which); }
// the which parameter is ignored for all columns but the main one // the which parameter is ignored for all columns but the main one
void SetItemImage(const wxTreeItemId& item, size_t column, int image, void SetItemImage(const wxTreeItemId& item, size_t column, int image,
wxTreeItemIcon which = wxTreeItemIcon_Normal); wxTreeItemIcon which = wxTreeItemIcon_Normal);
// associate some data with the item // associate some data with the item
void SetItemData(const wxTreeItemId& item, wxTreeItemData *data); void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
@@ -257,7 +258,7 @@ public:
// set the item's background colour // set the item's background colour
void SetItemBackgroundColour(const wxTreeItemId& item, void SetItemBackgroundColour(const wxTreeItemId& item,
const wxColour& col); const wxColour& col);
// set the item's font (should be of the same height for all items) // set the item's font (should be of the same height for all items)
void SetItemFont(const wxTreeItemId& item, const wxFont& font); void SetItemFont(const wxTreeItemId& item, const wxFont& font);
@@ -400,7 +401,7 @@ public:
void UnselectAll(); void UnselectAll();
// select this item // select this item
void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE, void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE,
bool extended_select=FALSE); bool extended_select=FALSE);
// make sure this item is visible (expanding the parent item and/or // make sure this item is visible (expanding the parent item and/or
// scrolling to this item if necessary) // scrolling to this item if necessary)
void EnsureVisible(const wxTreeItemId& item); void EnsureVisible(const wxTreeItemId& item);