CanvasSettings.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef CanvasSettings_H
15 #define CanvasSettings_H
16 
17 #include <qglobal.h> // for version
18 // #if QT_VERSION < 0x040000
20 
21 // #else
22 // #include "CanvasSettingsUI.h"
23 // #endif
24 
25 #include <qprinter.h>
26 
27 namespace hippodraw {
28 
39 // #if QT_VERSION < 0x040000
41 {
42 // #else
43 // class CanvasSettings : public QDialog, private Ui::CanvasSettingsUI
44 // {
45 // Q_OBJECT
46 // #endif
47 
48 public:
49 
52  enum Type { Accepted,
56  };
57 
58 private:
59 
62  void orientationChanged ();
63 
64 
65 #if QT_VERSION < 0x040000
66 protected:
67 #else
68 protected slots:
69 #endif
70 
73  virtual void cancel();
74 
77  virtual void saveRetile ();
78 
81  virtual void portraitRadioButton_toggled ( bool );
82 
85  virtual void retile_clicked();
86 
87 public:
88 
91  CanvasSettings ( QWidget* parent = 0,
92  const char* name = 0,
93  bool modal = false,
94  Qt::WFlags fl = 0 );
95 
98  int getWidthNumber () const;
99 
102  void setWidthNumber ( int number );
103 
106  int getHeightNumber () const;
107 
110  void setHeightNumber ( int number );
111 
114  QPrinter::Orientation orientation();
115 
118  void setOrientation( QPrinter::Orientation orientation );
119 
122  bool printerBounds();
123 
126  void setPrinterBounds( bool flag );
127 
130  bool getAddSelected () const;
131 
134  void setAddSelected ( bool yes );
135 
139  bool ignorePrinterMargin () const;
140 
143  void setIgnorePrinterMargin ( bool yes );
144 
145 };
146 
147 } // namespace hippodraw
148 
149 #endif // CanvasSettings_H
CanvasSettings(QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags fl=0)
The constructor.
void setHeightNumber(int number)
Sets the number of new plots vertically.
bool ignorePrinterMargin() const
Returns true if printer margin should be ignored when inserting new plots.
virtual void retile_clicked()
Responds to re-tile button clicked.
void setPrinterBounds(bool flag)
Gets the flag if the printer margin/bounds should be visible on the canvas or not.
void setIgnorePrinterMargin(bool yes)
Sets the status of the ignore printer margins check box.
void setOrientation(QPrinter::Orientation orientation)
Sets the orientation of the canvas which can be Portrait or Landscape.
virtual void portraitRadioButton_toggled(bool)
Responds portrait is clicked.
void setAddSelected(bool yes)
Sets the check box of the state of add plots being selected.
This class manages the CanvasView settings dialog.
bool printerBounds()
Sets the if the printer margin/bounds should be visible on the canvas or not.
Namespace for HippoDraw.
Definition: AxesType.cxx:21
int getWidthNumber() const
Returns the number of new plots horizontally.
Accept new setting and retile.
Accept new setting for new plots.
void orientationChanged()
Changes the plot matrix orientation.
virtual void saveRetile()
Responds to Save & Retile button.
int getHeightNumber() const
Returns the number of new plots vertically.
void setWidthNumber(int number)
Sets the number of new plots horizontally.
bool getAddSelected() const
Returns true if added plots should be selected.
virtual void cancel()
Responds to Cancel button.
QPrinter::Orientation orientation()
Gets the orientation of the canvas which can be Portrait or Landscape.
Type
Return codes from running the CanvasSettings dialog.

Generated for HippoDraw Class Library by doxygen