Subversion Repositories Scribus

Rev

Rev 693 | Rev 735 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
693 fschmid 1
#ifndef PREFSDIALOGBASE_H
2
#define PREFSDIALOGBASE_H
3
 
4
#include <qvariant.h>
5
#include <qdialog.h>
715 fschmid 6
#include <qiconview.h>
7
#include <qmap.h>
693 fschmid 8
#include <qwidgetstack.h>
9
#include <qwidget.h>
10
 
11
class QVBoxLayout;
12
class QHBoxLayout;
13
class QGridLayout;
14
class QSpacerItem;
15
class QPushButton;
16
 
17
class PrefsDialogBase : public QDialog
18
{
19
        Q_OBJECT
20
 
21
public:
22
        PrefsDialogBase( QWidget* parent = 0 );
23
        ~PrefsDialogBase() {};
715 fschmid 24
        void addItem(QString name, QPixmap icon, QWidget *tab);
693 fschmid 25
        QWidgetStack* prefsWidgets;
26
        QPushButton* buttonOk;
27
        QPushButton* buttonCancel;
28
 
715 fschmid 29
private:
30
        QIconView* prefsSelection;
31
        QMap<QIconViewItem*, int> itemMap;
32
        int counter;
33
 
34
private slots:
35
        void itemSelected(QIconViewItem* ic);
36
 
693 fschmid 37
protected:
38
        QVBoxLayout* prefsLayout;
39
        QHBoxLayout* layout3;
40
        QHBoxLayout* layout4;
41
 
42
protected slots:
43
        virtual void languageChange();
44
 
45
};
46
 
47
#endif