MythTV  0.26-pre
Public Slots | Signals | Public Member Functions | Protected Attributes
ListBoxSetting Class Reference

#include <settings.h>

Inheritance diagram for ListBoxSetting:
SelectSetting Setting Configurable StorageUser DeviceTree LogList RotorPosMap TransListBoxSetting TransportList MythTerminal

List of all members.

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)
virtual void SetEventFilter (QObject *filter)
virtual bool ReplaceLabel (const QString &new_label, const QString &value)

Protected Attributes

QWidget * bxwidget
MythListBoxlbwidget
QObject * eventFilter
MythListBox::SelectionMode selectionMode

Detailed Description

Definition at line 357 of file settings.h.


Constructor & Destructor Documentation

ListBoxSetting::ListBoxSetting ( Storage _storage) [inline]

Definition at line 360 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 1027 of file settings.cpp.

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 1090 of file settings.cpp.

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

Definition at line 1099 of file settings.cpp.

Referenced by LogList::LogList().

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

Definition at line 372 of file settings.h.

Definition at line 374 of file settings.h.

Reimplemented from Configurable.

Definition at line 988 of file settings.cpp.

Referenced by MythTerminal::ProcessFinished().

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

Reimplemented from Configurable.

Definition at line 1112 of file settings.cpp.

virtual void ListBoxSetting::SetEventFilter ( QObject *  filter) [inline, virtual]

Definition at line 383 of file settings.h.

Referenced by MythTerminal::MythTerminal().

bool ListBoxSetting::ReplaceLabel ( const QString &  new_label,
const QString &  value 
) [virtual]

Reimplemented from SelectSetting.

Definition at line 1013 of file settings.cpp.

Referenced by MythTerminal::AddText().

Referenced by configWidget().

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

Definition at line 1106 of file settings.cpp.

Referenced by configWidget().


Member Data Documentation

QWidget* ListBoxSetting::bxwidget [protected]

Definition at line 400 of file settings.h.

Referenced by configWidget(), and widgetInvalid().

QObject* ListBoxSetting::eventFilter [protected]

Definition at line 402 of file settings.h.

Referenced by configWidget().

MythListBox::SelectionMode ListBoxSetting::selectionMode [protected]

Definition at line 403 of file settings.h.

Referenced by configWidget(), and setSelectionMode().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends