diff options
author | Arno <am@disconnect.de> | 2012-03-24 15:24:12 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-24 15:24:12 +0100 |
commit | c425bb0c2b8f8d1fc2884ced9979eb39ee522846 (patch) | |
tree | aac0aab88c3fcd19cd2e5998aa00edd51764e52f /configurationdialog.h | |
parent | 13ce3cb8d433499eb81a4fc750d7d90027ea4a62 (diff) | |
download | SheMov-c425bb0c2b8f8d1fc2884ced9979eb39ee522846.tar.gz SheMov-c425bb0c2b8f8d1fc2884ced9979eb39ee522846.tar.bz2 SheMov-c425bb0c2b8f8d1fc2884ced9979eb39ee522846.zip |
Made FileInfoItem configurable
Create copious options for FileInfoItem, reintroducing the Pictures tab
in ConfigurationDialog.
Also fixed a long standing bug in SeriesTreeWidget: don't static_cast()
an event. It'll succeed even when called from a destructor.
Diffstat (limited to 'configurationdialog.h')
-rw-r--r-- | configurationdialog.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configurationdialog.h b/configurationdialog.h index 7867374..3d83bcd 100644 --- a/configurationdialog.h +++ b/configurationdialog.h @@ -9,6 +9,7 @@ #define CONFIGURATIONDIALOG_H #include <QHash> +#include <QMap> #include "smdialog.h" @@ -26,6 +27,7 @@ class ProgramConfigurator; class ConfigurationDialog : public SmDialog { Q_OBJECT public: + enum Position { TopLeft = 0, TopRight = 1, BottomLeft = 2, BottomRigth = 3, SideBySide = 4, Moveable = 5 }; ConfigurationDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); ~ConfigurationDialog() {} @@ -44,6 +46,8 @@ class ConfigurationDialog : public SmDialog { bool checkDvdPath(); void mountError(const QString &error); void setColor(QWidget *label); + void createPositionMap(); + void fillPositions(QComboBox *cb); QPushButton *mOk; QPushButton *mCancel; QTabWidget *mTab; @@ -62,6 +66,7 @@ class ConfigurationDialog : public SmDialog { QLineEdit *mStripPath; QLineEdit *mGrabFrameFrom; QComboBox *mIconForFolder; + QComboBox *mPositionBox; QCheckBox *mHoverPics; QCheckBox *mHoverArchive; QCheckBox *mHoverMovies; @@ -89,7 +94,9 @@ class ConfigurationDialog : public SmDialog { QPushButton *mPVBgButton; QCheckBox *mAlternateColors; QCheckBox *mPVGradient; + QCheckBox *mShowInfoItem; QHash<QWidget*, QColor> mColors; + QMap<QString, int> mPositionMap; QStandardItemModel *mIconModel; }; |