Go to the documentation of this file.
32 #include <wx/gdicmn.h>
33 #include <wx/docview.h>
73 wxSize cSize = canvas->GetSize();
78 while (cSize.GetHeight() < factor*figureSize.GetHeight()) {
139 wxDocManager* manager = wxGetApp().docManager();
140 if (manager->GetCurrentView() != NULL) {
wxSize getFigureSize() const
virtual FitHeightCmd * create() const
void setZoomFactor(double factor)
MachineCanvas * canvas() const
static const std::string CMD_SNAME_ZOOM_FIT_HEI
Command name for the "Fit Height" command.
static const double MAX_ZOOM_FACTOR
Maximum zoom factor.
virtual std::string icon() const
virtual std::string shortName() const
static const std::string CMD_ICON_ZOOM_FIT_HEI
Icon location for the "Fit Height" command.
static const double AUTOZOOM_STEP
More precise step for automatic canvas resizing.