|
MythTV
0.26-pre
|
Provide a dialog to quickly find an entry in a list. More...
#include <mythdialogbox.h>
Signals | |
| void | haveResult (QString) |
Public Member Functions | |
| MythUISearchDialog (MythScreenStack *parent, const QString &message, const QStringList &list, bool matchAnywhere=false, const QString &defaultValue="") | |
| the classes constructor | |
| bool | Create (void) |
| void | SetReturnEvent (QObject *retobject, const QString &resultid) |
Private Slots | |
| void | slotSendResult (void) |
| void | slotUpdateList (void) |
Private Attributes | |
| MythUIButtonList * | m_itemList |
| MythUITextEdit * | m_textEdit |
| MythUIText * | m_titleText |
| MythUIText * | m_matchesText |
| QString | m_title |
| QString | m_defaultValue |
| QStringList | m_list |
| bool | m_matchAnywhere |
| QObject * | m_retObject |
| QString | m_id |
Provide a dialog to quickly find an entry in a list.
You pass a QStringList containing the list you want to search. As the user enters a text string in the edit the list of entries changes to show only the entries that match the input string. You have the option to search anywhere in the string or only the start.
When the user either clicks an entry in the list or presses the OK button the dialog will either send a DialogCompletionEvent or an haveResult(QString) signal will be generated. Both pass the selected string back to the caller.
Definition at line 266 of file mythdialogbox.h.
| MythUISearchDialog::MythUISearchDialog | ( | MythScreenStack * | parent, |
| const QString & | message, | ||
| const QStringList & | list, | ||
| bool | matchAnywhere = false, |
||
| const QString & | defaultValue = "" |
||
| ) |
the classes constructor
| parent | the MythScreenStack this widget belongs to |
| title | the text to show as the title |
| list | the list of text strings to search |
| matchAnywhere | if true will match the input text anywhere in the string. if false will match only strings that start with the input text. Default is false. |
| defaultValue | The initial value for the input text. Default is "" |
Definition at line 711 of file mythdialogbox.cpp.
| bool MythUISearchDialog::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 732 of file mythdialogbox.cpp.
Referenced by MusicCommon::customEvent(), EditMetadataDialog::searchAlbum(), Ripper::searchAlbum(), EditMetadataDialog::searchArtist(), Ripper::searchArtist(), EditMetadataDialog::searchCompilationArtist(), EditMetadataDialog::searchGenre(), Ripper::searchGenre(), GameUI::searchStart(), VideoDialog::searchStart(), ImportNative::showList(), BookmarkEditor::slotFindCategory(), and CriteriaRowEditor::valueButtonClicked().
| void MythUISearchDialog::SetReturnEvent | ( | QObject * | retobject, |
| const QString & | resultid | ||
| ) |
Definition at line 776 of file mythdialogbox.cpp.
Referenced by MusicCommon::customEvent().
| void MythUISearchDialog::haveResult | ( | QString | ) | [signal] |
Referenced by slotSendResult().
| void MythUISearchDialog::slotSendResult | ( | void | ) | [private, slot] |
Definition at line 783 of file mythdialogbox.cpp.
Referenced by Create().
| void MythUISearchDialog::slotUpdateList | ( | void | ) | [private, slot] |
Definition at line 802 of file mythdialogbox.cpp.
Referenced by Create().
MythUIButtonList* MythUISearchDialog::m_itemList [private] |
Definition at line 284 of file mythdialogbox.h.
Referenced by Create(), MythUISearchDialog(), slotSendResult(), and slotUpdateList().
MythUITextEdit* MythUISearchDialog::m_textEdit [private] |
Definition at line 285 of file mythdialogbox.h.
Referenced by Create(), MythUISearchDialog(), and slotUpdateList().
MythUIText* MythUISearchDialog::m_titleText [private] |
Definition at line 286 of file mythdialogbox.h.
Referenced by Create(), and MythUISearchDialog().
MythUIText* MythUISearchDialog::m_matchesText [private] |
Definition at line 287 of file mythdialogbox.h.
Referenced by Create(), MythUISearchDialog(), and slotUpdateList().
QString MythUISearchDialog::m_title [private] |
Definition at line 289 of file mythdialogbox.h.
Referenced by Create(), and MythUISearchDialog().
QString MythUISearchDialog::m_defaultValue [private] |
Definition at line 290 of file mythdialogbox.h.
Referenced by Create(), and MythUISearchDialog().
QStringList MythUISearchDialog::m_list [private] |
Definition at line 291 of file mythdialogbox.h.
Referenced by MythUISearchDialog(), and slotUpdateList().
bool MythUISearchDialog::m_matchAnywhere [private] |
Definition at line 292 of file mythdialogbox.h.
Referenced by MythUISearchDialog(), and slotUpdateList().
QObject* MythUISearchDialog::m_retObject [private] |
Definition at line 294 of file mythdialogbox.h.
Referenced by MythUISearchDialog(), SetReturnEvent(), and slotSendResult().
QString MythUISearchDialog::m_id [private] |
Definition at line 295 of file mythdialogbox.h.
Referenced by MythUISearchDialog(), SetReturnEvent(), and slotSendResult().
1.7.6.1