Some doc corrections; removed wxDocument arg from wxView constructor;
wxTextCtrl::OnChar correction; added SetString and default constructor to wxStringTokenizer; added missing MSW wxFrame::SetSize functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,7 +157,8 @@ class WXDLLEXPORT wxView: public wxEvtHandler
|
||||
{
|
||||
DECLARE_ABSTRACT_CLASS(wxView)
|
||||
public:
|
||||
wxView(wxDocument *doc = (wxDocument *) NULL);
|
||||
// wxView(wxDocument *doc = (wxDocument *) NULL);
|
||||
wxView();
|
||||
~wxView(void);
|
||||
|
||||
inline wxDocument *GetDocument(void) const { return m_viewDocument; }
|
||||
|
@@ -1305,7 +1305,7 @@ const wxEventTableEntry theClass::sm_eventTableEntries[] = { \
|
||||
|
||||
// EVT_COMMAND
|
||||
#define EVT_COMMAND(id, event, fn) { event, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_COMMAND_RANGE(id1, id2, event, fn) { eventId, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_COMMAND_RANGE(id1, id2, event, fn) { event, id1, id2, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL },
|
||||
|
||||
// Scrolling
|
||||
#define EVT_SCROLL(func) \
|
||||
|
@@ -69,6 +69,10 @@ public:
|
||||
wxPoint GetPosition() const { return wxWindow::GetPosition(); }
|
||||
|
||||
virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
||||
virtual void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO)
|
||||
{ wxWindow::SetSize(rect, sizeFlags); }
|
||||
virtual void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
|
||||
virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); }
|
||||
|
||||
virtual void ClientToScreen(int *x, int *y) const;
|
||||
|
||||
|
@@ -282,6 +282,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__WXMSW__) && defined(__BORLANDC__)
|
||||
#undef wxUSE_ODBC
|
||||
#define wxUSE_ODBC 0
|
||||
#endif
|
||||
|
||||
#if defined(__WXMSW__) && !defined(__WIN32__)
|
||||
|
||||
#undef wxUSE_THREADS
|
||||
|
@@ -466,6 +466,9 @@ public:
|
||||
void UpdateWindowUI();
|
||||
|
||||
void OnEraseBackground(wxEraseEvent& event);
|
||||
void OnKeyDown(wxKeyEvent& event);
|
||||
void OnKeyUp(wxKeyEvent& event);
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
void OnChar(wxKeyEvent& event);
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
|
||||
|
@@ -46,7 +46,7 @@ class WXDLLEXPORT wxToolBarTool: public wxObject
|
||||
const wxString& shortHelpString = "", const wxString& longHelpString = "",
|
||||
GtkWidget *item = (GtkWidget *) NULL );
|
||||
#else
|
||||
wxToolBarTool(int theIndex = 0, const wxBitmap& bitmap1 = wxNullBitmap, const wxBitmap& bitmap2 = wxNullBitmap,
|
||||
wxToolBarTool(int theIndex, const wxBitmap& bitmap1 = wxNullBitmap, const wxBitmap& bitmap2 = wxNullBitmap,
|
||||
bool toggle = FALSE, long xPos = -1, long yPos = -1,
|
||||
const wxString& shortHelpString = wxEmptyString, const wxString& longHelpString = wxEmptyString);
|
||||
#endif
|
||||
|
@@ -20,17 +20,28 @@
|
||||
#include "wx/string.h"
|
||||
#include "wx/filefn.h"
|
||||
|
||||
class wxStringTokenizer : wxObject {
|
||||
class wxStringTokenizer : public wxObject {
|
||||
public:
|
||||
wxStringTokenizer(const wxString& to_tokenize,
|
||||
const wxString& delims = " \t\r\n",
|
||||
bool ret_delim = FALSE);
|
||||
wxStringTokenizer() { m_string = ""; m_delims = ""; m_retdelims = FALSE;}
|
||||
~wxStringTokenizer();
|
||||
|
||||
int CountTokens();
|
||||
bool HasMoreToken();
|
||||
wxString NextToken();
|
||||
wxString GetString() { return m_string; }
|
||||
|
||||
void SetString(const wxString& to_tokenize,
|
||||
const wxString& delims = " \t\r\n",
|
||||
bool ret_delim = FALSE)
|
||||
{
|
||||
m_string = to_tokenize;
|
||||
m_delims = delims;
|
||||
m_retdelims = ret_delim;
|
||||
}
|
||||
|
||||
protected:
|
||||
off_t FindDelims(const wxString& str, const wxString& delims);
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user