| 1 |
#ifndef SIZERWRAPPERBASE_H |
| 2 |
#define SIZERWRAPPERBASE_H |
| 3 |
|
| 4 |
#include "wxc_widget.h" // Base class: WrapperBase |
| 5 |
|
| 6 |
class SizerWrapperBase : public wxcWidget |
| 7 |
{ |
| 8 |
|
| 9 |
public: |
| 10 |
SizerWrapperBase(); |
| 11 |
virtual ~SizerWrapperBase(); |
| 12 |
|
| 13 |
protected: |
| 14 |
wxString GenerateMinSizeCode() const; |
| 15 |
wxString GenerateMinSizeXRC() const; |
| 16 |
|
| 17 |
public: |
| 18 |
virtual void GetIncludeFile(wxArrayString& headers) const; |
| 19 |
|
| 20 |
/** |
| 21 |
* @brief can this wrapper be an actual Window parent? |
| 22 |
*/ |
| 23 |
virtual bool IsValidParent() const { return false; } |
| 24 |
|
| 25 |
/** |
| 26 |
* @brief Is this a 'real' control, or something else e.g. a sizer or a toolbar separator, that doesn't do events |
| 27 |
*/ |
| 28 |
virtual bool IsEventHandler() const { return false; } |
| 29 |
|
| 30 |
/** |
| 31 |
* @brief return true indicating that this class wraps a wxSizer |
| 32 |
*/ |
| 33 |
virtual bool IsSizer() const { return true; } |
| 34 |
|
| 35 |
/** |
| 36 |
* @brief return true if this sizer has to be kept as a class member |
| 37 |
*/ |
| 38 |
virtual bool KeepAsClassMember() const; |
| 39 |
|
| 40 |
/** |
| 41 |
* @brief return true if this sizer's parent is |
| 42 |
* an actual window / control and *not* sizer item |
| 43 |
*/ |
| 44 |
bool IsMainSizer() const; |
| 45 |
}; |
| 46 |
|
| 47 |
#endif // SIZERWRAPPERBASE_H |