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