1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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:
std::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) { }
};
|