OpenCPN Partial API docs
Loading...
Searching...
No Matches
wxStandardDialogLayoutAdapter Class Reference

#include <scrollingdialog.h>

Inheritance diagram for wxStandardDialogLayoutAdapter:
wxDialogLayoutAdapter

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...
 

Detailed Description

Standard adapter. Does scrolling adaptation for paged and regular dialogs.

Definition at line 45 of file scrollingdialog.h.

Constructor & Destructor Documentation

◆ wxStandardDialogLayoutAdapter()

wxStandardDialogLayoutAdapter::wxStandardDialogLayoutAdapter ( )
inline

Definition at line 48 of file scrollingdialog.h.

Member Function Documentation

◆ CanDoLayoutAdaptation()

bool wxStandardDialogLayoutAdapter::CanDoLayoutAdaptation ( wxDialogHelper dialog)
virtual

Indicate that adaptation should be done.

Standard adapter

Implements wxDialogLayoutAdapter.

Definition at line 70 of file scrollingdialog.cpp.

◆ DoLayoutAdaptation()

bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation ( wxDialogHelper dialog)
virtual

Do layout adaptation.

Implements wxDialogLayoutAdapter.

Definition at line 79 of file scrollingdialog.cpp.

◆ FindButtonSizer()

wxSizer * wxStandardDialogLayoutAdapter::FindButtonSizer ( bool  stdButtonSizer,
wxDialogHelper dialog,
wxSizer *  sizer,
int &  retBorder,
int  accumlatedBorder = 0 
)
virtual

Find a standard or horizontal box sizer.

Find and remove the button sizer, if any.

Definition at line 186 of file scrollingdialog.cpp.

◆ FindLooseButtons()

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.

Definition at line 258 of file scrollingdialog.cpp.

◆ FitWithScrolling() [1/2]

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).

Definition at line 389 of file scrollingdialog.cpp.

◆ FitWithScrolling() [2/2]

bool wxStandardDialogLayoutAdapter::FitWithScrolling ( wxDialog *  dialog,
wxWindowList &  windows 
)
virtual

Definition at line 330 of file scrollingdialog.cpp.

◆ IsOrdinaryButtonSizer()

bool wxStandardDialogLayoutAdapter::IsOrdinaryButtonSizer ( wxDialogHelper dialog,
wxBoxSizer *  sizer 
)
virtual

Check if this sizer contains standard buttons, and so can be repositioned in the dialog.

Definition at line 230 of file scrollingdialog.cpp.

◆ IsStandardButton()

bool wxStandardDialogLayoutAdapter::IsStandardButton ( wxDialogHelper dialog,
wxButton *  button 
)
virtual

Check if this is a standard button.

Definition at line 246 of file scrollingdialog.cpp.

◆ MustScroll()

int wxStandardDialogLayoutAdapter::MustScroll ( wxDialog *  dialog,
wxSize &  windowSize,
wxSize &  displaySize 
)
virtual

Find whether scrolling will be necessary for the dialog, returning wxVERTICAL, wxHORIZONTAL or both.

Definition at line 308 of file scrollingdialog.cpp.

◆ ReparentControls()

void wxStandardDialogLayoutAdapter::ReparentControls ( wxWindow *  parent,
wxWindow *  reparentTo,
wxSizer *  buttonSizer = NULL 
)
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.


The documentation for this class was generated from the following files: