#include <settings.h>

Definition at line 265 of file settings.h.
Public Slots | |
| virtual void | setValue (const QString &newValue) |
| virtual void | setValue (int which) |
| virtual QString | getSelectionLabel (void) const |
| virtual int | getValueIndex (QString value) |
| Returns index of value in SelectSetting, or -1 if not found. | |
Signals | |
| void | selectionAdded (const QString &label, QString value) |
| void | selectionRemoved (const QString &label, const QString &value) |
| void | selectionsCleared (void) |
Public Member Functions | |
| virtual int | findSelection (const QString &label, QString value=QString::null) const |
| virtual void | addSelection (const QString &label, QString value=QString::null, bool select=false) |
| virtual bool | removeSelection (const QString &label, QString value=QString::null) |
| virtual void | clearSelections (void) |
| virtual void | fillSelectionsFromDir (const QDir &dir, bool absPath=true) |
Protected Types | |
| typedef vector< QString > | selectionList |
Protected Member Functions | |
| SelectSetting (Storage *_storage) | |
Protected Attributes | |
| selectionList | labels |
| selectionList | values |
| unsigned | current |
| bool | isSet |
typedef vector<QString> SelectSetting::selectionList [protected] |
Definition at line 300 of file settings.h.
| SelectSetting::SelectSetting | ( | Storage * | _storage | ) | [inline, protected] |
Definition at line 270 of file settings.h.
| int SelectSetting::findSelection | ( | const QString & | label, | |
| QString | value = QString::null | |||
| ) | const [virtual] |
Definition at line 101 of file settings.cpp.
Referenced by ComboBoxSetting::addSelection(), addSelection(), and removeSelection().
| void SelectSetting::addSelection | ( | const QString & | label, | |
| QString | value = QString::null, |
|||
| bool | select = false | |||
| ) | [virtual] |
Reimplemented in ComboBoxSetting, ListBoxSetting, PathSetting, and SampleRate.
Definition at line 114 of file settings.cpp.
Referenced by ImageSelectSetting::addImageSelection(), ListBoxSetting::addSelection(), ComboBoxSetting::addSelection(), CardType::fillSelections(), CaptureCard::fillSelections(), VideoSource::fillSelections(), ChannelSetting::fillSelections(), ScheduledRecording::fillSelections(), RecordingProfile::fillSelections(), ProfileGroup::fillSelections(), LanguageSettings::fillSelections(), StyleSetting::fillSelections(), MythGamePlayerSettings::fillSelections(), fillSelectionsFromDir(), ISO639_fill_selections(), and setValue().
| bool SelectSetting::removeSelection | ( | const QString & | label, | |
| QString | value = QString::null | |||
| ) | [virtual] |
Reimplemented in ComboBoxSetting.
Definition at line 132 of file settings.cpp.
Referenced by ComboBoxSetting::removeSelection().
| void SelectSetting::clearSelections | ( | void | ) | [virtual] |
Reimplemented in ListBoxSetting.
Definition at line 173 of file settings.cpp.
Referenced by HostRefreshRateComboBox::ChangeResolution(), ListBoxSetting::clearSelections(), PlaybackProfileItemConfig::decoderChanged(), SingleCardInput::fillSelections(), TunerCardInput::fillSelections(), SourceID::fillSelections(), DataDirectLineupSelector::fillSelections(), LanguageSettings::fillSelections(), StyleSetting::fillSelections(), ISO639_fill_selections(), InputGroup::load(), InputSelector::load(), MultiplexSetting::load(), ScanTypeSetting::SetInput(), StartingChannel::SetSourceID(), and PlaybackProfileItemConfig::vrenderChanged().
| void SelectSetting::fillSelectionsFromDir | ( | const QDir & | dir, | |
| bool | absPath = true | |||
| ) | [virtual] |
Definition at line 158 of file settings.cpp.
Referenced by AudioOutputDevice(), MicrophoneDevice(), MixerDevice(), MusicAudioDevice(), OSDCC708Font(), OSDCCFont(), OSDFont(), TTSVoice(), and WebcamDevice().
| void SelectSetting::selectionAdded | ( | const QString & | label, | |
| QString | value | |||
| ) | [signal] |
Referenced by addSelection().
| void SelectSetting::selectionRemoved | ( | const QString & | label, | |
| const QString & | value | |||
| ) | [signal] |
Referenced by removeSelection().
| void SelectSetting::selectionsCleared | ( | void | ) | [signal] |
| void SelectSetting::setValue | ( | const QString & | newValue | ) | [virtual, slot] |
Reimplemented from Setting.
Definition at line 180 of file settings.cpp.
Referenced by addSelection(), ImageSelectSetting::configWidget(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), StorageGroupListEditor::load(), StorageGroupEditor::load(), PlayGroupEditor::load(), CardInput::loadByInput(), ScheduledRecording::setDefault(), ScheduledRecording::setProgram(), ComboBoxSetting::setValue(), ListBoxSetting::setValueByIndex(), and ThemeSelector::ThemeSelector().
| void SelectSetting::setValue | ( | int | which | ) | [virtual, slot] |
| QString SelectSetting::getSelectionLabel | ( | void | ) | const [virtual, slot] |
Definition at line 211 of file settings.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), ChannelEditor::deleteChannels(), ScheduledRecording::fillSelections(), and CardInput::getSourceName().
| int SelectSetting::getValueIndex | ( | QString | value | ) | [virtual, slot] |
Returns index of value in SelectSetting, or -1 if not found.
Definition at line 222 of file settings.cpp.
Referenced by ChannelEditor::ChannelEditor(), CardInput::CreateNewInputGroup(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), ChannelListSetting::fillSelections(), TransFreqTableSelector::load(), SwitchTypeSetting::load(), DeviceTypeSetting::load(), MPEG2AudioBitrateSettings::MPEG2AudioBitrateSettings(), RotorPosMap::PopulateList(), DeviceTree::PopulateTree(), DVBUtilsImportPane::SetDefaultATSCFormat(), STPane::SetDefaultATSCFormat(), ATSCPane::SetDefaultATSCFormat(), FirewireModel::SetGUID(), LNBConfig::SetPreset(), and setValue().
selectionList SelectSetting::labels [protected] |
Definition at line 301 of file settings.h.
Referenced by addSelection(), clearSelections(), ImageSelectSetting::configWidget(), ListBoxSetting::configWidget(), RadioSetting::configWidget(), ComboBoxSetting::configWidget(), SelectLabelSetting::configWidget(), findSelection(), getSelectionLabel(), and removeSelection().
selectionList SelectSetting::values [protected] |
Definition at line 302 of file settings.h.
Referenced by addSelection(), clearSelections(), findSelection(), getSelectionLabel(), getValueIndex(), removeSelection(), ComboBoxSetting::setValue(), setValue(), and ListBoxSetting::setValueByIndex().
unsigned SelectSetting::current [protected] |
Definition at line 303 of file settings.h.
Referenced by ComboBoxSetting::addSelection(), ImageSelectSetting::configWidget(), ListBoxSetting::configWidget(), RadioSetting::configWidget(), ComboBoxSetting::configWidget(), SelectLabelSetting::configWidget(), getSelectionLabel(), ImageSelectSetting::imageSet(), ComboBoxSetting::removeSelection(), removeSelection(), ComboBoxSetting::setValue(), and setValue().
bool SelectSetting::isSet [protected] |
Definition at line 304 of file settings.h.
Referenced by ComboBoxSetting::addSelection(), addSelection(), clearSelections(), ImageSelectSetting::configWidget(), ListBoxSetting::configWidget(), RadioSetting::configWidget(), ComboBoxSetting::configWidget(), getSelectionLabel(), ComboBoxSetting::removeSelection(), removeSelection(), and setValue().
1.5.5