OpenCPN Partial API docs
|
#include <scrollingdialog.h>
Public Member Functions | |
virtual bool | CanDoLayoutAdaptation (wxDialogHelper *dialog) |
Indicate that adaptation should be done. More... | |
virtual bool | DoLayoutAdaptation (wxDialogHelper *dialog) |
Do layout adaptation. More... | |
virtual wxSizer * | FindButtonSizer (bool stdButtonSizer, wxDialogHelper *dialog, wxSizer *sizer, int &retBorder, int accumlatedBorder=0) |
Find a standard or horizontal box sizer. More... | |
virtual bool | IsOrdinaryButtonSizer (wxDialogHelper *dialog, wxBoxSizer *sizer) |
Check if this sizer contains standard buttons, and so can be repositioned in the dialog. More... | |
virtual bool | IsStandardButton (wxDialogHelper *dialog, wxButton *button) |
Check if this is a standard button. More... | |
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. More... | |
virtual void | ReparentControls (wxWindow *parent, wxWindow *reparentTo, wxSizer *buttonSizer=NULL) |
Reparent the controls to the scrolled window, except those in buttonSizer. More... | |
virtual bool | FitWithScrolling (wxDialog *dialog, wxScrolledWindow *scrolledWindow) |
A function to fit the dialog around its contents, and then adjust for screen size. More... | |
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. More... | |
virtual bool | CanDoLayoutAdaptation (wxDialogHelper *dialog)=0 |
Override this function to indicate that adaptation should be done. More... | |
virtual bool | DoLayoutAdaptation (wxDialogHelper *dialog)=0 |
Override this function to do the adaptation. More... | |
Standard adapter. Does scrolling adaptation for paged and regular dialogs.
Definition at line 45 of file scrollingdialog.h.
|
inline |
Definition at line 48 of file scrollingdialog.h.
|
virtual |
Indicate that adaptation should be done.
Standard adapter
Implements wxDialogLayoutAdapter.
Definition at line 70 of file scrollingdialog.cpp.
|
virtual |
Do layout adaptation.
Implements wxDialogLayoutAdapter.
Definition at line 79 of file scrollingdialog.cpp.
|
virtual |
Find a standard or horizontal box sizer.
Find and remove the button sizer, if any.
Definition at line 186 of file scrollingdialog.cpp.
|
virtual |
Find 'loose' main buttons in the existing layout and add them to the standard dialog sizer.
Definition at line 258 of file scrollingdialog.cpp.
|
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).
Definition at line 389 of file scrollingdialog.cpp.
|
virtual |
Definition at line 330 of file scrollingdialog.cpp.
|
virtual |
Check if this sizer contains standard buttons, and so can be repositioned in the dialog.
Definition at line 230 of file scrollingdialog.cpp.
|
virtual |
Check if this is a standard button.
Definition at line 246 of file scrollingdialog.cpp.
|
virtual |
Find whether scrolling will be necessary for the dialog, returning wxVERTICAL, wxHORIZONTAL or both.
Definition at line 308 of file scrollingdialog.cpp.
|
virtual |
Reparent the controls to the scrolled window, except those in buttonSizer.
Reparent the controls to the scrolled window.
Definition at line 283 of file scrollingdialog.cpp.