#include "settings.h" #include "mythstorage.h" class MPUBLIC ImageSelectSetting: public SelectSetting { Q_OBJECT public: ImageSelectSetting(Storage *_storage) : SelectSetting(_storage), bxwidget(NULL), imagelabel(NULL), combo(NULL), m_hmult(1.0f), m_wmult(1.0f) { } virtual QWidget* configWidget(ConfigurationGroup *cg, QWidget* parent, const char* widgetName = 0); virtual void widgetInvalid(QObject *obj); virtual void deleteLater(void); virtual void setHelpText(const QString &str); virtual void addImageSelection(const QString& label, QImage* image, QString value=QString::null, bool select=false); protected slots: void imageSet(int); protected: void Teardown(void); virtual ~ImageSelectSetting(); protected: std::vector images; QWidget *bxwidget; QLabel *imagelabel; MythComboBox *combo; float m_hmult, m_wmult; }; class MPUBLIC HostImageSelect : public ImageSelectSetting, public HostDBStorage { public: HostImageSelect(const QString &name) : ImageSelectSetting(this), HostDBStorage(this, name) { } };