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

#include <globalsettings.h>

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

Public Member Functions

 PlaybackProfileItemConfig (PlaybackProfileConfig *parent, uint idx, ProfileItem &_item)
 
void Load (void) override
 
void Save (void) override
 
bool keyPressEvent (QKeyEvent *e) override
 
uint GetIndex (void) const
 
void ShowDeleteDialog (void)
 
void DecreasePriority (void)
 
void IncreasePriority (void)
 
- Public Member Functions inherited from GroupSetting
 GroupSetting ()=default
 
void edit (MythScreenType *screen) override
 
void resultEdit (DialogCompletionEvent *) override
 
virtual void applyChange ()
 
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 bool canDelete (void)
 
virtual void deleteEntry (void)
 
- 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 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)
 
void MoveToThread (QThread *thread)
 
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default
 

Private Slots

void widthChanged (const QString &val)
 
void heightChanged (const QString &val)
 
void framerateChanged (const QString &val)
 
void decoderChanged (const QString &dec)
 
void vrenderChanged (const QString &renderer)
 
void SingleQualityChanged (const QString &Quality)
 
void DoubleQualityChanged (const QString &Quality)
 
static void LoadQuality (TransMythUIComboBoxSetting *Deint, TransMythUICheckBoxSetting *Shader, TransMythUICheckBoxSetting *Driver, QString &Value)
 Parse the required deinterlacing quality and preferences. More...
 
static QString GetQuality (TransMythUIComboBoxSetting *Deint, TransMythUICheckBoxSetting *Shader, TransMythUICheckBoxSetting *Driver)
 
void InitLabel (void)
 
void DoDeleteSlot (bool doDelete)
 

Private Attributes

ProfileItemm_item
 
TransTextEditSettingm_widthRange {nullptr}
 
TransTextEditSettingm_heightRange {nullptr}
 
MythUIComboBoxSettingm_codecs {nullptr}
 
TransTextEditSettingm_framerate {nullptr}
 
TransMythUIComboBoxSettingm_decoder {nullptr}
 
TransMythUISpinBoxSettingm_maxCpus {nullptr}
 
TransMythUICheckBoxSettingm_skipLoop {nullptr}
 
TransMythUIComboBoxSettingm_vidRend {nullptr}
 
TransMythUIComboBoxSettingm_singleDeint {nullptr}
 
TransMythUICheckBoxSettingm_singleShader {nullptr}
 
TransMythUICheckBoxSettingm_singleDriver {nullptr}
 
TransMythUIComboBoxSettingm_doubleDeint {nullptr}
 
TransMythUICheckBoxSettingm_doubleShader {nullptr}
 
TransMythUICheckBoxSettingm_doubleDriver {nullptr}
 
PlaybackProfileConfigm_parentConfig {nullptr}
 
uint m_index {0}
 

Additional Inherited Members

- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
void setVisible (bool visible)
 
virtual void setValue (const QString &newValue)
 
virtual void setValue (int newValue)
 
virtual void childChanged (StandardSetting *)
 
- Signals inherited from StandardSetting
void valueChanged (const QString &newValue)
 
void valueChanged (StandardSetting *setting)
 
void ShouldRedraw (StandardSetting *setting)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 
void helpTextChanged (const QString &newValue)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
 ~StandardSetting () override
 
void setParent (StandardSetting *parent)
 
- 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}
 

Detailed Description

Definition at line 197 of file globalsettings.h.

Constructor & Destructor Documentation

◆ PlaybackProfileItemConfig()

PlaybackProfileItemConfig::PlaybackProfileItemConfig ( PlaybackProfileConfig parent,
uint  idx,
ProfileItem _item 
)

Definition at line 704 of file globalsettings.cpp.

Member Function Documentation

◆ Load()

void PlaybackProfileItemConfig::Load ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 850 of file globalsettings.cpp.

◆ Save()

void PlaybackProfileItemConfig::Save ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 933 of file globalsettings.cpp.

◆ keyPressEvent()

bool PlaybackProfileItemConfig::keyPressEvent ( QKeyEvent *  e)
overridevirtual

Reimplemented from StandardSetting.

Definition at line 1095 of file globalsettings.cpp.

◆ GetIndex()

uint PlaybackProfileItemConfig::GetIndex ( void  ) const

Definition at line 845 of file globalsettings.cpp.

Referenced by PlaybackProfileConfig::DeleteProfileItem().

◆ ShowDeleteDialog()

void PlaybackProfileItemConfig::ShowDeleteDialog ( void  )

◆ DecreasePriority()

void PlaybackProfileItemConfig::DecreasePriority ( void  )

Definition at line 1136 of file globalsettings.cpp.

◆ IncreasePriority()

void PlaybackProfileItemConfig::IncreasePriority ( void  )

Definition at line 1141 of file globalsettings.cpp.

◆ widthChanged

void PlaybackProfileItemConfig::widthChanged ( const QString &  val)
privateslot

Definition at line 949 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ heightChanged

void PlaybackProfileItemConfig::heightChanged ( const QString &  val)
privateslot

Definition at line 963 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ framerateChanged

void PlaybackProfileItemConfig::framerateChanged ( const QString &  val)
privateslot

Definition at line 977 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ decoderChanged

void PlaybackProfileItemConfig::decoderChanged ( const QString &  dec)
privateslot

Definition at line 991 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ vrenderChanged

void PlaybackProfileItemConfig::vrenderChanged ( const QString &  renderer)
privateslot

Definition at line 1017 of file globalsettings.cpp.

Referenced by decoderChanged(), and PlaybackProfileItemConfig().

◆ SingleQualityChanged

void PlaybackProfileItemConfig::SingleQualityChanged ( const QString &  Quality)
privateslot

Definition at line 1023 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ DoubleQualityChanged

void PlaybackProfileItemConfig::DoubleQualityChanged ( const QString &  Quality)
privateslot

Definition at line 1030 of file globalsettings.cpp.

Referenced by PlaybackProfileItemConfig().

◆ LoadQuality

void PlaybackProfileItemConfig::LoadQuality ( TransMythUIComboBoxSetting Deint,
TransMythUICheckBoxSetting Shader,
TransMythUICheckBoxSetting Driver,
QString &  Value 
)
staticprivateslot

Parse the required deinterlacing quality and preferences.

Note
Quality and preferences are stored in the database as a list of strings separate by a colon e.g. high:shader:driver. This avoids a database schema update and maintains some compatability between the old and new deinterlacer settings.

Definition at line 1044 of file globalsettings.cpp.

Referenced by Load().

◆ GetQuality

QString PlaybackProfileItemConfig::GetQuality ( TransMythUIComboBoxSetting Deint,
TransMythUICheckBoxSetting Shader,
TransMythUICheckBoxSetting Driver 
)
staticprivateslot

Definition at line 1075 of file globalsettings.cpp.

Referenced by Save().

◆ InitLabel

void PlaybackProfileItemConfig::InitLabel ( void  )
privateslot

◆ DoDeleteSlot

void PlaybackProfileItemConfig::DoDeleteSlot ( bool  doDelete)
privateslot

Definition at line 1130 of file globalsettings.cpp.

Referenced by ShowDeleteDialog().

Member Data Documentation

◆ m_item

ProfileItem& PlaybackProfileItemConfig::m_item
private

Definition at line 233 of file globalsettings.h.

Referenced by framerateChanged(), heightChanged(), Load(), Save(), and widthChanged().

◆ m_widthRange

TransTextEditSetting* PlaybackProfileItemConfig::m_widthRange {nullptr}
private

Definition at line 234 of file globalsettings.h.

Referenced by InitLabel(), Load(), PlaybackProfileItemConfig(), Save(), and widthChanged().

◆ m_heightRange

TransTextEditSetting* PlaybackProfileItemConfig::m_heightRange {nullptr}
private

Definition at line 235 of file globalsettings.h.

Referenced by heightChanged(), InitLabel(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_codecs

MythUIComboBoxSetting* PlaybackProfileItemConfig::m_codecs {nullptr}
private

Definition at line 236 of file globalsettings.h.

Referenced by InitLabel(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_framerate

TransTextEditSetting* PlaybackProfileItemConfig::m_framerate {nullptr}
private

Definition at line 237 of file globalsettings.h.

Referenced by framerateChanged(), InitLabel(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_decoder

TransMythUIComboBoxSetting* PlaybackProfileItemConfig::m_decoder {nullptr}
private

Definition at line 238 of file globalsettings.h.

Referenced by decoderChanged(), InitLabel(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_maxCpus

TransMythUISpinBoxSetting* PlaybackProfileItemConfig::m_maxCpus {nullptr}
private

Definition at line 239 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), and Save().

◆ m_skipLoop

TransMythUICheckBoxSetting* PlaybackProfileItemConfig::m_skipLoop {nullptr}
private

Definition at line 240 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), and Save().

◆ m_vidRend

TransMythUIComboBoxSetting* PlaybackProfileItemConfig::m_vidRend {nullptr}
private

◆ m_singleDeint

TransMythUIComboBoxSetting* PlaybackProfileItemConfig::m_singleDeint {nullptr}
private

Definition at line 242 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), and Save().

◆ m_singleShader

TransMythUICheckBoxSetting* PlaybackProfileItemConfig::m_singleShader {nullptr}
private

Definition at line 243 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), Save(), and SingleQualityChanged().

◆ m_singleDriver

TransMythUICheckBoxSetting* PlaybackProfileItemConfig::m_singleDriver {nullptr}
private

Definition at line 244 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), Save(), and SingleQualityChanged().

◆ m_doubleDeint

TransMythUIComboBoxSetting* PlaybackProfileItemConfig::m_doubleDeint {nullptr}
private

Definition at line 245 of file globalsettings.h.

Referenced by Load(), PlaybackProfileItemConfig(), and Save().

◆ m_doubleShader

TransMythUICheckBoxSetting* PlaybackProfileItemConfig::m_doubleShader {nullptr}
private

Definition at line 246 of file globalsettings.h.

Referenced by DoubleQualityChanged(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_doubleDriver

TransMythUICheckBoxSetting* PlaybackProfileItemConfig::m_doubleDriver {nullptr}
private

Definition at line 247 of file globalsettings.h.

Referenced by DoubleQualityChanged(), Load(), PlaybackProfileItemConfig(), and Save().

◆ m_parentConfig

PlaybackProfileConfig* PlaybackProfileItemConfig::m_parentConfig {nullptr}
private

Definition at line 248 of file globalsettings.h.

Referenced by DecreasePriority(), DoDeleteSlot(), and IncreasePriority().

◆ m_index

uint PlaybackProfileItemConfig::m_index {0}
private

Definition at line 249 of file globalsettings.h.

Referenced by DecreasePriority(), GetIndex(), and IncreasePriority().


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