#include <uiutils/scrollingdialog.h>
Public Member Functions | |
wxDialogHelper (wxDialog *dialog=NULL) | |
virtual | ~wxDialogHelper () |
void | Init () |
void | SetDialog (wxDialog *dialog) |
wxDialog * | GetDialog () const |
virtual bool | DoLayoutAdaptation () |
Do the adaptation. | |
virtual bool | CanDoLayoutAdaptation () |
Can we do the adaptation? | |
virtual wxWindow * | GetContentWindow () const |
Returns a content window if there is one. | |
void | AddMainButtonId (wxWindowID id) |
Add an id to the list of custom main button identifiers that should be in the button sizer. | |
wxArrayInt & | GetMainButtonIds () |
bool | IsMainButtonId (wxWindowID id) const |
Is this id in the custom main button id array? | |
void | SetLayoutAdaptationLevel (int level) |
Level of adaptation, from none (Level 0) to full (Level 3). | |
int | GetLayoutAdaptationLevel () const |
Get level of adaptation. | |
void | SetLayoutAdaptationMode (wxDialogLayoutAdaptationMode mode) |
Override global adaptation enabled/disabled status. | |
wxDialogLayoutAdaptationMode | GetLayoutAdaptationMode () const |
void | SetLayoutAdaptationDone (bool adaptationDone) |
Returns true if the adaptation has been done. | |
bool | GetLayoutAdaptationDone () const |
Static Public Member Functions | |
static wxDialogLayoutAdapter * | SetLayoutAdapter (wxDialogLayoutAdapter *adapter) |
Set layout adapter class, returning old adapter. | |
static wxDialogLayoutAdapter * | GetLayoutAdapter () |
static bool | IsLayoutAdaptationEnabled () |
Global switch for layout adaptation. | |
static void | EnableLayoutAdaptation (bool enable) |
Protected Attributes | |
wxDialog * | m_dialog |
bool | m_layoutAdaptationDone |
wxArrayInt | m_mainButtonIds |
int | m_layoutAdaptationLevel |
wxDialogLayoutAdaptationMode | m_layoutAdaptationMode |
Static Protected Attributes | |
static wxDialogLayoutAdapter * | sm_layoutAdapter = NULL |
static bool | sm_layoutAdaptation = true |
wxDialogHelper::wxDialogHelper | ( | wxDialog * | dialog = NULL |
) | [inline] |
virtual wxDialogHelper::~wxDialogHelper | ( | ) | [inline, virtual] |
void wxDialogHelper::AddMainButtonId | ( | wxWindowID | id | ) | [inline] |
Add an id to the list of custom main button identifiers that should be in the button sizer.
bool wxDialogHelper::CanDoLayoutAdaptation | ( | ) | [virtual] |
Can we do the adaptation?
bool wxDialogHelper::DoLayoutAdaptation | ( | ) | [virtual] |
static void wxDialogHelper::EnableLayoutAdaptation | ( | bool | enable | ) | [inline, static] |
virtual wxWindow* wxDialogHelper::GetContentWindow | ( | ) | const [inline, virtual] |
wxDialog* wxDialogHelper::GetDialog | ( | ) | const [inline] |
bool wxDialogHelper::GetLayoutAdaptationDone | ( | ) | const [inline] |
int wxDialogHelper::GetLayoutAdaptationLevel | ( | ) | const [inline] |
Get level of adaptation.
wxDialogLayoutAdaptationMode wxDialogHelper::GetLayoutAdaptationMode | ( | ) | const [inline] |
static wxDialogLayoutAdapter* wxDialogHelper::GetLayoutAdapter | ( | ) | [inline, static] |
wxArrayInt& wxDialogHelper::GetMainButtonIds | ( | ) | [inline] |
void wxDialogHelper::Init | ( | ) |
Reimplemented in wxCommandEditorDialog, wxScrollingDialog, and wxScrollingWizard.
static bool wxDialogHelper::IsLayoutAdaptationEnabled | ( | ) | [inline, static] |
Global switch for layout adaptation.
bool wxDialogHelper::IsMainButtonId | ( | wxWindowID | id | ) | const [inline] |
Is this id in the custom main button id array?
void wxDialogHelper::SetDialog | ( | wxDialog * | dialog | ) | [inline] |
void wxDialogHelper::SetLayoutAdaptationDone | ( | bool | adaptationDone | ) | [inline] |
Returns true if the adaptation has been done.
void wxDialogHelper::SetLayoutAdaptationLevel | ( | int | level | ) | [inline] |
Level of adaptation, from none (Level 0) to full (Level 3).
To disable adaptation, set level 0, for example in your dialog constructor. You might do this if you know that you are displaying on a large screen and you don't want the dialog changed.
void wxDialogHelper::SetLayoutAdaptationMode | ( | wxDialogLayoutAdaptationMode | mode | ) | [inline] |
Override global adaptation enabled/disabled status.
wxDialogLayoutAdapter * wxDialogHelper::SetLayoutAdapter | ( | wxDialogLayoutAdapter * | adapter | ) | [static] |
Set layout adapter class, returning old adapter.
wxDialog* wxDialogHelper::m_dialog [protected] |
bool wxDialogHelper::m_layoutAdaptationDone [protected] |
int wxDialogHelper::m_layoutAdaptationLevel [protected] |
wxArrayInt wxDialogHelper::m_mainButtonIds [protected] |
bool wxDialogHelper::sm_layoutAdaptation = true [static, protected] |
wxDialogLayoutAdapter * wxDialogHelper::sm_layoutAdapter = NULL [static, protected] |