+MustHaveApp(wxRemotelyScrolledTreeCtrl);
+
+class wxRemotelyScrolledTreeCtrl: public wxPyTreeCtrl
+{
+public:
+ %pythonAppend wxRemotelyScrolledTreeCtrl "self._setOORInfo(self)"
+ %pythonAppend wxRemotelyScrolledTreeCtrl() ""
+
+ wxRemotelyScrolledTreeCtrl(wxWindow* parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_HAS_BUTTONS);
+
+
+ void HideVScrollbar();
+
+ // Adjust the containing wxScrolledWindow's scrollbars appropriately
+ void AdjustRemoteScrollbars();
+
+ // Find the scrolled window that contains this control
+ wxScrolledWindow* GetScrolledWindow() const;
+
+ // Scroll to the given line (in scroll units where each unit is
+ // the height of an item)
+ void ScrollToLine(int posHoriz, int posVert);
+
+ // The companion window is one which will get notified when certain
+ // events happen such as node expansion
+ void SetCompanionWindow(wxWindow* companion);
+ wxWindow* GetCompanionWindow() const;
+};
+
+
+
+/*
+ * wxTreeCompanionWindow
+ *
+ * A window displaying values associated with tree control items.
+ */
+
+%{
+class wxPyTreeCompanionWindow: public wxTreeCompanionWindow
+{
+public:
+ wxPyTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0)
+ : wxTreeCompanionWindow(parent, id, pos, size, style) {}
+
+
+ virtual void DrawItem(wxDC& dc, wxTreeItemId id, const wxRect& rect) {
+ bool found;
+ wxPyBlock_t blocked = wxPyBeginBlockThreads();
+ if ((found = wxPyCBH_findCallback(m_myInst, "DrawItem"))) {
+ PyObject* dcobj = wxPyMake_wxObject(&dc,false);
+ PyObject* idobj = wxPyConstructObject((void*)&id, wxT("wxTreeItemId"), false);
+ PyObject* recobj= wxPyConstructObject((void*)&rect, wxT("wxRect"), false);
+ wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOO)", dcobj, idobj, recobj));
+ Py_DECREF(dcobj);
+ Py_DECREF(idobj);
+ Py_DECREF(recobj);
+ }
+ wxPyEndBlockThreads(blocked);
+ if (! found)
+ wxTreeCompanionWindow::DrawItem(dc, id, rect);
+ }
+
+ PYPRIVATE;
+};
+%}
+
+
+MustHaveApp(wxPyTreeCompanionWindow);
+
+%rename(TreeCompanionWindow) wxPyTreeCompanionWindow;
+class wxPyTreeCompanionWindow: public wxWindow
+{
+public:
+ %pythonAppend wxPyTreeCompanionWindow "self._setOORInfo(self);self._setCallbackInfo(self, TreeCompanionWindow)"
+ %pythonAppend wxPyTreeCompanionWindow() ""
+
+ wxPyTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0);
+ void _setCallbackInfo(PyObject* self, PyObject* _class);
+
+ wxRemotelyScrolledTreeCtrl* GetTreeCtrl() const;
+ void SetTreeCtrl(wxRemotelyScrolledTreeCtrl* treeCtrl);
+};
+
+
+
+/*
+ * wxThinSplitterWindow
+ *
+ * Implements a splitter with a less obvious sash
+ * than the usual one.
+ */
+
+MustHaveApp(wxThinSplitterWindow);
+
+class wxThinSplitterWindow: public wxSplitterWindow
+{
+public:
+ %pythonAppend wxThinSplitterWindow "self._setOORInfo(self)"
+ %pythonAppend wxThinSplitterWindow() ""
+
+ wxThinSplitterWindow(wxWindow* parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxSP_3D | wxCLIP_CHILDREN);
+};
+
+
+
+/*
+ * wxSplitterScrolledWindow
+ *
+ * This scrolled window is aware of the fact that one of its
+ * children is a splitter window. It passes on its scroll events
+ * (after some processing) to both splitter children for them
+ * scroll appropriately.
+ */
+
+MustHaveApp(wxSplitterScrolledWindow);
+
+class wxSplitterScrolledWindow: public wxScrolledWindow
+{
+public:
+ %pythonAppend wxSplitterScrolledWindow "self._setOORInfo(self)"
+ %pythonAppend wxSplitterScrolledWindow() ""
+
+ wxSplitterScrolledWindow(wxWindow* parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0);
+};
+
+
+//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
+
+
+enum wxLEDValueAlign
+{
+ wxLED_ALIGN_LEFT,
+ wxLED_ALIGN_RIGHT,
+ wxLED_ALIGN_CENTER,
+
+ wxLED_ALIGN_MASK,
+
+ wxLED_DRAW_FADED,
+};
+
+
+MustHaveApp(wxLEDNumberCtrl);
+
+class wxLEDNumberCtrl : public wxControl
+{
+public:
+ %pythonAppend wxLEDNumberCtrl "self._setOORInfo(self)"
+ %pythonAppend wxLEDNumberCtrl() ""
+
+ wxLEDNumberCtrl(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLED_ALIGN_LEFT | wxLED_DRAW_FADED);
+ %RenameCtor(PreLEDNumberCtrl, wxLEDNumberCtrl());
+
+ bool Create(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLED_ALIGN_LEFT | wxLED_DRAW_FADED);
+
+ wxLEDValueAlign GetAlignment() const;
+ bool GetDrawFaded() const;
+ const wxString &GetValue() const;
+
+ void SetAlignment(wxLEDValueAlign Alignment, bool Redraw = true);
+ void SetDrawFaded(bool DrawFaded, bool Redraw = true);
+ void SetValue(const wxString &Value, bool Redraw = true);
+
+};
+
+
+
+//----------------------------------------------------------------------
+
+%include _treelist.i
+
+//----------------------------------------------------------------------
+
+enum
+{
+ wxSCALE_HORIZONTAL,
+ wxSCALE_VERTICAL,
+ wxSCALE_UNIFORM,
+ wxSCALE_CUSTOM
+};
+
+MustHaveApp(wxStaticPicture);
+
+class wxStaticPicture : public wxControl
+{
+public:
+ %pythonAppend wxStaticPicture "self._setOORInfo(self)"
+ %pythonAppend wxStaticPicture() ""
+
+ wxStaticPicture( wxWindow* parent, wxWindowID id=-1,
+ const wxBitmap& label=wxNullBitmap,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxPyStaticPictureNameStr );
+
+ %RenameCtor(PreStaticPicture, wxStaticPicture());
+
+ bool Create( wxWindow* parent, wxWindowID id=-1,
+ const wxBitmap& label=wxNullBitmap,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxPyStaticPictureNameStr );
+
+ void SetBitmap( const wxBitmap& bmp );
+ wxBitmap GetBitmap() const;
+ void SetIcon( const wxIcon& icon );
+ wxIcon GetIcon() const;
+
+ void SetAlignment( int align );
+ int GetAlignment() const;
+
+ void SetScale( int scale );
+ int GetScale() const;
+
+ void SetCustomScale( float sx, float sy );
+ void GetCustomScale( float* OUTPUT, float* OUTPUT ) const;
+
+};