Version 0.4 of wxPython for MSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-10-02 06:44:50 +00:00
parent d1c74ca98b
commit 9c039d08bf
49 changed files with 5166 additions and 2155 deletions

View File

@@ -16,6 +16,7 @@
#include "helpers.h"
#include <wx/grid.h>
#include <wx/notebook.h>
#include <wx/splitter.h>
%}
//----------------------------------------------------------------------
@@ -31,6 +32,8 @@
%import controls.i
%import events.i
%pragma(python) code = "import wxp"
//---------------------------------------------------------------------------
enum {
@@ -70,6 +73,8 @@ public:
long style=0,
char* name="grid");
%pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
void AdjustScrollbars();
bool AppendCols(int n=1, bool updateLabels=TRUE);
bool AppendRows(int n=1, bool updateLabels=TRUE);
@@ -189,6 +194,8 @@ public:
long style = 0,
char* name = "notebook");
%pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
int GetPageCount();
int SetSelection(int nPage);
void AdvanceSelection(bool bForward = TRUE);
@@ -220,10 +227,51 @@ public:
};
//---------------------------------------------------------------------------
class wxSplitterWindow : public wxWindow {
public:
wxSplitterWindow(wxWindow* parent, wxWindowID id,
const wxPoint& point = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style=wxSP_3D,
char* name = "splitterWindow");
%pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
int GetMinimumPaneSize();
int GetSashPosition();
int GetSplitMode();
wxWindow* GetWindow1();
wxWindow* GetWindow2();
void Initialize(wxWindow* window);
bool IsSplit();
// TODO: How to handle callbacks that don't come from
// event system???
//
//void OnDoubleClickSash(int x, int y);
//void OnUnsplit(wxWindow* removed);
void SetSashPosition(int position, int redraw = TRUE);
void SetMinimumPaneSize(int paneSize);
void SetSplitMode(int mode);
bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = -1);
bool SplitVertically(wxWindow* window1, wxWindow* window2, int sashPosition = -1);
bool Unsplit(wxWindow* toRemove = NULL);
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.4 1998/10/02 06:40:43 RD
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:20 RD
// more wxGTK compatibility things.
//