#include <uiutils/scrollingdialog.h>
Public Member Functions | |
wxStandardDialogLayoutAdapter () | |
virtual bool | CanDoLayoutAdaptation (wxDialogHelper *dialog) |
Indicate that adaptation should be done. | |
virtual bool | DoLayoutAdaptation (wxDialogHelper *dialog) |
Do layout adaptation. | |
virtual wxScrolledWindow * | CreateScrolledWindow (wxWindow *parent) |
Create the scrolled window. | |
virtual wxSizer * | FindButtonSizer (bool stdButtonSizer, wxDialogHelper *dialog, wxSizer *sizer, int &retBorder, int accumlatedBorder=0) |
Find a standard or horizontal box sizer. | |
virtual bool | IsOrdinaryButtonSizer (wxDialogHelper *dialog, wxBoxSizer *sizer) |
Check if this sizer contains standard buttons, and so can be repositioned in the dialog. | |
virtual bool | IsStandardButton (wxDialogHelper *dialog, wxButton *button) |
Check if this is a standard button. | |
virtual bool | FindLooseButtons (wxDialogHelper *dialog, wxStdDialogButtonSizer *buttonSizer, wxSizer *sizer, int &count) |
Find 'loose' main buttons in the existing layout and add them to the standard dialog sizer. | |
virtual void | ReparentControls (wxWindow *parent, wxWindow *reparentTo, wxSizer *buttonSizer=NULL) |
Reparent the controls to the scrolled window, except those in buttonSizer. | |
virtual bool | FitWithScrolling (wxDialog *dialog, wxScrolledWindow *scrolledWindow) |
A function to fit the dialog around its contents, and then adjust for screen size. | |
virtual bool | FitWithScrolling (wxDialog *dialog, wxWindowList &windows) |
virtual int | MustScroll (wxDialog *dialog, wxSize &windowSize, wxSize &displaySize) |
Find whether scrolling will be necessary for the dialog, returning wxVERTICAL, wxHORIZONTAL or both. | |
Static Public Member Functions | |
static void | DoReparentControls (wxWindow *parent, wxWindow *reparentTo, wxSizer *buttonSizer=NULL) |
static bool | DoFitWithScrolling (wxDialog *dialog, wxScrolledWindow *scrolledWindow) |
static bool | DoFitWithScrolling (wxDialog *dialog, wxWindowList &windows) |
static int | DoMustScroll (wxDialog *dialog, wxSize &windowSize, wxSize &displaySize) |
wxStandardDialogLayoutAdapter::wxStandardDialogLayoutAdapter | ( | ) | [inline] |
bool wxStandardDialogLayoutAdapter::CanDoLayoutAdaptation | ( | wxDialogHelper * | dialog | ) | [virtual] |
wxScrolledWindow * wxStandardDialogLayoutAdapter::CreateScrolledWindow | ( | wxWindow * | parent | ) | [virtual] |
Create the scrolled window.
bool wxStandardDialogLayoutAdapter::DoFitWithScrolling | ( | wxDialog * | dialog, | |
wxWindowList & | windows | |||
) | [static] |
bool wxStandardDialogLayoutAdapter::DoFitWithScrolling | ( | wxDialog * | dialog, | |
wxScrolledWindow * | scrolledWindow | |||
) | [static] |
bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation | ( | wxDialogHelper * | dialog | ) | [virtual] |
int wxStandardDialogLayoutAdapter::DoMustScroll | ( | wxDialog * | dialog, | |
wxSize & | windowSize, | |||
wxSize & | displaySize | |||
) | [static] |
void wxStandardDialogLayoutAdapter::DoReparentControls | ( | wxWindow * | parent, | |
wxWindow * | reparentTo, | |||
wxSizer * | buttonSizer = NULL | |||
) | [static] |
wxSizer * wxStandardDialogLayoutAdapter::FindButtonSizer | ( | bool | stdButtonSizer, | |
wxDialogHelper * | dialog, | |||
wxSizer * | sizer, | |||
int & | retBorder, | |||
int | accumlatedBorder = 0 | |||
) | [virtual] |
Find a standard or horizontal box sizer.
bool wxStandardDialogLayoutAdapter::FindLooseButtons | ( | wxDialogHelper * | dialog, | |
wxStdDialogButtonSizer * | buttonSizer, | |||
wxSizer * | sizer, | |||
int & | count | |||
) | [virtual] |
Find 'loose' main buttons in the existing layout and add them to the standard dialog sizer.
bool wxStandardDialogLayoutAdapter::FitWithScrolling | ( | wxDialog * | dialog, | |
wxWindowList & | windows | |||
) | [virtual] |
bool wxStandardDialogLayoutAdapter::FitWithScrolling | ( | wxDialog * | dialog, | |
wxScrolledWindow * | scrolledWindow | |||
) | [virtual] |
A function to fit the dialog around its contents, and then adjust for screen size.
If scrolled windows are passed, scrolling is enabled in the required orientation(s).
bool wxStandardDialogLayoutAdapter::IsOrdinaryButtonSizer | ( | wxDialogHelper * | dialog, | |
wxBoxSizer * | sizer | |||
) | [virtual] |
Check if this sizer contains standard buttons, and so can be repositioned in the dialog.
bool wxStandardDialogLayoutAdapter::IsStandardButton | ( | wxDialogHelper * | dialog, | |
wxButton * | button | |||
) | [virtual] |
Check if this is a standard button.
int wxStandardDialogLayoutAdapter::MustScroll | ( | wxDialog * | dialog, | |
wxSize & | windowSize, | |||
wxSize & | displaySize | |||
) | [virtual] |
Find whether scrolling will be necessary for the dialog, returning wxVERTICAL, wxHORIZONTAL or both.
void wxStandardDialogLayoutAdapter::ReparentControls | ( | wxWindow * | parent, | |
wxWindow * | reparentTo, | |||
wxSizer * | buttonSizer = NULL | |||
) | [virtual] |
Reparent the controls to the scrolled window, except those in buttonSizer.