Back to index

scribus-ng  1.3.4.dfsg+svn20071115
newfile.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef NEWDOC_H
00008 #define NEWDOC_H
00009 
00010 #include <qdialog.h>
00011 #include <qbuttongroup.h>
00012 #include <qcheckbox.h>
00013 #include <qcombobox.h>
00014 #include <qgroupbox.h>
00015 #include <qlabel.h>
00016 #include <qpushbutton.h>
00017 #include <qradiobutton.h>
00018 #include <qspinbox.h>
00019 #include <qstringlist.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qtabwidget.h>
00023 #include <qframe.h>
00024 #include <qlistbox.h>
00025 
00026 #include "scribusapi.h"
00027 #include "scribusstructs.h"
00028 
00029 #include "customfdialog.h"
00030 
00031 class PrefsManager;
00032 class MarginWidget;
00033 class PageLayouts;
00034 class MSpinBox;
00035 class CustomFDialog;
00036 class ScComboBox;
00037 class QIconView;
00038 class QIconViewItem;
00039 
00040 
00041 class SCRIBUS_API NewDoc : public QDialog
00042 {
00043        Q_OBJECT
00044 
00045 public:
00046        NewDoc( QWidget* parent, const QStringList& recentDocs, bool startUp = false );
00047        ~NewDoc() {};
00048        void createNewDocPage();
00049        void createOpenDocPage();
00050        void createRecentDocPage();
00051        void setSize(QString gr);
00052 
00053        QTabWidget* tabWidget;
00054        QFrame* newDocFrame;
00055        QIconView* layoutsView;
00056        QLabel* layoutLabel1;
00057        ScComboBox* firstPage;
00058        QGroupBox* pageSizeGroupBox;
00059        MarginWidget* marginGroup;
00060        QGroupBox* optionsGroupBox;
00061        QLabel* TextLabel1;
00062        QLabel* TextLabel2;
00063        QLabel* TextLabel3;
00064        QLabel* TextLabel4;
00065        QLabel* TextLabel1_2;
00066        QLabel* TextLabel1_3;
00067        QLabel* pageCountLabel;
00068        QLabel* TextLabel2_2;
00069        QLabel* unitOfMeasureLabel;
00070        QComboBox* pageSizeComboBox;
00071        QComboBox* pageOrientationComboBox;
00072        QComboBox* unitOfMeasureComboBox;
00073        QCheckBox* startUpDialog;
00074        QCheckBox* autoTextFrame;
00075        QCheckBox* startDocSetup;
00076        MSpinBox* Distance;
00077        QSpinBox* numberOfCols;
00078        QSpinBox* pageCountSpinBox;
00079        MSpinBox* widthMSpinBox;
00080        MSpinBox* heightMSpinBox;
00081        QFrame* openDocFrame;
00082        CustomFDialog *fileDialog;
00083        QFrame* recentDocFrame;
00084        QListBox* recentDocListBox;
00085        QPushButton* OKButton;
00086        QPushButton* CancelB;
00087        double unitRatio;
00088        int Orient;
00089        int precision;
00090        int choosenLayout;
00091        double pageWidth;
00092        double pageHeight;
00093        double Dist;
00094        QString unitSuffix;
00095        int unitIndex;
00096        int tabSelected;
00097        bool onStartup;
00098        double bleedBottom;
00099        double bleedTop;
00100        double bleedLeft;
00101        double bleedRight;
00102 
00103 public slots:
00104        void setHeight(int v);
00105        void setWidth(int v);
00106        void selectItem(uint nr);
00107        void itemSelected(QIconViewItem* ic);
00108        void handleAutoFrame();
00109        void setDist(int v);
00110        void setUnit(int u);
00111        void ExitOK();
00112        void setOrien(int ori);
00113        void setPGsize(const QString &);
00114        void setDS(int layout);
00119        void recentDocListBox_doubleClicked(int index);
00120        void openFile(const QString &);
00121 
00122 protected:
00123        QVBoxLayout* TabbedNewDocLayout;
00124        QGridLayout* Layout4;
00125        QGridLayout* NewDocLayout;
00126        QHBoxLayout* Layout9;
00127        QGridLayout* pageSizeGroupBoxLayout;
00128        QHBoxLayout* Layout5;
00129        QHBoxLayout* Layout10;
00130        QGridLayout* optionsGroupBoxLayout;
00131        QHBoxLayout* Layout1;
00132        QVBoxLayout* recentDocLayout;
00133        PrefsManager* prefsManager;
00134        QStringList recentDocList;
00135 };
00136 
00137 #endif // NEWDOC_H