#include "wx/font.h" // so we can't do without them
#include "wx/colour.h"
#include "wx/region.h"
+#include "wx/utils.h"
#if wxUSE_VALIDATORS
#include "wx/validate.h" // defines wxDefaultValidator
const wxSize& size = wxDefaultSize,
long style = 0,
#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
#endif // wxUSE_VALIDATORS
const wxString& name = wxPanelNameStr);
int maxW = -1, int maxH = -1,
int incW = -1, int incH = -1 );
+ int GetMinWidth() const { return m_minWidth; }
+ int GetMinHeight() const { return m_minHeight; }
+ int GetMaxWidth() const { return m_maxWidth; }
+ int GetMaxHeight() const { return m_maxHeight; }
+
// window state
// ------------
inline wxWindow *GetGrandParent() const;
// is this window a top level one?
- bool IsTopLevel() const;
+ virtual bool IsTopLevel() const;
// it doesn't really change parent, use ReParent() instead
void SetParent( wxWindowBase *parent ) { m_parent = (wxWindow *)parent; }
#if wxUSE_VALIDATORS
// a window may have an associated validator which is used to control
// user input
+# if defined(__VISAGECPP__)
+ virtual void SetValidator( const wxValidator *validator );
+# else
virtual void SetValidator( const wxValidator &validator );
+# endif
virtual wxValidator *GetValidator() { return m_windowValidator; }
#endif // wxUSE_VALIDATORS
virtual bool DoPhase(int);
// these methods are virtual but normally won't be overridden
- virtual void TransformSizerToActual(int *x, int *y) const ;
virtual void SetSizeConstraint(int x, int y, int w, int h);
virtual void MoveConstraint(int x, int y);
virtual void GetSizeConstraint(int *w, int *h) const ;
// TODO: what are they and how do they work??
void SetSizer( wxSizer *sizer );
wxSizer *GetSizer() const { return m_windowSizer; }
-
- void SetSizerParent( wxWindowBase *win ) { m_sizerParent = win; }
- wxWindowBase *GetSizerParent() const { return m_sizerParent; }
-
- virtual void SizerSetSize(int x, int y, int w, int h);
- virtual void SizerMove(int x, int y);
#endif // wxUSE_CONSTRAINTS
// backward compatibility