MythTV  master
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
MythUIComboBoxSetting Class Reference

#include <standardsettings.h>

Inheritance diagram for MythUIComboBoxSetting:
Inheritance graph
[legend]
Collaboration diagram for MythUIComboBoxSetting:
Collaboration graph
[legend]

Public Slots

void setValue (const QString &) override
 
- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
void setVisible (bool visible)
 
virtual void setValue (const QString &newValue)
 
virtual void childChanged (StandardSetting *)
 

Public Member Functions

void setValue (int value) override
 
int getValueIndex (const QString &value) const
 
QString getValueLabel (void) const
 
void resultEdit (DialogCompletionEvent *dce) override
 
void edit (MythScreenType *screen) override
 
void addSelection (const QString &label, QString value=QString(), bool select=false)
 
void clearSelections ()
 
void fillSelectionsFromDir (const QDir &dir, bool absPath=true)
 
void updateButton (MythUIButtonListItem *item) override
 This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look. More...
 
virtual int size (void) const
 
- Public Member Functions inherited from StandardSetting
virtual void setLabel (QString str)
 
QString getLabel (void) const
 
virtual void setHelpText (const QString &str)
 
QString getHelpText (void) const
 
virtual void setName (const QString &name)
 
QString getName (void) const
 
StandardSettingbyName (const QString &name)
 
bool isVisible (void) const
 
bool isEnabled () const
 
bool haveChanged ()
 Return true if the setting have changed or any of its children. More...
 
void setChanged (bool changed)
 
StandardSettinggetParent () const
 
virtual QString getValue (void) const
 
void SetDBValue (const QString &val) override
 
QString GetDBValue (void) const override
 
MythUIButtonListItemcreateButton (MythUIButtonList *list)
 
virtual void addChild (StandardSetting *child)
 
virtual void removeChild (StandardSetting *child)
 
virtual QList< StandardSetting * > * getSubSettings ()
 
virtual bool haveSubSettings ()
 
virtual void clearSettings ()
 
void clearTargetedSettings (const QString &value)
 
virtual void Load (void)
 
virtual void Save (void)
 
virtual void Open (void)
 
virtual void Close (void)
 
StorageGetStorage (void) const
 
void addTargetedChild (const QString &value, StandardSetting *setting)
 
void addTargetedChildren (const QString &value, std::initializer_list< StandardSetting * > settings)
 
void removeTargetedChild (const QString &value, StandardSetting *child)
 
virtual bool keyPressEvent (QKeyEvent *)
 
void MoveToThread (QThread *thread)
 
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default
 

Protected Member Functions

 MythUIComboBoxSetting (Storage *_storage=nullptr, bool rw=false)
 Create a Setting Widget to select the value from a list. More...
 
 ~MythUIComboBoxSetting ()
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
virtual ~StandardSetting ()
 
void setParent (StandardSetting *parent)
 

Protected Attributes

QVector< QString > m_labels
 
QVector< QString > m_values
 
- Protected Attributes inherited from StandardSetting
QString m_settingValue
 
bool m_enabled {true}
 
QString m_label
 
QString m_helptext
 
QString m_name
 
bool m_visible {true}
 

Private Attributes

bool m_rewrite
 
bool m_isSet {false}
 

Additional Inherited Members

- Signals inherited from StandardSetting
void valueChanged (const QString &)
 
void valueChanged (StandardSetting *)
 
void ShouldRedraw (StandardSetting *)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 

Detailed Description

Definition at line 213 of file standardsettings.h.

Constructor & Destructor Documentation

◆ MythUIComboBoxSetting()

MythUIComboBoxSetting::MythUIComboBoxSetting ( Storage _storage = nullptr,
bool  rw = false 
)
inlineprotected

Create a Setting Widget to select the value from a list.

Parameters
_storageAn object that knows how to get/set the value for this item from/to a database. This should be created with a call to XXXStorage.
rwif set to true, the user can input it's own value

Definition at line 240 of file standardsettings.h.

◆ ~MythUIComboBoxSetting()

