Back to index

scribus-ng  1.3.4.dfsg+svn20071115
satdialog.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 /***************************************************************************
00008  *   Riku Leino, tsoots@gmail.com                                          *
00009  ***************************************************************************/
00010 #ifndef SATDIALOG_H
00011 #define SATDIALOG_H
00012 
00013 #include <vector>
00014 #include <utility>
00015 #include <qfile.h>
00016 #include <qframe.h>
00017 #include <qdir.h>
00018 #include <qtextstream.h>
00019 #include <qcombobox.h>
00020 #include <qstring.h>
00021 #include <qstringlist.h>
00022 #include <qlabel.h>
00023 #include <qlayout.h>
00024 #include <qpushbutton.h>
00025 #include <qdialog.h>
00026 #include <qlineedit.h>
00027 #include <qtextedit.h>
00028 #include <qwidget.h>
00029 #include <prefscontext.h>
00030 
00031 typedef std::pair<QString*,QString*> Pair;
00032 
00033 class satdialog : public QDialog
00034 {
00035        Q_OBJECT
00036 
00037 public:
00038        satdialog(QWidget* parent, QString tmplName = "", int pageW = 0, int pageH = 0);
00039        ~satdialog();
00040 
00041        std::vector<Pair*> cats;
00042        QLineEdit* nameEdit;
00043        QComboBox* catsCombo;
00044        QLineEdit* psizeEdit;
00045        QLineEdit* colorsEdit;
00046        QTextEdit* descrEdit;
00047        QTextEdit* usageEdit;
00048        QLineEdit* authorEdit;
00049        QLineEdit* emailEdit;
00050 private slots:
00051        void detailClicked();
00052 private:
00053        PrefsContext* prefs;
00054        QLabel* nameLabel;
00055        QLabel* psizeLabel;
00056        QLabel* colorsLabel;
00057        QLabel* descrLabel;
00058        QLabel* usageLabel;
00059        QLabel* authorLabel;
00060        QLabel* emailLabel;
00061        QLabel* catsLabel;
00062        QPushButton* okButton;
00063        QPushButton* detailButton;
00064        QWidget* center;
00065        QWidget* middle;
00066        QString author;
00067        QString email;
00068        bool isFullDetail;
00069        void fullDetail();
00070        void minimumDetail();
00071        void readPrefs();
00072        void writePrefs();
00073        void setupCategories();
00074        void setupPageSize(int w, int h);
00075 };
00076 
00077 #endif
00078