#include <CanvasSettings.h>


Public Types | |
Public Member Functions | |
| accept () | |
| CanvasSettings (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags fl=0) | |
| The constructor. | |
| done (int r) | |
| enum {Rejected, Accepted} | |
| exec () | |
| extension () const | |
| bool | getAddSelected () const |
Returns true if added plots should be selected. | |
| int | getHeightNumber () const |
| Returns the number of new plots vertically. | |
| int | getWidthNumber () const |
| Returns the number of new plots horizontally. | |
| bool | ignorePrinterMargin () const |
| Returns true if printer margin should be ignored when inserting new plots. | |
| isModal () const | |
| isSizeGripEnabled () const | |
| orientation () const | |
| QPrinter::Orientation | orientation () |
| Gets the orientation of the canvas which can be Portrait or Landscape. | |
| bool | printerBounds () |
| Sets the if the printer margin/bounds should be visible on the canvas or not. | |
| prop -whether the size grip is enabled | |
| prop -whether show() should pop up the dialog as modal or modeless | |
| reject () | |
| result () const | |
| void | setAddSelected (bool yes) |
| Sets the check box of the state of add plots being selected. | |
| setExtension (QWidget *extension) | |
| void | setHeightNumber (int number) |
| Sets the number of new plots vertically. | |
| void | setIgnorePrinterMargin (bool yes) |
| Sets the status of the ignore printer margins check box. | |
| setModal (bool modal) | |
| setOrientation (Orientation orientation) | |
| void | setOrientation (QPrinter::Orientation orientation) |
| Sets the orientation of the canvas which can be Portrait or Landscape. | |
| void | setPrinterBounds (bool flag) |
| Gets the flag if the printer margin/bounds should be visible on the canvas or not. | |
| setResult (int i) | |
| setSizeGripEnabled (bool) | |
| void | setWidthNumber (int number) |
| Sets the number of new plots horizontally. | |
| show () | |
| showExtension (bool showIt) | |
Public Attributes | |
| QButtonGroup * | buttonGroup2 |
| QButtonGroup * | buttonGroup4 |
| QButtonGroup * | buttonGroup7 |
| QGroupBox * | groupBox1 |
| QCheckBox * | ignore_margin |
| QRadioButton * | landscapeRadioButton |
| QRadioButton * | m_add_selected |
| QPushButton * | m_cancel |
| QSpinBox * | m_h_spin |
| QRadioButton * | m_invisibleMarginRadioButton |
| QPushButton * | m_save_retile |
| QSpinBox * | m_v_spin |
| QRadioButton * | m_visibleMarginRadioButton |
| QRadioButton * | portraitRadioButton |
| QRadioButton * | radioButton7 |
| QPushButton * | retile |
| QLabel * | textLabel1 |
| QLabel * | textLabel2 |
Protected Slots | |
| virtual void | languageChange () |
Protected Member Functions | |
| virtual void | cancel () |
| Responds to Cancel button. | |
| virtual void | portraitRadioButton_toggled (bool) |
| Responds portrait is clicked. | |
| virtual void | retile_clicked () |
| Responds to re-tile button clicked. | |
| virtual void | saveRetile () |
| Responds to Save & Retile button. | |
Private Member Functions | |
| void | orientationChanged () |
| Changes the plot matrix orientation. | |
This class manages the CanvasView settings dialog. It looks like this ...
The canvas settings dialog.
Definition at line 40 of file CanvasSettings.h.
Return codes from running the CanvasSettings dialog.
| Accepted | Accept new setting for new plots. |
| Rejected | Reject changes. |
| AcceptedAndRetile | Accept new setting and retile. |
| Retile | Retile only. |
Definition at line 52 of file CanvasSettings.h.
| CanvasSettings | ( | QWidget * | parent = 0, |
|
| const char * | name = 0, |
|||
| bool | modal = false, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
| void cancel | ( | ) | [protected, virtual] |
Responds to Cancel button.
Implements CanvasSettingsBase.
Definition at line 39 of file CanvasSettings.cxx.
References QDialog::done(), and CanvasSettings::Rejected.
| bool getAddSelected | ( | ) | const |
Returns true if added plots should be selected.
Definition at line 143 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_add_selected.
| int getHeightNumber | ( | ) | const |
Returns the number of new plots vertically.
Definition at line 74 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_v_spin.
Referenced by CanvasSettings::orientationChanged().
| int getWidthNumber | ( | ) | const |
Returns the number of new plots horizontally.
Definition at line 60 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_h_spin.
Referenced by CanvasSettings::orientationChanged().
| bool ignorePrinterMargin | ( | ) | const |
Returns true if printer margin should be ignored when inserting new plots.
Definition at line 157 of file CanvasSettings.cxx.
References CanvasSettingsBase::ignore_margin.
| void languageChange | ( | ) | [protected, virtual, slot, inherited] |
Definition at line 126 of file CanvasSettingsBase.cpp.
References QToolTip::add(), CanvasSettingsBase::buttonGroup2, CanvasSettingsBase::buttonGroup4, CanvasSettingsBase::buttonGroup7, CanvasSettingsBase::groupBox1, CanvasSettingsBase::ignore_margin, CanvasSettingsBase::landscapeRadioButton, CanvasSettingsBase::m_add_selected, CanvasSettingsBase::m_cancel, CanvasSettingsBase::m_h_spin, CanvasSettingsBase::m_invisibleMarginRadioButton, CanvasSettingsBase::m_save_retile, CanvasSettingsBase::m_v_spin, CanvasSettingsBase::m_visibleMarginRadioButton, CanvasSettingsBase::portraitRadioButton, CanvasSettingsBase::radioButton7, CanvasSettingsBase::retile, QCheckBox::setText(), QPushButton::setText(), QLabel::setText(), QRadioButton::setText(), QGroupBox::setTitle(), CanvasSettingsBase::textLabel1, and CanvasSettingsBase::textLabel2.
Referenced by CanvasSettingsBase::CanvasSettingsBase().
| QPrinter::Orientation orientation | ( | ) |
Gets the orientation of the canvas which can be Portrait or Landscape.
Definition at line 106 of file CanvasSettings.cxx.
References CanvasSettingsBase::portraitRadioButton.
| void orientationChanged | ( | ) | [private] |
Changes the plot matrix orientation.
Definition at line 95 of file CanvasSettings.cxx.
References CanvasSettings::getHeightNumber(), CanvasSettings::getWidthNumber(), CanvasSettings::setHeightNumber(), and CanvasSettings::setWidthNumber().
Referenced by CanvasSettings::portraitRadioButton_toggled().
| void portraitRadioButton_toggled | ( | bool | ) | [protected, virtual] |
Responds portrait is clicked.
Implements CanvasSettingsBase.
Definition at line 88 of file CanvasSettings.cxx.
References CanvasSettings::orientationChanged().
| bool printerBounds | ( | ) |
Sets the if the printer margin/bounds should be visible on the canvas or not.
Definition at line 128 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_visibleMarginRadioButton.
| void retile_clicked | ( | ) | [protected, virtual] |
Responds to re-tile button clicked.
Implements CanvasSettingsBase.
Definition at line 53 of file CanvasSettings.cxx.
References QDialog::done(), and CanvasSettings::Retile.
| void saveRetile | ( | ) | [protected, virtual] |
Responds to Save & Retile button.
Implements CanvasSettingsBase.
Definition at line 46 of file CanvasSettings.cxx.
References CanvasSettings::AcceptedAndRetile, and QDialog::done().
| void setAddSelected | ( | bool | yes | ) |
Sets the check box of the state of add plots being selected.
Definition at line 150 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_add_selected.
| void setHeightNumber | ( | int | number | ) |
Sets the number of new plots vertically.
Definition at line 81 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_v_spin.
Referenced by CanvasSettings::orientationChanged().
| void setIgnorePrinterMargin | ( | bool | yes | ) |
Sets the status of the ignore printer margins check box.
Definition at line 164 of file CanvasSettings.cxx.
References CanvasSettingsBase::ignore_margin.
| void setOrientation | ( | QPrinter::Orientation | orientation | ) |
Sets the orientation of the canvas which can be Portrait or Landscape.
Definition at line 118 of file CanvasSettings.cxx.
References CanvasSettingsBase::landscapeRadioButton, and CanvasSettingsBase::portraitRadioButton.
| void setPrinterBounds | ( | bool | flag | ) |
Gets the flag if the printer margin/bounds should be visible on the canvas or not.
Definition at line 133 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_invisibleMarginRadioButton, and CanvasSettingsBase::m_visibleMarginRadioButton.
| void setWidthNumber | ( | int | number | ) |
Sets the number of new plots horizontally.
Definition at line 67 of file CanvasSettings.cxx.
References CanvasSettingsBase::m_h_spin.
Referenced by CanvasSettings::orientationChanged().
QButtonGroup* buttonGroup2 [inherited] |
Definition at line 46 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QButtonGroup* buttonGroup4 [inherited] |
Definition at line 49 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QButtonGroup* buttonGroup7 [inherited] |
Definition at line 35 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
Definition at line 38 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QCheckBox* ignore_margin [inherited] |
Definition at line 52 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettings::ignorePrinterMargin(), CanvasSettingsBase::languageChange(), and CanvasSettings::setIgnorePrinterMargin().
QRadioButton* landscapeRadioButton [inherited] |
Definition at line 36 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettingsBase::languageChange(), and CanvasSettings::setOrientation().
QRadioButton* m_add_selected [inherited] |
Definition at line 51 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettings::getAddSelected(), CanvasSettingsBase::languageChange(), and CanvasSettings::setAddSelected().
QPushButton* m_cancel [inherited] |
Definition at line 45 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
Definition at line 41 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettings::getWidthNumber(), CanvasSettingsBase::languageChange(), and CanvasSettings::setWidthNumber().
QRadioButton* m_invisibleMarginRadioButton [inherited] |
Definition at line 48 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettingsBase::languageChange(), and CanvasSettings::setPrinterBounds().
QPushButton* m_save_retile [inherited] |
Definition at line 44 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
Definition at line 40 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettings::getHeightNumber(), CanvasSettingsBase::languageChange(), and CanvasSettings::setHeightNumber().
QRadioButton* m_visibleMarginRadioButton [inherited] |
Definition at line 47 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettingsBase::languageChange(), CanvasSettings::printerBounds(), and CanvasSettings::setPrinterBounds().
QRadioButton* portraitRadioButton [inherited] |
Definition at line 37 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), CanvasSettingsBase::languageChange(), CanvasSettings::orientation(), and CanvasSettings::setOrientation().
QRadioButton* radioButton7 [inherited] |
Definition at line 50 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QPushButton* retile [inherited] |
Definition at line 43 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QLabel* textLabel1 [inherited] |
Definition at line 42 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().
QLabel* textLabel2 [inherited] |
Definition at line 39 of file CanvasSettingsBase.h.
Referenced by CanvasSettingsBase::CanvasSettingsBase(), and CanvasSettingsBase::languageChange().