home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / prefsdialogbase.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-10-07  |  1.6 KB  |  78 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PREFSDIALOGBASE_H
  8. #define PREFSDIALOGBASE_H
  9.  
  10. #include <QDialog>
  11. #include <QListWidget>
  12. #include <QMap>
  13.  
  14. class QEvent;
  15. class QHBoxLayout;
  16. class QLabel;
  17. class QListWidgetItem;
  18. class QPushButton;
  19. class QStackedWidget;
  20. class QVBoxLayout;
  21.  
  22. #include "scribusapi.h"
  23.  
  24.  
  25. class SCRIBUS_API OptionListWidget : public QListWidget
  26. {
  27.     Q_OBJECT
  28.  
  29. public:
  30.     OptionListWidget(QWidget* parent);
  31.     ~OptionListWidget() {};
  32.     void arrangeIcons();
  33. };
  34.  
  35. class SCRIBUS_API PrefsDialogBase : public QDialog
  36. {
  37.     Q_OBJECT
  38.  
  39. public:
  40.     PrefsDialogBase( QWidget* parent = 0 );
  41.     ~PrefsDialogBase() {};
  42.     
  43.     virtual void changeEvent(QEvent *e);
  44.     
  45.     int addItem(QString name, QPixmap icon, QWidget *tab);
  46. //    void arrangeIcons();
  47.     QStackedWidget* prefsWidgets;
  48.     QPushButton* backToDefaults;
  49.     //! \brief Apply changes but don't close the dialog.
  50.     QPushButton* applyChangesButton;
  51.     QPushButton* buttonOk;
  52.     QPushButton* buttonCancel;
  53.     QPushButton* saveButton;
  54.     OptionListWidget* prefsSelection;
  55.     QMap<QListWidgetItem*, int> itemMap;
  56.     int counter;
  57.  
  58. public slots:
  59.     void itemSelected(QListWidgetItem* ic);
  60.     void newItemSelected();
  61.  
  62. signals:
  63.     void aboutToShow(QWidget *);
  64.  
  65. protected:
  66.     QVBoxLayout* prefsLayout;
  67.     QHBoxLayout* layout3;
  68.     QHBoxLayout* layout4;
  69.     QVBoxLayout* layout5;
  70.     QLabel* tabNameLabel;
  71.  
  72. protected slots:
  73.     virtual void languageChange();
  74.     virtual void saveButton_clicked();
  75. };
  76.  
  77. #endif
  78.