Back to index

scribus-ng  1.3.4.dfsg+svn20071115
prefsdialogbase.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 PREFSDIALOGBASE_H
00008 #define PREFSDIALOGBASE_H
00009 
00010 #include <qvariant.h>
00011 #include <qdialog.h>
00012 #include <qiconview.h>
00013 #include <qmap.h>
00014 #include <qwidgetstack.h>
00015 #include <qwidget.h>
00016 
00017 #include "scribusapi.h"
00018 
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class QGridLayout;
00022 class QSpacerItem;
00023 class QPushButton;
00024 class QLabel;
00025 
00026 class SCRIBUS_API PrefsDialogBase : public QDialog
00027 {
00028        Q_OBJECT
00029 
00030 public:
00031        PrefsDialogBase( QWidget* parent = 0 );
00032        ~PrefsDialogBase() {};
00033        int addItem(QString name, QPixmap icon, QWidget *tab);
00034        void arrangeIcons();
00035        QWidgetStack* prefsWidgets;
00036        QPushButton* backToDefaults;
00038        QPushButton* applyChangesButton;
00039        QPushButton* buttonOk;
00040        QPushButton* buttonCancel;
00041        QPushButton* saveButton;
00042        QIconView* prefsSelection;
00043        QMap<QIconViewItem*, int> itemMap;
00044        int counter;
00045 
00046 public slots:
00047        void itemSelected(QIconViewItem* ic);
00048 
00049 protected:
00050        QVBoxLayout* prefsLayout;
00051        QHBoxLayout* layout3;
00052        QHBoxLayout* layout4;
00053        QVBoxLayout* layout5;
00054        QLabel* tabNameLabel;
00055 
00056 protected slots:
00057        virtual void languageChange();
00058        virtual void saveButton_clicked();
00059 };
00060 
00061 #endif