CanvasSettings.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00014 #ifndef CanvasSettings_H
00015 #define CanvasSettings_H
00016 
00017 #include <qglobal.h> // for version
00018 // #if QT_VERSION < 0x040000
00019 #include "qtui/CanvasSettingsBase.h"
00020 
00021 // #else
00022 // #include "CanvasSettingsUI.h"
00023 // #endif
00024 
00025 #include <qprinter.h>
00026 
00027 namespace hippodraw {
00028 
00039 // #if QT_VERSION < 0x040000
00040 class CanvasSettings : public CanvasSettingsBase
00041 {
00042 // #else
00043 // class CanvasSettings : public QDialog, private Ui::CanvasSettingsUI
00044 // {
00045 //   Q_OBJECT
00046 // #endif
00047 
00048 public:
00049 
00052   enum Type { Accepted, 
00053               Rejected, 
00054               AcceptedAndRetile, 
00055               Retile 
00056   };
00057 
00058 private:
00059 
00062   void orientationChanged ();
00063 
00064 
00065 #if QT_VERSION < 0x040000
00066 protected:
00067 #else
00068 protected slots:
00069 #endif
00070 
00073   virtual void cancel();
00074 
00077   virtual void saveRetile ();
00078 
00081   virtual void portraitRadioButton_toggled ( bool );
00082 
00085   virtual void retile_clicked();
00086   
00087 public:
00088 
00091     CanvasSettings ( QWidget* parent = 0, 
00092                      const char* name = 0, 
00093                      bool modal = false, 
00094                      Qt::WFlags fl = 0 );
00095 
00098   int getWidthNumber () const;
00099 
00102   void setWidthNumber ( int number );
00103 
00106   int getHeightNumber () const;
00107 
00110   void setHeightNumber ( int number );
00111 
00114   QPrinter::Orientation orientation();
00115   
00118   void setOrientation( QPrinter::Orientation orientation );
00119 
00122   bool printerBounds();
00123 
00126   void setPrinterBounds( bool flag );
00127 
00130   bool getAddSelected () const;
00131 
00134   void setAddSelected ( bool yes );
00135 
00139   bool ignorePrinterMargin () const;
00140 
00143   void setIgnorePrinterMargin ( bool yes );
00144 
00145 };
00146 
00147 } // namespace hippodraw
00148 
00149 #endif // CanvasSettings_H

Generated for HippoDraw Class Library by doxygen