#include <vtablesearch.h>
Signals | |
void | HasResult (bool state) |
Public Member Functions | |
VTableSearch (QTableWidget *table, QObject *parent=nullptr) | |
void | Find (const QString &term) |
void | FindPrevious () |
void | FindNext () |
void | RemoveRow (int row) |
void | AddRow (int row) |
void | RefreshList (const QString &term) |
Private Member Functions | |
void | Clear () |
void | ShowNext (int newIndex) |
Private Attributes | |
QTableWidget * | table |
int | searchIndex |
QList< QTableWidgetItem * > | searchList |
Definition at line 61 of file vtablesearch.h.
|
explicit |
Definition at line 62 of file vtablesearch.cpp.
void VTableSearch::AddRow | ( | int | row | ) |
Definition at line 195 of file vtablesearch.cpp.
References searchIndex, and searchList.
|
private |
Definition at line 71 of file vtablesearch.cpp.
References HasResult(), SCASSERT, searchIndex, searchList, and table.
Referenced by Find(), and ShowNext().
void VTableSearch::Find | ( | const QString & | term | ) |
Definition at line 119 of file vtablesearch.cpp.
References Clear(), HasResult(), SCASSERT, searchIndex, searchList, and table.
void VTableSearch::FindNext | ( | ) |
Definition at line 160 of file vtablesearch.cpp.
References searchIndex, searchList, and ShowNext().
void VTableSearch::FindPrevious | ( | ) |
Definition at line 147 of file vtablesearch.cpp.
References searchIndex, searchList, and ShowNext().
|
signal |
Referenced by Clear(), Find(), TMainWindow::InitWindow(), and RefreshList().
void VTableSearch::RefreshList | ( | const QString & | term | ) |
Definition at line 217 of file vtablesearch.cpp.
References HasResult(), SCASSERT, searchIndex, searchList, and table.
void VTableSearch::RemoveRow | ( | int | row | ) |
Definition at line 173 of file vtablesearch.cpp.
References searchIndex, and searchList.
|
private |
Definition at line 100 of file vtablesearch.cpp.
References Clear(), searchIndex, searchList, and table.
Referenced by FindNext(), and FindPrevious().
|
private |
Definition at line 81 of file vtablesearch.h.
Referenced by AddRow(), Clear(), Find(), FindNext(), FindPrevious(), RefreshList(), RemoveRow(), and ShowNext().
|
private |
Definition at line 82 of file vtablesearch.h.
Referenced by AddRow(), Clear(), Find(), FindNext(), FindPrevious(), RefreshList(), RemoveRow(), and ShowNext().
|
private |
Definition at line 80 of file vtablesearch.h.
Referenced by Clear(), Find(), RefreshList(), and ShowNext().