home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / tabdocument.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-12  |  2.7 KB  |  113 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef TABDOCUMENT_H
  8. #define TABDOCUMENT_H
  9.  
  10. #include <QWidget>
  11. class QGridLayout;
  12. class QHBoxLayout;
  13. class QVBoxLayout;
  14. class QGroupBox;
  15. class QComboBox;
  16. class QCheckBox;
  17. class QSpinBox;
  18. class QLabel;
  19.  
  20. #include "scribusapi.h"
  21.  
  22. class ScrSpinBox;
  23. class PageLayouts;
  24. class MarginWidget;
  25. class ScribusDoc;
  26.  
  27. /*! \brief Document panel for preferences dialog.
  28. This class is inherited from UI base class.
  29. \author Petr Vanek <petr@scribus.info>
  30. */
  31. class SCRIBUS_API TabDocument : public QWidget
  32. {
  33.     Q_OBJECT
  34.  
  35. public:
  36.     TabDocument(QWidget* parent = 0, const char* name = 0, const bool reform = false);
  37.     ~TabDocument(){};
  38.     void restoreDefaults(struct ApplicationPrefs *prefsData);
  39.     void restoreDefaults(ScribusDoc *prefsData);
  40.     void unitChange();
  41.     //! \brief Hide non-needed GUI for ReformDoc
  42.     void hideReform();
  43.     ScrSpinBox* pageWidth;
  44.     ScrSpinBox* pageHeight;
  45.     PageLayouts* docLayout;
  46.     MarginWidget* marginGroup;
  47.     QGroupBox* GroupSize;
  48.     QComboBox* pageSizeComboBox;
  49.     QComboBox* pageOrientationComboBox;
  50.     int choosenLayout;
  51.     double pageW;
  52.     double pageH;
  53.     QString prefsPageSizeName;
  54.     QComboBox* unitCombo;
  55.     QGroupBox* GroupAS;
  56.     QSpinBox* ASTime;
  57.     QGroupBox* urGroup;
  58.     QSpinBox* urSpinBox;
  59.     // reform widgets
  60.     QCheckBox* sizeAllPages;
  61.     QCheckBox* sizeAllMasterPages;
  62. private:
  63.     double unitRatio;
  64. private slots:
  65.     /*!
  66.     \author Franz Schmid
  67.     \brief Preferences (Document / Page Size), sets Page width values
  68.     \param v Width value
  69.      */
  70.     void setPageWidth(double v);
  71.     /*!
  72.     \author Franz Schmid
  73.     \brief Preferences (Document / Page Size), sets Page height values
  74.     \param v Height value
  75.      */
  76.     void setPageHeight(double v);
  77.     /*!
  78.     \author Franz Schmid
  79.     \brief Preferences (Document / Page Size), sets Page orientation value and page dimensions
  80.     \param ori Orientation value
  81.      */
  82.     void setOrien(int ori);
  83.     /*!
  84.     \author Franz Schmid
  85.     \brief Preferences (Document / Page Size), sets Page size values. Connects signals for setting page dimensions.
  86.     \param gr Standard page size value (eg A4)
  87.      */
  88.     void setSize(const QString & gr);
  89.     void setPageSize();
  90.     void slotUndo(bool isEnabled);
  91.  
  92. protected:
  93.     QLabel* GZText1;
  94.     QLabel* GZText2;
  95.     QLabel* GZText3;
  96.     QLabel* GZText4;
  97.     QLabel* unitComboText;
  98.     QLabel* ASText;
  99.     QLabel* urLabel;
  100.     QLabel* sizePages;
  101.     QHBoxLayout* sizePagesLayout;
  102.     QHBoxLayout* tabLayout_7;
  103.     QVBoxLayout* Layout21;
  104.     QHBoxLayout* dsLayout4p;
  105.     QVBoxLayout* dsLayout4pv;
  106.     QVBoxLayout* GroupSizeLayout;
  107.     QGridLayout* Layout6;
  108.     QHBoxLayout* Layout5_2;
  109.     QHBoxLayout* GroupASLayout;
  110. };
  111.  
  112. #endif
  113.