Subversion Repositories Scribus

Rev

Rev 14216 | Rev 15021 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13761 cbradney 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
 
8
#ifndef PREFS_DOCUMENTSETUP_H
9
#define PREFS_DOCUMENTSETUP_H
10
 
11
#include "ui_prefs_documentsetupbase.h"
14205 cbradney 12
#include "prefs_pane.h"
13761 cbradney 13
#include "scribusapi.h"
14214 cbradney 14
#include "scribusstructs.h"
13761 cbradney 15
 
14205 cbradney 16
class SCRIBUS_API Prefs_DocumentSetup : public Prefs_Pane, Ui::Prefs_DocumentSetup
13761 cbradney 17
{
18
        Q_OBJECT
19
 
20
        public:
21
                Prefs_DocumentSetup(QWidget* parent=0);
22
                ~Prefs_DocumentSetup();
14205 cbradney 23
                virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
24
                virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
13870 cbradney 25
 
14205 cbradney 26
        public slots:
27
                void languageChange();
14214 cbradney 28
                void pageLayoutChanged(int);
14205 cbradney 29
 
14216 cbradney 30
        private slots:
31
                void setPageWidth(double);
32
                /*!
33
                \author Franz Schmid
34
                \brief Preferences (Document / Page Size), sets Page height values
35
                \param v Height value
36
                 */
37
                void setPageHeight(double);
38
                /*!
39
                \author Franz Schmid
40
                \brief Preferences (Document / Page Size), sets Page orientation value and page dimensions
41
                \param ori Orientation value
42
                 */
43
                void setPageOrientation(int);
44
                /*!
45
                \author Franz Schmid
46
                \brief Preferences (Document / Page Size), sets Page size values. Connects signals for setting page dimensions.
47
                \param gr Standard page size value (eg A4)
48
                 */
49
                void setSize(const QString & gr);
50
                void setPageSize();
14764 cbradney 51
                void slotUndo(bool);
14216 cbradney 52
                void unitChange();
53
 
14205 cbradney 54
        private:
14214 cbradney 55
                void setupPageSets();
14216 cbradney 56
 
57
 
14205 cbradney 58
                double unitRatio;
59
                int choosenLayout;
60
                double pageW;
61
                double pageH;
62
                QString prefsPageSizeName;
14214 cbradney 63
                QList<PageSet> pageSets;
13761 cbradney 64
};
65
 
66
#endif // PREFS_DOCUMENTSETUP_H
14205 cbradney 67