#ifndef __SPLITTERH_G__
#define __SPLITTERH_G__
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "splitter.h"
#endif
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSP_3D,
- const wxString& name = "splitter")
+ const wxString& name = wxT("splitter"))
{
Init();
Create(parent, id, pos, size, style, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSP_3D,
- const wxString& name = "splitter");
+ const wxString& name = wxT("splitter"));
// Gets the only or left/top pane
wxWindow *GetWindow1() const { return m_windowOne; }
int ConvertSashPosition(int sashPos) const;
// set the real sash position, sashPos here must be positive
- void DoSetSashPosition(int sashPos);
+ //
+ // returns TRUE if the sash position has been changed, FALSE otherwise
+ bool DoSetSashPosition(int sashPos);
+
+ // set the sash position and send an event about it having been changed
+ void SetSashPositionAndNotify(int sashPos);
// set the cursor appropriate for the current split mode
void SetResizeCursor();
DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
DECLARE_EVENT_TABLE()
+ DECLARE_NO_COPY_CLASS(wxSplitterWindow)
};
// ----------------------------------------------------------------------------