MythUIComboBoxSetting::~MythUIComboBoxSetting ( )
protected

Definition at line 454 of file standardsettings.cpp.

Member Function Documentation

◆ setValue() [1/2]

void MythUIComboBoxSetting::setValue ( int  value)
overridevirtual

Reimplemented from StandardSetting.

Definition at line 460 of file standardsettings.cpp.

Referenced by AutoExpireMethod(), BackendServerAddr(), BitrateMode::BitrateMode(), HostRefreshRateComboBoxSetting::ChangeResolution(), ChannelFormat(), ChannelGroupDefault(), ChapterMenuAspectRatio(), CardInput::CreateNewInputGroupSlot(), GameType::GameType(), GRSchedOpenEnd(), GuiVidModeResolution(), HardwareMJPEGHDecimation::HardwareMJPEGHDecimation(), HardwareMJPEGVDecimation::HardwareMJPEGVDecimation(), BackendSettings::listenChanged(), InputSelector::Load(), DeviceTypeSetting::Load(), VideoSourceSelector::Load(), Source::Load(), TransFreqTableSelector::Load(), SampleRate::Load(), SwitchTypeSetting::Load(), MPEG2audType::Load(), PlaybackProfileItemConfig::Load(), RotorTypeSetting::Load(), LNBPresetSetting::Load(), LNBTypeSetting::Load(), SwitchSetting::Load(), RotorSetting::Load(), USALSRotorSetting::Load(), SCRPositionSetting::Load(), InputGroup::Load(), XMLTVGrabber::LoadXMLTVGrabbers(), LocalServerIP(), LocalServerIP6(), LongChannelFormat(), MainMenuAspectRatio(), MPEG2aspectRatio::MPEG2aspectRatio(), MPEG2audBitrateL1::MPEG2audBitrateL1(), MPEG2audBitrateL2::MPEG2audBitrateL2(), MPEG2audBitrateL3::MPEG2audBitrateL3(), MPEG2AudioBitrateSettings::MPEG2AudioBitrateSettings(), MPEG2Language::MPEG2Language(), MPEG2streamType::MPEG2streamType(), MythArchiveDefaultEncProfile(), PlayBoxOrdering(), DVBConfigurationGroup::probeCard(), RecordFullTSStream::RecordFullTSStream(), RecordingType::RecordingType(), resultEdit(), BackendSettings::Save(), FirewireModel::SetGUID(), LNBConfig::SetPreset(), SortPrefixExceptions(), SortStripPrefixes(), StorageScheduler(), UPNPWmpSource(), and XineramaScreen().

◆ getValueIndex()

int MythUIComboBoxSetting::getValueIndex ( const QString &  value) const

◆ getValueLabel()

QString MythUIComboBoxSetting::getValueLabel ( void  ) const

◆ resultEdit()

void MythUIComboBoxSetting::resultEdit ( DialogCompletionEvent dce)
overridevirtual

Implements StandardSetting.

Definition at line 559 of file standardsettings.cpp.

◆ edit()

void MythUIComboBoxSetting::edit ( MythScreenType screen)
overridevirtual

Implements StandardSetting.

Reimplemented in AudioDeviceComboBox.

Definition at line 516 of file standardsettings.cpp.

Referenced by AudioDeviceComboBox::edit().

◆ addSelection()

void MythUIComboBoxSetting::addSelection ( const QString &  label,
QString  value = QString(),
bool  select = false 
)

Definition at line 480 of file standardsettings.cpp.

