15 #include <qcheckbox.h>
16 #include <qradiobutton.h>
18 using namespace hippodraw;
105 QPrinter::Orientation
109 return QPrinter::Portrait;
112 return QPrinter::Landscape;
115 return QPrinter::Portrait;
120 if ( orientation == QPrinter::Portrait ) {
void setPrinterBounds(bool flag)
Gets the flag if the printer margin/bounds should be visible on the canvas or not.
QCheckBox * ignore_margin
virtual void saveRetile()
Responds to Save & Retile button.
virtual void portraitRadioButton_toggled(bool)
Responds portrait is clicked.
void orientationChanged()
Changes the plot matrix orientation.
void setIgnorePrinterMargin(bool yes)
Sets the status of the ignore printer margins check box.
QRadioButton * landscapeRadioButton
Accept new setting and retile.
CanvasSettings(QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags fl=0)
The constructor.
void setOrientation(QPrinter::Orientation orientation)
Sets the orientation of the canvas which can be Portrait or Landscape.
QRadioButton * m_add_selected
virtual void retile_clicked()
Responds to re-tile button clicked.
void setHeightNumber(int number)
Sets the number of new plots vertically.
void setAddSelected(bool yes)
Sets the check box of the state of add plots being selected.
virtual void cancel()
Responds to Cancel button.
void setWidthNumber(int number)
Sets the number of new plots horizontally.
int getWidthNumber() const
Returns the number of new plots horizontally.
bool printerBounds()
Sets the if the printer margin/bounds should be visible on the canvas or not.
bool getAddSelected() const
Returns true if added plots should be selected.
hippodraw::CanvasSettings class interface
QRadioButton * portraitRadioButton
QRadioButton * m_invisibleMarginRadioButton
QRadioButton * m_visibleMarginRadioButton
int getHeightNumber() const
Returns the number of new plots vertically.
bool ignorePrinterMargin() const
Returns true if printer margin should be ignored when inserting new plots.
QPrinter::Orientation orientation()
Gets the orientation of the canvas which can be Portrait or Landscape.
The base class for the CanvasSettings class.