ListBoxSetting Class Reference

#include <settings.h>

Inheritance diagram for ListBoxSetting:

SelectSetting Setting Configurable ChannelListSetting DeviceTree LangEditorSetting LogList RotorPosMap TransListBoxSetting TransportList

List of all members.


Detailed Description

Definition at line 356 of file settings.h.


Public Slots

void addSelection (const QString &label, QString value=QString::null, bool select=false)
void setValueByIndex (int index)

Signals

void accepted (int)
void menuButtonPressed (int)
void editButtonPressed (int)
void deleteButtonPressed (int)

Public Member Functions

 ListBoxSetting (Storage *_storage)
virtual QWidget * configWidget (ConfigurationGroup *cg, QWidget *parent, const char *widgetName=0)
 Create and return a QWidget for configuring this entity Note: Any class calling this should call widgetInvalid() before configWidget() is called on the class again, and before the class is deleted; just before removing the instance from a layout or scheduling the delete of a parent container is a good time.
virtual void widgetInvalid (QObject *obj)
 Tell any Configurable keeping a pointer to a widget, that the pointer returned by an earlier configWidget call is invalid.
void setFocus ()
void setSelectionMode (MythListBox::SelectionMode mode)
void setCurrentItem (int i)
void setCurrentItem (const QString &str)
int currentItem ()
virtual void setEnabled (bool b)
virtual void clearSelections (void)
virtual void setHelpText (const QString &str)

Protected Attributes

QWidget * bxwidget
MythListBoxwidget
MythListBox::SelectionMode selectionMode

Constructor & Destructor Documentation

ListBoxSetting::ListBoxSetting ( Storage _storage  )  [inline]

Definition at line 359 of file settings.h.


Member Function Documentation

QWidget * ListBoxSetting::configWidget ( ConfigurationGroup cg,
QWidget *  parent,
const char *  widgetName = 0 
) [virtual]

Create and return a QWidget for configuring this entity Note: Any class calling this should call widgetInvalid() before configWidget() is called on the class again, and before the class is deleted; just before removing the instance from a layout or scheduling the delete of a parent container is a good time.

Some UI classes depend on this for properly updating the UI.

Reimplemented from Configurable.

Definition at line 889 of file settings.cpp.

Referenced by ProfileGroupEditor::exec().

void ListBoxSetting::widgetInvalid ( QObject *   )  [virtual]

Tell any Configurable keeping a pointer to a widget, that the pointer returned by an earlier configWidget call is invalid.

Note: It is possible that this may be called after configWidget() has been called another time so you must check the pointer param.

Reimplemented from Configurable.

Definition at line 941 of file settings.cpp.

void ListBoxSetting::setFocus ( void   )  [inline]

void ListBoxSetting::setSelectionMode ( MythListBox::SelectionMode  mode  ) 

Definition at line 950 of file settings.cpp.

Referenced by LogList::LogList().

void ListBoxSetting::setCurrentItem ( int  i  )  [inline]

void ListBoxSetting::setCurrentItem ( const QString &  str  )  [inline]

Definition at line 370 of file settings.h.

int ListBoxSetting::currentItem (  )  [inline]

Definition at line 371 of file settings.h.

Referenced by ImportIconsWizard::menuSelect().

void ListBoxSetting::setEnabled ( bool  b  )  [virtual]

Reimplemented from Configurable.

Definition at line 864 of file settings.cpp.

Referenced by ImportIconsWizard::enableControls().

void ListBoxSetting::clearSelections ( void   )  [virtual]

void ListBoxSetting::setHelpText ( const QString &  str  )  [virtual]

Reimplemented from Configurable.

Definition at line 963 of file settings.cpp.

Referenced by TransportList::fillSelections(), and ImportIconsWizard::startDialog().

void ListBoxSetting::accepted ( int   )  [signal]

void ListBoxSetting::menuButtonPressed ( int   )  [signal]

Referenced by configWidget().

void ListBoxSetting::editButtonPressed ( int   )  [signal]

void ListBoxSetting::deleteButtonPressed ( int   )  [signal]

void ListBoxSetting::addSelection ( const QString &  label,
QString  value = QString::null,
bool  select = false 
) [virtual, slot]

void ListBoxSetting::setValueByIndex ( int  index  )  [slot]

Definition at line 957 of file settings.cpp.

Referenced by configWidget().


Member Data Documentation

QWidget* ListBoxSetting::bxwidget [protected]

Definition at line 393 of file settings.h.

Referenced by configWidget(), and widgetInvalid().

MythListBox::SelectionMode ListBoxSetting::selectionMode [protected]

Definition at line 395 of file settings.h.

Referenced by configWidget(), and setSelectionMode().


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

Generated on Sat Dec 18 05:16:04 2010 for MythTV by  doxygen 1.5.5