Referenced by AddFormat(), SampleRate::addSelection(), AdjustFill(), AspectOverride(), AudioDevice::AudioDevice(), AudioDeviceComboBox::AudioDeviceComboBox(), AudioRateLimit::AudioRateLimit(), AudioDeviceComboBox::AudioRescan(), AudioConfigSettings::AudioUpmixType(), AutoCommercialSkip(), AutoExpireMethod(), BitrateMode::BitrateMode(), HostRefreshRateComboBoxSetting::ChangeResolution(), ChannelFormat(), ChannelGroupDefault(), ChannelOrdering(), ChannelTVFormat::ChannelTVFormat(), ChapterMenuAspectRatio(), CommercialSkipMethod(), CommMethod::CommMethod(), PlaybackSettings::CreateNewPlaybackProfileSlot(), CurrentPlaybackProfile(), PlaybackProfileItemConfig::decoderChanged(), DesiredServices::DesiredServices(), DeviceTypeSetting::DeviceTypeSetting(), GallerySettings::DirOrder(), DisplayGroupTitleSort(), DisplayRecGroup(), DTVStandard::DTVStandard(), DVBForwardErrorCorrectionSelector::DVBForwardErrorCorrectionSelector(), DVBInversion::DVBInversion(), DVBSModulationSystem::DVBSModulationSystem(), DVBSymbolRate::DVBSymbolRate(), DVBTBandwidth::DVBTBandwidth(), DVBTGuardInterval::DVBTGuardInterval(), DVBTHierarchy::DVBTHierarchy(), DVBTModulationSystem::DVBTModulationSystem(), DVBTTransmissionMode::DVBTTransmissionMode(), ProfileGroup::HostName::fillSelections(), Source::fillSelections(), VideoSource::fillSelections(), TunerCardAudioInput::fillSelections(), XmltvID::fillSelections(), CardType::fillSelections(), VBoxDeviceIDList::fillSelections(), DVBCardNum::fillSelections(), ASIDevice::fillSelections(), InputName::fillSelections(), SourceID::fillSelections(), fillSelectionsFromDir(), fillSelectionsFromDir(), VideoDevice::fillSelectionsFromDir(), VBIDevice::fillSelectionsFromDir(), FirewireConnection::FirewireConnection(), FirewireGUID::FirewireGUID(), FirewireModel::FirewireModel(), FirewireSpeed::FirewireSpeed(), FreqTable(), FreqTableSelector::FreqTableSelector(), GameType::GameType(), GlobalTimeBoxSetting::GlobalTimeBoxSetting(), GRSchedOpenEnd(), GuiVidModeResolution(), HardwareMJPEGHDecimation::HardwareMJPEGHDecimation(), HardwareMJPEGVDecimation::HardwareMJPEGVDecimation(), HostTimeBoxSetting::HostTimeBoxSetting(), GallerySettings::ImageOrder(), ISO639_fill_selections(), JobQueueCPU(), LCDShowMusicItems(), LetterboxingColour(), BackendSettings::listenChanged(), LNBPresetSetting::LNBPresetSetting(), LNBTypeSetting::LNBTypeSetting(), MultiplexSetting::Load(), InputSelector::Load(), PaneExistingScanImport::Load(), VideoSourceSelector::Load(), PlaybackProfileItemConfig::Load(), XMLTVGrabber::Load(), DVBCardNum::Load(), RotorSetting::Load(), ASIDevice::Load(), InputGroup::Load(), XMLTVGrabber::LoadXMLTVGrabbers(), LocalServerIP(), LocalServerIP6(), LongChannelFormat(), MainMenuAspectRatio(), AudioConfigSettings::MaxAudioChannels(), MenuTheme(), AudioConfigSettings::MixerControl(), AudioConfigSettings::MixerDevice(), Modulation::Modulation(), MPEG2aspectRatio::MPEG2aspectRatio(), MPEG2audBitrateL1::MPEG2audBitrateL1(), MPEG2audBitrateL2::MPEG2audBitrateL2(), MPEG2audBitrateL3::MPEG2audBitrateL3(), MPEG2audType::MPEG2audType(), MPEG2Language::MPEG2Language(), MPEG2streamType::MPEG2streamType(), MythArchiveDateFormat(), MythArchiveDefaultEncProfile(), MythArchiveTimeFormat(), MythDateFormatCB(), MythGalleryFilterType(), MythGallerySortOrder(), MythLanguage(), MythShortDateFormat(), MythTimeFormat(), OverrideExitMenu(), OverTimeCategory(), PALNTSC(), AudioConfigSettings::PassThroughOutputDevice(), PIPLocationComboBox(), PlaybackExitPrompt(), PlaybackProfileItemConfig::PlaybackProfileItemConfig(), PlayBoxEpisodeSort(), PlayBoxOrdering(), DVBConfigurationGroup::probeCard(), QuickTune::QuickTune(), RecordFullTSStream::RecordFullTSStream(), RecordingType::RecordingType(), RollOff::RollOff(), RotorTypeSetting::RotorTypeSetting(), ScanATSCModulation::ScanATSCModulation(), ScanBandwidth::ScanBandwidth(), ScanCountry::ScanCountry(), ScanDVBSModulation::ScanDVBSModulation(), ScanDVBTModSys::ScanDVBTModSys(), ScanFecSetting::ScanFecSetting(), ScanFrequencyTable::ScanFrequencyTable(), ScanGuardInterval::ScanGuardInterval(), ScanHierarchy::ScanHierarchy(), ScanInversion::ScanInversion(), ScanModSys::ScanModSys(), ScanModulationSetting::ScanModulationSetting(), ScanNetwork::ScanNetwork(), ScanPolarity::ScanPolarity(), ScanRollOff::ScanRollOff(), ScanSymbolRateDVBC::ScanSymbolRateDVBC(), ScanSymbolRateDVBS::ScanSymbolRateDVBS(), ScanTransmissionMode::ScanTransmissionMode(), SCRPositionSetting::SCRPositionSetting(), AudioCompressionSettings::selectCodecs(), VideoCompressionSettings::selectCodecs(), VBIDevice::setFilter(), ScanTypeSetting::SetInput(), StartingChannel::SetSourceID(), SignalPolarity::SignalPolarity(), SlideshowBackground(), SlideshowOpenGLTransition(), SlideshowTransition(), SlideShowTransitionMode(), SourceID::SourceID(), AudioConfigSettings::SRCQuality(), StorageScheduler(), SubtitleCodec(), SwitchSetting::SwitchSetting(), SwitchTypeSetting::SwitchTypeSetting(), ThemePainter(), TransFreqTableSelector::TransFreqTableSelector(), TransitionType(), TVFormat(), TVVidModeForceAspect(), TVVidModeResolution(), AudioConfigSettings::UpdateCapabilities(), UPNPWmpSource(), USALSRotorSetting::USALSRotorSetting(), VbiFormat(), PlaybackProfileItemConfig::vrenderChanged(), XineramaMonitorAspectRatio(), XineramaScreen(), ZMDateFormat(), and ZMTimeFormat().

