/* * Copyright (c) 2010,2011 - RZ Uni Freiburg * Copyright (c) 2010,2011 - OpenSLX Project * * This program/file is free software distributed under the GPL version 2. * See http://gpl.openslx.org/ * * If you have any feedback please consult http://feedback.openslx.org/ and * send your feedback to feedback@openslx.org * * General information about OpenSLX - libChooser can be found under * http://openslx.org * */ #ifndef DIALOG_H_ #define DIALOG_H_ #include #include class QTextEdit; class QTextBrowser; class QTreeView; class QChooserTreeView; class QPushButton; class QSplitter; class QHBoxLayout; class QVBoxLayout; class QGroupBox; class QSettings; class QSizeGrip; class JavaScriptInterface; class Dialog : public QDialog { Q_OBJECT public: explicit Dialog(QWidget *parent = 0); void setTheme(); void center(); void addItems(const QList entries); private: void createLayout(); QString readStyle(const QString &filename); QVBoxLayout *layout; JavaScriptInterface *jsi; }; #endif /* DIALOG_H_ */