Add properties

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-09-26 00:26:35 +00:00
parent 4627af27d4
commit e70b4d2db9
50 changed files with 1799 additions and 249 deletions

View File

@@ -118,6 +118,13 @@ public:
void SetEditable (bool edit);
void SetShown(bool shown);
%property(Alignment, GetAlignment, SetAlignment, doc="See `GetAlignment` and `SetAlignment`");
%property(Image, GetImage, SetImage, doc="See `GetImage` and `SetImage`");
%property(SelectedImage, GetSelectedImage, SetSelectedImage, doc="See `GetSelectedImage` and `SetSelectedImage`");
%property(Text, GetText, SetText, doc="See `GetText` and `SetText`");
%property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`");
%property(Editable, IsEditable, SetEditable);
%property(Shown, IsShown, SetShown);
};
@@ -678,6 +685,20 @@ public:
wxWindow* GetHeaderWindow() const;
wxScrolledWindow* GetMainWindow() const;
%property(ButtonsImageList, GetButtonsImageList, SetButtonsImageList, doc="See `GetButtonsImageList` and `SetButtonsImageList`");
%property(ColumnCount, GetColumnCount, doc="See `GetColumnCount`");
%property(Count, GetCount, doc="See `GetCount`");
%property(HeaderWindow, GetHeaderWindow, doc="See `GetHeaderWindow`");
%property(ImageList, GetImageList, SetImageList, doc="See `GetImageList` and `SetImageList`");
%property(Indent, GetIndent, SetIndent, doc="See `GetIndent` and `SetIndent`");
%property(LineSpacing, GetLineSpacing, SetLineSpacing, doc="See `GetLineSpacing` and `SetLineSpacing`");
%property(MainColumn, GetMainColumn, SetMainColumn, doc="See `GetMainColumn` and `SetMainColumn`");
%property(MainWindow, GetMainWindow, doc="See `GetMainWindow`");
%property(Next, GetNext, doc="See `GetNext`");
%property(RootItem, GetRootItem, doc="See `GetRootItem`");
%property(Selection, GetSelection, doc="See `GetSelection`");
%property(Selections, GetSelections, doc="See `GetSelections`");
%property(StateImageList, GetStateImageList, SetStateImageList, doc="See `GetStateImageList` and `SetStateImageList`");
};
//----------------------------------------------------------------------

View File

@@ -206,6 +206,14 @@ public:
wxBitmapButton* GetUpButton();
wxBitmapButton* GetDownButton();
wxBitmapButton* GetEditButton();
%property(DelButton, GetDelButton, doc="See `GetDelButton`");
%property(DownButton, GetDownButton, doc="See `GetDownButton`");
%property(EditButton, GetEditButton, doc="See `GetEditButton`");
%property(ListCtrl, GetListCtrl, doc="See `GetListCtrl`");
%property(NewButton, GetNewButton, doc="See `GetNewButton`");
%property(Strings, GetStrings, SetStrings, doc="See `GetStrings` and `SetStrings`");
%property(UpButton, GetUpButton, doc="See `GetUpButton`");
};
@@ -255,6 +263,9 @@ public:
// events happen such as node expansion
void SetCompanionWindow(wxWindow* companion);
wxWindow* GetCompanionWindow() const;
%property(CompanionWindow, GetCompanionWindow, SetCompanionWindow, doc="See `GetCompanionWindow` and `SetCompanionWindow`");
%property(ScrolledWindow, GetScrolledWindow, doc="See `GetScrolledWindow`");
};
@@ -315,6 +326,8 @@ public:
wxRemotelyScrolledTreeCtrl* GetTreeCtrl() const;
void SetTreeCtrl(wxRemotelyScrolledTreeCtrl* treeCtrl);
%property(TreeCtrl, GetTreeCtrl, SetTreeCtrl, doc="See `GetTreeCtrl` and `SetTreeCtrl`");
};
@@ -409,6 +422,9 @@ public:
void SetDrawFaded(bool DrawFaded, bool Redraw = true);
void SetValue(const wxString &Value, bool Redraw = true);
%property(Alignment, GetAlignment, SetAlignment, doc="See `GetAlignment` and `SetAlignment`");
%property(DrawFaded, GetDrawFaded, SetDrawFaded, doc="See `GetDrawFaded` and `SetDrawFaded`");
%property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
};
@@ -465,6 +481,10 @@ public:
void SetCustomScale( float sx, float sy );
void GetCustomScale( float* OUTPUT, float* OUTPUT ) const;
%property(Alignment, GetAlignment, SetAlignment, doc="See `GetAlignment` and `SetAlignment`");
%property(Bitmap, GetBitmap, SetBitmap, doc="See `GetBitmap` and `SetBitmap`");
%property(Icon, GetIcon, SetIcon, doc="See `GetIcon` and `SetIcon`");
%property(Scale, GetScale, SetScale, doc="See `GetScale` and `SetScale`");
};

View File

@@ -175,6 +175,13 @@ class EditableListBox(_windows.Panel):
"""GetEditButton(self) -> BitmapButton"""
return _gizmos.EditableListBox_GetEditButton(*args, **kwargs)
DelButton = property(GetDelButton,doc="See `GetDelButton`")
DownButton = property(GetDownButton,doc="See `GetDownButton`")
EditButton = property(GetEditButton,doc="See `GetEditButton`")
ListCtrl = property(GetListCtrl,doc="See `GetListCtrl`")
NewButton = property(GetNewButton,doc="See `GetNewButton`")
Strings = property(GetStrings,SetStrings,doc="See `GetStrings` and `SetStrings`")
UpButton = property(GetUpButton,doc="See `GetUpButton`")
_gizmos.EditableListBox_swigregister(EditableListBox)
class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
@@ -213,6 +220,8 @@ class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
"""GetCompanionWindow(self) -> Window"""
return _gizmos.RemotelyScrolledTreeCtrl_GetCompanionWindow(*args, **kwargs)
CompanionWindow = property(GetCompanionWindow,SetCompanionWindow,doc="See `GetCompanionWindow` and `SetCompanionWindow`")
ScrolledWindow = property(GetScrolledWindow,doc="See `GetScrolledWindow`")
_gizmos.RemotelyScrolledTreeCtrl_swigregister(RemotelyScrolledTreeCtrl)
class TreeCompanionWindow(_core.Window):
@@ -239,6 +248,7 @@ class TreeCompanionWindow(_core.Window):
"""SetTreeCtrl(self, RemotelyScrolledTreeCtrl treeCtrl)"""
return _gizmos.TreeCompanionWindow_SetTreeCtrl(*args, **kwargs)
TreeCtrl = property(GetTreeCtrl,SetTreeCtrl,doc="See `GetTreeCtrl` and `SetTreeCtrl`")
_gizmos.TreeCompanionWindow_swigregister(TreeCompanionWindow)
class ThinSplitterWindow(_windows.SplitterWindow):
@@ -323,6 +333,9 @@ class LEDNumberCtrl(_core.Control):
"""SetValue(self, String Value, bool Redraw=True)"""
return _gizmos.LEDNumberCtrl_SetValue(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
DrawFaded = property(GetDrawFaded,SetDrawFaded,doc="See `GetDrawFaded` and `SetDrawFaded`")
Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`")
_gizmos.LEDNumberCtrl_swigregister(LEDNumberCtrl)
def PreLEDNumberCtrl(*args, **kwargs):
@@ -430,6 +443,13 @@ class TreeListColumnInfo(_core.Object):
"""SetShown(self, bool shown)"""
return _gizmos.TreeListColumnInfo_SetShown(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Image = property(GetImage,SetImage,doc="See `GetImage` and `SetImage`")
SelectedImage = property(GetSelectedImage,SetSelectedImage,doc="See `GetSelectedImage` and `SetSelectedImage`")
Text = property(GetText,SetText,doc="See `GetText` and `SetText`")
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
Editable = property(IsEditable,SetEditable)
Shown = property(IsShown,SetShown)
_gizmos.TreeListColumnInfo_swigregister(TreeListColumnInfo)
TreeListCtrlNameStr = cvar.TreeListCtrlNameStr
@@ -906,6 +926,20 @@ class TreeListCtrl(_core.Control):
"""GetMainWindow(self) -> ScrolledWindow"""
return _gizmos.TreeListCtrl_GetMainWindow(*args, **kwargs)
ButtonsImageList = property(GetButtonsImageList,SetButtonsImageList,doc="See `GetButtonsImageList` and `SetButtonsImageList`")
ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`")
Count = property(GetCount,doc="See `GetCount`")
HeaderWindow = property(GetHeaderWindow,doc="See `GetHeaderWindow`")
ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`")
Indent = property(GetIndent,SetIndent,doc="See `GetIndent` and `SetIndent`")
LineSpacing = property(GetLineSpacing,SetLineSpacing,doc="See `GetLineSpacing` and `SetLineSpacing`")
MainColumn = property(GetMainColumn,SetMainColumn,doc="See `GetMainColumn` and `SetMainColumn`")
MainWindow = property(GetMainWindow,doc="See `GetMainWindow`")
Next = property(GetNext,doc="See `GetNext`")
RootItem = property(GetRootItem,doc="See `GetRootItem`")
Selection = property(GetSelection,doc="See `GetSelection`")
Selections = property(GetSelections,doc="See `GetSelections`")
StateImageList = property(GetStateImageList,SetStateImageList,doc="See `GetStateImageList` and `SetStateImageList`")
_gizmos.TreeListCtrl_swigregister(TreeListCtrl)
def PreTreeListCtrl(*args, **kwargs):
@@ -982,6 +1016,10 @@ class StaticPicture(_core.Control):
"""GetCustomScale(self, float OUTPUT, float OUTPUT)"""
return _gizmos.StaticPicture_GetCustomScale(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`")
Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`")
Scale = property(GetScale,SetScale,doc="See `GetScale` and `SetScale`")
_gizmos.StaticPicture_swigregister(StaticPicture)
def PreStaticPicture(*args, **kwargs):

View File

@@ -175,6 +175,13 @@ class EditableListBox(_windows.Panel):
"""GetEditButton(self) -> BitmapButton"""
return _gizmos.EditableListBox_GetEditButton(*args, **kwargs)
DelButton = property(GetDelButton,doc="See `GetDelButton`")
DownButton = property(GetDownButton,doc="See `GetDownButton`")
EditButton = property(GetEditButton,doc="See `GetEditButton`")
ListCtrl = property(GetListCtrl,doc="See `GetListCtrl`")
NewButton = property(GetNewButton,doc="See `GetNewButton`")
Strings = property(GetStrings,SetStrings,doc="See `GetStrings` and `SetStrings`")
UpButton = property(GetUpButton,doc="See `GetUpButton`")
_gizmos.EditableListBox_swigregister(EditableListBox)
class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
@@ -213,6 +220,8 @@ class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
"""GetCompanionWindow(self) -> Window"""
return _gizmos.RemotelyScrolledTreeCtrl_GetCompanionWindow(*args, **kwargs)
CompanionWindow = property(GetCompanionWindow,SetCompanionWindow,doc="See `GetCompanionWindow` and `SetCompanionWindow`")
ScrolledWindow = property(GetScrolledWindow,doc="See `GetScrolledWindow`")
_gizmos.RemotelyScrolledTreeCtrl_swigregister(RemotelyScrolledTreeCtrl)
class TreeCompanionWindow(_core.Window):
@@ -239,6 +248,7 @@ class TreeCompanionWindow(_core.Window):
"""SetTreeCtrl(self, RemotelyScrolledTreeCtrl treeCtrl)"""
return _gizmos.TreeCompanionWindow_SetTreeCtrl(*args, **kwargs)
TreeCtrl = property(GetTreeCtrl,SetTreeCtrl,doc="See `GetTreeCtrl` and `SetTreeCtrl`")
_gizmos.TreeCompanionWindow_swigregister(TreeCompanionWindow)
class ThinSplitterWindow(_windows.SplitterWindow):
@@ -323,6 +333,9 @@ class LEDNumberCtrl(_core.Control):
"""SetValue(self, String Value, bool Redraw=True)"""
return _gizmos.LEDNumberCtrl_SetValue(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
DrawFaded = property(GetDrawFaded,SetDrawFaded,doc="See `GetDrawFaded` and `SetDrawFaded`")
Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`")
_gizmos.LEDNumberCtrl_swigregister(LEDNumberCtrl)
def PreLEDNumberCtrl(*args, **kwargs):
@@ -430,6 +443,13 @@ class TreeListColumnInfo(_core.Object):
"""SetShown(self, bool shown)"""
return _gizmos.TreeListColumnInfo_SetShown(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Image = property(GetImage,SetImage,doc="See `GetImage` and `SetImage`")
SelectedImage = property(GetSelectedImage,SetSelectedImage,doc="See `GetSelectedImage` and `SetSelectedImage`")
Text = property(GetText,SetText,doc="See `GetText` and `SetText`")
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
Editable = property(IsEditable,SetEditable)
Shown = property(IsShown,SetShown)
_gizmos.TreeListColumnInfo_swigregister(TreeListColumnInfo)
TreeListCtrlNameStr = cvar.TreeListCtrlNameStr
@@ -906,6 +926,20 @@ class TreeListCtrl(_core.Control):
"""GetMainWindow(self) -> ScrolledWindow"""
return _gizmos.TreeListCtrl_GetMainWindow(*args, **kwargs)
ButtonsImageList = property(GetButtonsImageList,SetButtonsImageList,doc="See `GetButtonsImageList` and `SetButtonsImageList`")
ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`")
Count = property(GetCount,doc="See `GetCount`")
HeaderWindow = property(GetHeaderWindow,doc="See `GetHeaderWindow`")
ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`")
Indent = property(GetIndent,SetIndent,doc="See `GetIndent` and `SetIndent`")
LineSpacing = property(GetLineSpacing,SetLineSpacing,doc="See `GetLineSpacing` and `SetLineSpacing`")
MainColumn = property(GetMainColumn,SetMainColumn,doc="See `GetMainColumn` and `SetMainColumn`")
MainWindow = property(GetMainWindow,doc="See `GetMainWindow`")
Next = property(GetNext,doc="See `GetNext`")
RootItem = property(GetRootItem,doc="See `GetRootItem`")
Selection = property(GetSelection,doc="See `GetSelection`")
Selections = property(GetSelections,doc="See `GetSelections`")
StateImageList = property(GetStateImageList,SetStateImageList,doc="See `GetStateImageList` and `SetStateImageList`")
_gizmos.TreeListCtrl_swigregister(TreeListCtrl)
def PreTreeListCtrl(*args, **kwargs):
@@ -982,6 +1016,10 @@ class StaticPicture(_core.Control):
"""GetCustomScale(self, float OUTPUT, float OUTPUT)"""
return _gizmos.StaticPicture_GetCustomScale(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`")
Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`")
Scale = property(GetScale,SetScale,doc="See `GetScale` and `SetScale`")
_gizmos.StaticPicture_swigregister(StaticPicture)
def PreStaticPicture(*args, **kwargs):

View File

@@ -175,6 +175,13 @@ class EditableListBox(_windows.Panel):
"""GetEditButton(self) -> BitmapButton"""
return _gizmos.EditableListBox_GetEditButton(*args, **kwargs)
DelButton = property(GetDelButton,doc="See `GetDelButton`")
DownButton = property(GetDownButton,doc="See `GetDownButton`")
EditButton = property(GetEditButton,doc="See `GetEditButton`")
ListCtrl = property(GetListCtrl,doc="See `GetListCtrl`")
NewButton = property(GetNewButton,doc="See `GetNewButton`")
Strings = property(GetStrings,SetStrings,doc="See `GetStrings` and `SetStrings`")
UpButton = property(GetUpButton,doc="See `GetUpButton`")
_gizmos.EditableListBox_swigregister(EditableListBox)
class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
@@ -213,6 +220,8 @@ class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
"""GetCompanionWindow(self) -> Window"""
return _gizmos.RemotelyScrolledTreeCtrl_GetCompanionWindow(*args, **kwargs)
CompanionWindow = property(GetCompanionWindow,SetCompanionWindow,doc="See `GetCompanionWindow` and `SetCompanionWindow`")
ScrolledWindow = property(GetScrolledWindow,doc="See `GetScrolledWindow`")
_gizmos.RemotelyScrolledTreeCtrl_swigregister(RemotelyScrolledTreeCtrl)
class TreeCompanionWindow(_core.Window):
@@ -239,6 +248,7 @@ class TreeCompanionWindow(_core.Window):
"""SetTreeCtrl(self, RemotelyScrolledTreeCtrl treeCtrl)"""
return _gizmos.TreeCompanionWindow_SetTreeCtrl(*args, **kwargs)
TreeCtrl = property(GetTreeCtrl,SetTreeCtrl,doc="See `GetTreeCtrl` and `SetTreeCtrl`")
_gizmos.TreeCompanionWindow_swigregister(TreeCompanionWindow)
class ThinSplitterWindow(_windows.SplitterWindow):
@@ -323,6 +333,9 @@ class LEDNumberCtrl(_core.Control):
"""SetValue(self, String Value, bool Redraw=True)"""
return _gizmos.LEDNumberCtrl_SetValue(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
DrawFaded = property(GetDrawFaded,SetDrawFaded,doc="See `GetDrawFaded` and `SetDrawFaded`")
Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`")
_gizmos.LEDNumberCtrl_swigregister(LEDNumberCtrl)
def PreLEDNumberCtrl(*args, **kwargs):
@@ -430,6 +443,13 @@ class TreeListColumnInfo(_core.Object):
"""SetShown(self, bool shown)"""
return _gizmos.TreeListColumnInfo_SetShown(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Image = property(GetImage,SetImage,doc="See `GetImage` and `SetImage`")
SelectedImage = property(GetSelectedImage,SetSelectedImage,doc="See `GetSelectedImage` and `SetSelectedImage`")
Text = property(GetText,SetText,doc="See `GetText` and `SetText`")
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
Editable = property(IsEditable,SetEditable)
Shown = property(IsShown,SetShown)
_gizmos.TreeListColumnInfo_swigregister(TreeListColumnInfo)
TreeListCtrlNameStr = cvar.TreeListCtrlNameStr
@@ -906,6 +926,20 @@ class TreeListCtrl(_core.Control):
"""GetMainWindow(self) -> ScrolledWindow"""
return _gizmos.TreeListCtrl_GetMainWindow(*args, **kwargs)
ButtonsImageList = property(GetButtonsImageList,SetButtonsImageList,doc="See `GetButtonsImageList` and `SetButtonsImageList`")
ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`")
Count = property(GetCount,doc="See `GetCount`")
HeaderWindow = property(GetHeaderWindow,doc="See `GetHeaderWindow`")
ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`")
Indent = property(GetIndent,SetIndent,doc="See `GetIndent` and `SetIndent`")
LineSpacing = property(GetLineSpacing,SetLineSpacing,doc="See `GetLineSpacing` and `SetLineSpacing`")
MainColumn = property(GetMainColumn,SetMainColumn,doc="See `GetMainColumn` and `SetMainColumn`")
MainWindow = property(GetMainWindow,doc="See `GetMainWindow`")
Next = property(GetNext,doc="See `GetNext`")
RootItem = property(GetRootItem,doc="See `GetRootItem`")
Selection = property(GetSelection,doc="See `GetSelection`")
Selections = property(GetSelections,doc="See `GetSelections`")
StateImageList = property(GetStateImageList,SetStateImageList,doc="See `GetStateImageList` and `SetStateImageList`")
_gizmos.TreeListCtrl_swigregister(TreeListCtrl)
def PreTreeListCtrl(*args, **kwargs):
@@ -982,6 +1016,10 @@ class StaticPicture(_core.Control):
"""GetCustomScale(self, float OUTPUT, float OUTPUT)"""
return _gizmos.StaticPicture_GetCustomScale(*args, **kwargs)
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`")
Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`")
Scale = property(GetScale,SetScale,doc="See `GetScale` and `SetScale`")
_gizmos.StaticPicture_swigregister(StaticPicture)
def PreStaticPicture(*args, **kwargs):