◆ clearSelections()

void MythUIComboBoxSetting::clearSelections ( )

◆ fillSelectionsFromDir()

void MythUIComboBoxSetting::fillSelectionsFromDir ( const QDir &  dir,
bool  absPath = true 
)

Definition at line 586 of file standardsettings.cpp.

Referenced by AudioDevice::AudioDevice().

◆ updateButton()

void MythUIComboBoxSetting::updateButton ( MythUIButtonListItem item)
overridevirtual

This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look.

Parameters
itemis the associated MythUIButtonListItem to be updated

Reimplemented from StandardSetting.

Definition at line 502 of file standardsettings.cpp.

◆ size()

int MythUIComboBoxSetting::size ( void  ) const
virtual

Definition at line 603 of file standardsettings.cpp.

Referenced by crcinfo().

◆ setValue [2/2]

void MythUIComboBoxSetting::setValue ( const QString &  newValue)
overrideslot

Definition at line 553 of file standardsettings.cpp.

Member Data Documentation

◆ m_labels

QVector<QString> MythUIComboBoxSetting::m_labels
protected

◆ m_values

QVector<QString> MythUIComboBoxSetting::m_values
protected

◆ m_rewrite

bool MythUIComboBoxSetting::m_rewrite
private

Definition at line 247 of file standardsettings.h.

Referenced by edit(), and resultEdit().

◆ m_isSet

bool MythUIComboBoxSetting::m_isSet {false}
private

Definition at line 248 of file standardsettings.h.

Referenced by addSelection(), clearSelections(), and setValue().


The documentation for this class was generated from the following files: