diff options
Diffstat (limited to 'abs/core/mythinstall/MythVantage-app/mythinstall/compat-mv.h')
-rwxr-xr-x | abs/core/mythinstall/MythVantage-app/mythinstall/compat-mv.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/abs/core/mythinstall/MythVantage-app/mythinstall/compat-mv.h b/abs/core/mythinstall/MythVantage-app/mythinstall/compat-mv.h new file mode 100755 index 0000000..bc2c4cb --- /dev/null +++ b/abs/core/mythinstall/MythVantage-app/mythinstall/compat-mv.h @@ -0,0 +1,43 @@ +#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: + vector<QImage*> 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) { } +};
\ No newline at end of file |