~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/newfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2009-02-09 09:25:18 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090209092518-iqsxmh3pjspgrdyd
Tags: 1.3.5.dfsg~svn20090208-2
debian/control: Use "type-handling -n arm,armel,armeb any" to generate the
list of architectures to build on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#ifndef NEWDOC_H
8
8
#define NEWDOC_H
9
9
 
10
 
#include <qdialog.h>
11
 
#include <qbuttongroup.h>
12
 
#include <qcheckbox.h>
13
 
#include <qcombobox.h>
14
 
#include <qgroupbox.h>
15
 
#include <qlabel.h>
16
 
#include <qpushbutton.h>
17
 
#include <qradiobutton.h>
18
 
#include <qspinbox.h>
19
 
#include <qstringlist.h>
20
 
#include <qlayout.h>
21
 
#include <qtooltip.h>
22
 
#include <qtabwidget.h>
23
 
#include <qframe.h>
24
 
#include <qlistbox.h>
25
 
 
 
10
#include <QDialog>
 
11
#include <QListWidget>
 
12
class QFormLayout;
 
13
class QGridLayout;
 
14
class QHBoxLayout;
 
15
class QVBoxLayout;
 
16
class QFrame;
 
17
class QListWidgetItem;
 
18
class QGroupBox;
 
19
class QSpinBox;
 
20
class QLabel;
 
21
class QCheckBox;
 
22
class QPushButton;
26
23
#include "scribusapi.h"
27
24
#include "scribusstructs.h"
28
25
 
31
28
class PrefsManager;
32
29
class MarginWidget;
33
30
class PageLayouts;
34
 
class MSpinBox;
35
 
class CustomFDialog;
 
31
class ScrSpinBox;
36
32
class ScComboBox;
37
 
class QIconView;
38
 
class QIconViewItem;
 
33
#if QT_VERSION  >= 0x040300
 
34
        class QFileDialog;
 
35
#else
 
36
        class CustomFDialog;
 
37
#endif
 
38
 
 
39
class SCRIBUS_API PageLayoutsWidget : public QListWidget
 
40
{
 
41
        Q_OBJECT
 
42
 
 
43
public:
 
44
        PageLayoutsWidget(QWidget* parent);
 
45
        ~PageLayoutsWidget() {};
 
46
        void arrangeIcons();
 
47
        const QSize minimumSizeHint();
 
48
        int maxX;
 
49
        int maxY;
 
50
};
39
51
 
40
52
 
41
53
class SCRIBUS_API NewDoc : public QDialog
52
64
 
53
65
        QTabWidget* tabWidget;
54
66
        QFrame* newDocFrame;
55
 
        QIconView* layoutsView;
 
67
        PageLayoutsWidget* layoutsView;
56
68
        QLabel* layoutLabel1;
57
69
        ScComboBox* firstPage;
58
70
        QGroupBox* pageSizeGroupBox;
73
85
        QCheckBox* startUpDialog;
74
86
        QCheckBox* autoTextFrame;
75
87
        QCheckBox* startDocSetup;
76
 
        MSpinBox* Distance;
 
88
        ScrSpinBox* Distance;
77
89
        QSpinBox* numberOfCols;
78
90
        QSpinBox* pageCountSpinBox;
79
 
        MSpinBox* widthMSpinBox;
80
 
        MSpinBox* heightMSpinBox;
 
91
        ScrSpinBox* widthSpinBox;
 
92
        ScrSpinBox* heightSpinBox;
81
93
        QFrame* openDocFrame;
 
94
#if QT_VERSION  >= 0x040300
 
95
        QFileDialog *fileDialog;
 
96
#else
82
97
        CustomFDialog *fileDialog;
 
98
#endif
83
99
        QFrame* recentDocFrame;
84
 
        QListBox* recentDocListBox;
 
100
        QListWidget* recentDocListBox;
85
101
        QPushButton* OKButton;
86
102
        QPushButton* CancelB;
87
103
        double unitRatio;
92
108
        double pageHeight;
93
109
        double Dist;
94
110
        QString unitSuffix;
 
111
        QString selectedFile;
95
112
        int unitIndex;
96
113
        int tabSelected;
97
114
        bool onStartup;
101
118
        double bleedRight;
102
119
 
103
120
public slots:
104
 
        void setHeight(int v);
105
 
        void setWidth(int v);
 
121
        void setHeight(double v);
 
122
        void setWidth(double v);
106
123
        void selectItem(uint nr);
107
 
        void itemSelected(QIconViewItem* ic);
 
124
        void itemSelected(QListWidgetItem* ic);
108
125
        void handleAutoFrame();
109
 
        void setDist(int v);
 
126
        void setDist(double v);
110
127
        void setUnit(int u);
111
128
        void ExitOK();
112
129
        void setOrien(int ori);
113
130
        void setPGsize(const QString &);
114
131
        void setDS(int layout);
115
132
        /*! Opens document on doubleclick
116
 
        \param index no of the item
117
 
        \author Petr Vanek <petr@yarpen.cz
 
133
        \author Petr Vanek <petr@yarpen.cz>
118
134
        */
119
 
        void recentDocListBox_doubleClicked(int index);
120
 
        void openFile(const QString &);
 
135
        void recentDocListBox_doubleClicked();
 
136
        void openFile();
121
137
 
122
138
protected:
123
139
        QVBoxLayout* TabbedNewDocLayout;
124
 
        QGridLayout* Layout4;
 
140
        QHBoxLayout* Layout1;
125
141
        QGridLayout* NewDocLayout;
126
 
        QHBoxLayout* Layout9;
127
142
        QGridLayout* pageSizeGroupBoxLayout;
128
 
        QHBoxLayout* Layout5;
129
 
        QHBoxLayout* Layout10;
130
 
        QGridLayout* optionsGroupBoxLayout;
131
 
        QHBoxLayout* Layout1;
 
143
        QFormLayout* optionsGroupBoxLayout;
 
144
        QVBoxLayout* openDocLayout;
132
145
        QVBoxLayout* recentDocLayout;
133
146
        PrefsManager* prefsManager;
134
147
        QStringList recentDocList;