#include <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) |
| virtual uint | size (void) const |
| virtual QString | GetLabel (uint i) const |
| virtual QString | GetValue (uint i) const |
Protected Types | |
| typedef vector< QString > | selectionList |
Protected Member Functions | |
| SelectSetting (Storage *_storage) | |
| virtual bool | ReplaceLabel (const QString &new_label, const QString &value) |
Protected Attributes | |
| selectionList | labels |
| selectionList | values |
| unsigned | current |
| bool | isSet |
Definition at line 253 of file settings.h.
typedef vector<QString> SelectSetting::selectionList [protected] |
Definition at line 298 of file settings.h.
| SelectSetting::SelectSetting | ( | Storage * | _storage | ) | [inline, protected] |
Definition at line 258 of file settings.h.
| int SelectSetting::findSelection | ( | const QString & | label, | |
| QString | value = QString::null | |||
| ) | const [virtual] |
Definition at line 103 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 116 of file settings.cpp.
Referenced by CardType::fillSelections(), CaptureCard::fillSelections(), VideoSource::fillSelections(), ChannelSetting::fillSelections(), RecordingProfile::fillSelections(), ProfileGroup::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 133 of file settings.cpp.
| void SelectSetting::clearSelections | ( | void | ) | [virtual] |
Reimplemented in ListBoxSetting.
Definition at line 176 of file settings.cpp.
Referenced by AudioDeviceComboBox::AudioRescan(), HostRefreshRateComboBox::ChangeResolution(), PlaybackProfileItemConfig::decoderChanged(), TunerCardAudioInput::fillSelections(), SourceID::fillSelections(), ASIDevice::fillSelections(), HDHomeRunDeviceIDList::fillSelections(), DVBCardNum::fillSelections(), DataDirectLineupSelector::fillSelections(), XmltvID::fillSelections(), ISO639_fill_selections(), InputGroup::Load(), ASIDevice::Load(), HDHomeRunDeviceIDList::Load(), DVBCardNum::Load(), SampleRate::Load(), PaneExistingScanImport::load(), MultiplexSetting::Load(), InputSelector::Load(), RotorSetting::Load(), MythLanguage(), PaneATSC::ResetTransportRange(), VBIDevice::setFilter(), ScanTypeSetting::SetInput(), StartingChannel::SetSourceID(), AudioConfigSettings::UpdateCapabilities(), and PlaybackProfileItemConfig::vrenderChanged().
| void SelectSetting::fillSelectionsFromDir | ( | const QDir & | dir, | |
| bool | absPath = true | |||
| ) | [virtual] |
Definition at line 159 of file settings.cpp.
Referenced by AudioDevice::AudioDevice(), and AudioMixerSettings::MixerDevice().
| virtual uint SelectSetting::size | ( | void | ) | const [inline, virtual] |
Definition at line 274 of file settings.h.
Referenced by PaneATSC::GetFrequencyTableRange(), XMLTVConfig::LoadXMLTVGrabbers(), and TriggeredConfigurationGroup::removeTarget().
| virtual QString SelectSetting::GetLabel | ( | uint | i | ) | const [inline, virtual] |
Definition at line 276 of file settings.h.
Referenced by TriggeredConfigurationGroup::removeTarget().
| virtual QString SelectSetting::GetValue | ( | uint | i | ) | const [inline, virtual] |
Definition at line 278 of file settings.h.
Referenced by XMLTVConfig::LoadXMLTVGrabbers(), and TriggeredConfigurationGroup::removeTarget().
| 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] |
Referenced by clearSelections(), ListBoxSetting::configWidget(), and ComboBoxSetting::configWidget().
| void SelectSetting::setValue | ( | const QString & | newValue | ) | [virtual, slot] |
Reimplemented from Setting.
Definition at line 183 of file settings.cpp.
Referenced by addSelection(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), StorageGroupListEditor::Load(), StorageGroupEditor::Load(), PlayGroupEditor::Load(), ChannelGroupEditor::Load(), CardInput::loadByInput(), setValue(), and ListBoxSetting::setValueByIndex().
| void SelectSetting::setValue | ( | int | which | ) | [virtual, slot] |
Reimplemented in ComboBoxSetting.
Definition at line 198 of file settings.cpp.
| QString SelectSetting::getSelectionLabel | ( | void | ) | const [virtual, slot] |
Definition at line 214 of file settings.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), ChannelOptionsCommon::ChannelOptionsCommon(), and CardInput::getSourceName().
| int SelectSetting::getValueIndex | ( | QString | value | ) | [virtual, slot] |
Returns index of value in SelectSetting, or -1 if not found.
Definition at line 225 of file settings.cpp.
Referenced by CardInput::CreateNewInputGroup(), StorageGroupListEditor::doDelete(), StorageGroupEditor::doDelete(), PlayGroupEditor::doDelete(), TransFreqTableSelector::Load(), MPEG2audType::Load(), SampleRate::Load(), USALSRotorSetting::Load(), RotorSetting::Load(), LNBTypeSetting::Load(), RotorTypeSetting::Load(), SwitchTypeSetting::Load(), DeviceTypeSetting::Load(), XMLTVConfig::LoadXMLTVGrabbers(), MPEG2AudioBitrateSettings::MPEG2AudioBitrateSettings(), RotorPosMap::PopulateList(), DeviceTree::PopulateTree(), ListBoxSetting::ReplaceLabel(), ReplaceLabel(), FirewireModel::SetGUID(), LNBConfig::SetPreset(), setValue(), and PaneATSC::TransportRangeChanged().
| bool SelectSetting::ReplaceLabel | ( | const QString & | new_label, | |
| const QString & | value | |||
| ) | [protected, virtual] |
Reimplemented in ListBoxSetting.
Definition at line 239 of file settings.cpp.
Referenced by ListBoxSetting::ReplaceLabel().
selectionList SelectSetting::labels [protected] |
Definition at line 299 of file settings.h.
Referenced by addSelection(), clearSelections(), ListBoxSetting::configWidget(), ComboBoxSetting::configWidget(), SelectLabelSetting::configWidget(), ComboBoxSetting::editTextChanged(), findSelection(), getSelectionLabel(), removeSelection(), and ReplaceLabel().
selectionList SelectSetting::values [protected] |
Definition at line 300 of file settings.h.
Referenced by addSelection(), clearSelections(), ComboBoxSetting::editTextChanged(), findSelection(), getSelectionLabel(), getValueIndex(), removeSelection(), ComboBoxSetting::setValue(), setValue(), and ListBoxSetting::setValueByIndex().
unsigned SelectSetting::current [protected] |
Definition at line 301 of file settings.h.
Referenced by ComboBoxSetting::addSelection(), AudioDeviceComboBox::AudioDeviceComboBox(), ListBoxSetting::configWidget(), ComboBoxSetting::configWidget(), SelectLabelSetting::configWidget(), HDHomeRunDeviceIDList::fillSelections(), getSelectionLabel(), ComboBoxSetting::removeSelection(), removeSelection(), ComboBoxSetting::setValue(), and setValue().
bool SelectSetting::isSet [protected] |
Definition at line 302 of file settings.h.
Referenced by ComboBoxSetting::addSelection(), addSelection(), clearSelections(), ListBoxSetting::configWidget(), ComboBoxSetting::configWidget(), getSelectionLabel(), ComboBoxSetting::removeSelection(), removeSelection(), and setValue().
1.6.3