12 #include <QDragEnterEvent>
13 #include <QDragLeaveEvent>
14 #include <QDragMoveEvent>
15 #include <QListWidget>
21 class QListWidgetItem;
27 #include "scribusapi.h"
28 #include "scribusstructs.h"
30 #include "ui/customfdialog.h"
31 #include "ui/nftwidget.h"
47 QSize minimumSizeHint()
const;
53 class SCRIBUS_API
NewDoc :
public QDialog
67 NewDoc( QWidget* parent,
const QStringList& recentDocs,
bool startUp =
false, QString lang =
"");
69 void createNewDocPage();
70 void createNewFromTempPage();
71 void createOpenDocPage();
72 void createRecentDocPage();
73 void setSize(QString gr);
74 QTabWidget* tabWidget;
79 QGroupBox* pageSizeGroupBox;
81 QGroupBox* optionsGroupBox;
88 QLabel* pageCountLabel;
90 QLabel* unitOfMeasureLabel;
91 QComboBox* pageSizeComboBox;
92 QComboBox* pageOrientationComboBox;
93 QComboBox* unitOfMeasureComboBox;
94 QCheckBox* startUpDialog;
95 QCheckBox* autoTextFrame;
96 QCheckBox* startDocSetup;
98 QSpinBox* numberOfCols;
99 QSpinBox* pageCountSpinBox;
102 QFrame* openDocFrame;
103 QFileDialog *fileDialog;
104 QFrame* newFromTempFrame;
106 QFrame* recentDocFrame;
107 QListWidget* recentDocListBox;
108 QPushButton* OKButton;
109 QPushButton* CancelB;
111 bool onStartup(
void)
const {
return m_onStartup;}
112 int tabSelected(
void)
const {
return m_tabSelected;}
113 QString selectedFile(
void)
const {
return m_selectedFile; }
115 int unitIndex(
void)
const {
return m_unitIndex;}
116 QString unitSuffix(
void)
const {
return m_unitSuffix;}
117 double unitRatio(
void)
const {
return m_unitRatio; }
119 int orientation(
void)
const {
return m_orientation;}
120 int precision(
void)
const {
return m_precision;}
121 int choosenLayout(
void)
const {
return m_choosenLayout;}
122 double pageWidth(
void)
const {
return m_pageWidth;}
123 double pageHeight(
void)
const {
return m_pageHeight;}
124 double distance(
void)
const {
return m_distance;}
125 double bleedBottom(
void)
const {
return m_bleedBottom;}
126 double bleedTop(
void)
const {
return m_bleedTop;}
127 double bleedLeft(
void)
const {
return m_bleedLeft;}
128 double bleedRight(
void)
const {
return m_bleedRight;}
131 void setHeight(
double v);
132 void setWidth(
double v);
133 void selectItem(uint nr);
134 void itemSelected(QListWidgetItem* ic);
135 void handleAutoFrame();
136 void setDistance(
double v);
139 void setOrientation(
int ori);
140 void setPageSize(
const QString &);
141 void setDocLayout(
int layout);
145 void recentDocListBox_doubleClicked();
147 void adjustTitles(
int tab);
148 void locationDropped(QString fileUrl);
149 void gotoParentDirectory();
150 void gotoSelectedDirectory();
151 void gotoDesktopDirectory();
152 void gotoHomeDirectory();
155 QVBoxLayout* TabbedNewDocLayout;
156 QHBoxLayout* Layout1;
157 QGridLayout* NewDocLayout;
158 QGridLayout* pageSizeGroupBoxLayout;
159 QFormLayout* optionsGroupBoxLayout;
160 QVBoxLayout* openDocLayout;
161 QVBoxLayout* recentDocLayout;
162 QVBoxLayout *verticalLayout;
164 QStringList recentDocList;
173 QString m_unitSuffix;
174 QString m_selectedFile;
178 double m_bleedBottom;
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Coord distance(Point const &a, Point const &b)
Definition: point.h:205
Manage Scribus preferences here, and here alone Start to move the preferences out of scribus...
Definition: prefsmanager.h:43