Permalink
Browse files

Fix old UI hiding of exec() and Save() methods.

  • Loading branch information...
daniel-kristjansson committed Jun 28, 2012
1 parent 5dc4bfb commit df769dc84766e1b78f57f1e65b2e421888d2dc84
@@ -12,6 +12,7 @@ class MythDbSettings1: public VerticalConfigurationGroup {
void Load(void);
void Save(void);
void Save(QString /*destination*/) { Save(); }
protected:
TransLabelSetting *info;
@@ -32,6 +33,7 @@ class MythDbSettings2: public VerticalConfigurationGroup {
void Load(void);
void Save(void);
void Save(QString /*destination*/) { Save(); }
protected:
TransCheckBoxSetting *localEnabled;
@@ -13,6 +13,8 @@ class MPUBLIC StorageGroupEditor :
public:
StorageGroupEditor(QString group);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString) { }
@@ -36,6 +38,8 @@ class MPUBLIC StorageGroupListEditor :
public:
StorageGroupListEditor(void);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString) { }
@@ -21,6 +21,8 @@ class MTV_PUBLIC ChannelGroupEditor : public QObject, public ConfigurationDialog
public:
ChannelGroupEditor(void);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { };
virtual void Save(QString) { };
@@ -151,6 +151,7 @@ class MTV_PUBLIC ChannelOptionsRawTS: public VerticalConfigurationGroup
virtual void Load(void);
virtual void Save(void);
virtual void Save(QString /*destination*/) { Save(); }
private:
const ChannelID &cid;
@@ -203,6 +203,7 @@ class SwitchAddressSetting : public LineEditSetting, public Storage
{
m_switch.SetAddress(getValue().toUInt(0, 16));
}
virtual void Save(QString /*destination*/) { Save(); }
private:
DiSEqCDevSwitch &m_switch;
@@ -506,6 +507,8 @@ class RotorPosConfig : public ConfigurationDialog
while (ConfigurationDialog::exec() == kDialogCodeAccepted);
return kDialogCodeRejected;
}
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
};
//////////////////////////////////////// RotorConfig
@@ -135,6 +135,8 @@ class DTVDeviceTreeWizard : public ConfigurationDialog
DTVDeviceTreeWizard(DiSEqCDevTree &tree);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
};
class DTVDeviceConfigGroup : public VerticalConfigurationGroup
@@ -129,6 +129,8 @@ class TimeStretch : public SpinBoxSetting, public PlayGroupDBStorage
}
PlayGroupDBStorage::Save();
}
virtual void Save(QString /*destination*/) { Save(); }
};
PlayGroupConfig::PlayGroupConfig(QString _name) : name(_name)
@@ -25,6 +25,8 @@ class MTV_PUBLIC PlayGroupEditor : public QObject, public ConfigurationDialog
public:
PlayGroupEditor(void);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString) { }
@@ -122,9 +122,12 @@ class MTV_PUBLIC ProfileGroupEditor :
{ addChild(listbox); }
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) {}
virtual void Save(QString /*destination*/) {}
protected slots:
void open(int id);
@@ -90,6 +90,8 @@ class MTV_PUBLIC RecordingProfile : public QObject, public ConfigurationWizard
virtual void CompleteLoad(int profileId, const QString &type,
const QString &name);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
// sets
void setCodecTypes();
@@ -139,6 +141,8 @@ class RecordingProfileEditor :
RecordingProfileEditor(int id, QString profName);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString /*destination*/) { }
@@ -77,6 +77,8 @@ class MTV_PUBLIC TransportListEditor : public QObject, public ConfigurationDialo
TransportListEditor(uint initial_sourceid);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
public slots:
void Menu(void);
@@ -698,6 +698,8 @@ class MTV_PUBLIC CaptureCardEditor : public QObject, public ConfigurationDialog
virtual MythDialog* dialogWidget(MythMainWindow* parent,
const char* widgetName=0);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
@@ -726,6 +728,8 @@ class MTV_PUBLIC VideoSourceEditor : public QObject, public ConfigurationDialog
const QString& thecardtype);
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString /*destination*/) { }
@@ -747,6 +751,8 @@ class MTV_PUBLIC CardInputEditor : public QObject, public ConfigurationDialog
CardInputEditor();
virtual DialogCode exec(void);
virtual DialogCode exec(bool /*saveOnExec*/, bool /*doLoad*/)
{ return exec(); }
virtual void Load(void);
virtual void Save(void) { }
virtual void Save(QString /*destination*/) { }
@@ -69,6 +69,7 @@ class PlaybackProfileItemConfig : public QObject, public ConfigurationWizard
virtual void Load(void);
virtual void Save(void);
virtual void Save(QString /*destination*/) { Save(); }
private slots:
void decoderChanged(const QString &dec);
@@ -103,6 +104,7 @@ class PlaybackProfileConfig : public VerticalConfigurationGroup
virtual void Load(void);
virtual void Save(void);
virtual void Save(QString /*destination*/) { Save(); }
void swap(int indexA, int intexB);

0 comments on commit df769dc

Please sign in to comment.