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

#include <mythwidgets.h>

List of all members.

Public Slots

void setCurrentItem (const QString &matchText, bool caseSensitive=true, bool partialMatch=false)

Signals

void changeHelpText (QString)
void accepted (int)
void menuButtonPressed (int)
void editButtonPressed (int)
void deleteButtonPressed (int)
void highlighted (int)

Public Member Functions

 MythListBox (QWidget *parent, const QString &name=QString("MythListBox"))
virtual void keyPressEvent (QKeyEvent *e)
void setCurrentRow (int row)
void setCurrentRow (int row, QItemSelectionModel::SelectionFlags command)
QString currentText (void) const
void setTopRow (uint row)
void insertItem (const QString &)
void insertStringList (const QStringList &)
void removeRow (uint row)
void changeItem (const QString &, uint row)
int getIndex (const QList< QListWidgetItem * > &)
QList< QListWidgetItem * > findItems (const QString &text, Qt::MatchFlags flags=Qt::MatchStartsWith) const
void setHelpText (const QString &)

Protected Member Functions

void focusInEvent (QFocusEvent *e)
void focusOutEvent (QFocusEvent *e)
virtual void ensurePolished (void) const
bool itemVisible (uint row) const
QString text (uint row) const

Private Slots

void HandleItemSelectionChanged (void)

Private Attributes

QString helptext

Detailed Description

Definition at line 372 of file mythwidgets.h.


Constructor & Destructor Documentation

MythListBox::MythListBox ( QWidget *  parent,
const QString &  name = QString("MythListBox") 
)

Definition at line 1274 of file mythwidgets.cpp.


Member Function Documentation

void MythListBox::keyPressEvent ( QKeyEvent *  e) [virtual]

Definition at line 1351 of file mythwidgets.cpp.

void MythListBox::setCurrentRow ( int  row) [inline]
void MythListBox::setCurrentRow ( int  row,
QItemSelectionModel::SelectionFlags  command 
) [inline]

Definition at line 384 of file mythwidgets.h.

QString MythListBox::currentText ( void  ) const [inline]

Definition at line 390 of file mythwidgets.h.

Definition at line 1491 of file mythwidgets.cpp.

Referenced by keyPressEvent().

void MythListBox::insertItem ( const QString &  label)
void MythListBox::insertStringList ( const QStringList &  label_list)

Definition at line 1503 of file mythwidgets.cpp.

Definition at line 1508 of file mythwidgets.cpp.

void MythListBox::changeItem ( const QString &  new_text,
uint  row 
)

Definition at line 1515 of file mythwidgets.cpp.

Referenced by ListBoxSetting::ReplaceLabel().

int MythListBox::getIndex ( const QList< QListWidgetItem * > &  list)

Definition at line 1522 of file mythwidgets.cpp.

Referenced by HandleItemSelectionChanged().

QList<QListWidgetItem*> MythListBox::findItems ( const QString &  text,
Qt::MatchFlags  flags = Qt::MatchStartsWith 
) const [inline]

Definition at line 398 of file mythwidgets.h.

void MythListBox::setHelpText ( const QString &  help)

Definition at line 1461 of file mythwidgets.cpp.

Referenced by ListBoxSetting::configWidget(), and ListBoxSetting::setHelpText().

void MythListBox::focusInEvent ( QFocusEvent *  e) [protected]

Definition at line 1482 of file mythwidgets.cpp.

void MythListBox::focusOutEvent ( QFocusEvent *  e) [protected]

Definition at line 1469 of file mythwidgets.cpp.

void MythListBox::ensurePolished ( void  ) const [protected, virtual]

Definition at line 1282 of file mythwidgets.cpp.

bool MythListBox::itemVisible ( uint  row) const [protected]

Definition at line 1533 of file mythwidgets.cpp.

Referenced by keyPressEvent().

QString MythListBox::text ( uint  row) const [protected]

Definition at line 1527 of file mythwidgets.cpp.

Referenced by keyPressEvent(), and setCurrentItem().

void MythListBox::setCurrentItem ( const QString &  matchText,
bool  caseSensitive = true,
bool  partialMatch = false 
) [slot]

Definition at line 1297 of file mythwidgets.cpp.

void MythListBox::changeHelpText ( QString  ) [signal]

Referenced by focusInEvent(), and setHelpText().

void MythListBox::accepted ( int  ) [signal]

Referenced by keyPressEvent().

Referenced by keyPressEvent().

Referenced by keyPressEvent().

Referenced by keyPressEvent().

Definition at line 1343 of file mythwidgets.cpp.

Referenced by MythListBox().


Member Data Documentation

QString MythListBox::helptext [private]

Definition at line 431 of file mythwidgets.h.

Referenced by focusInEvent(), and setHelpText().


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