kiten/lib
#include <historyptrlist.h>
Public Member Functions | |
HistoryPtrList () | |
virtual | ~HistoryPtrList () |
void | addItem (EntryList *newItem) |
int | count () |
EntryList * | current () |
int | index () |
void | next (int distance=1) |
void | prev (int distance=1) |
void | setCurrent (int i) |
QStringList | toStringList () |
QStringList | toStringListNext () |
QStringList | toStringListPrev () |
Detailed Description
Definition at line 31 of file historyptrlist.h.
Constructor & Destructor Documentation
HistoryPtrList::HistoryPtrList | ( | ) |
Construct a HistoryPtrList, this should be done early on.
Definition at line 39 of file historyptrlist.cpp.
|
virtual |
Member Function Documentation
void HistoryPtrList::addItem | ( | EntryList * | newItem | ) |
Add an item to the end of the history list and set it as the current displayed item.
Definition at line 55 of file historyptrlist.cpp.
int HistoryPtrList::count | ( | ) |
Return the total number of items in the list.
Definition at line 94 of file historyptrlist.cpp.
EntryList * HistoryPtrList::current | ( | ) |
Return the item at the location given by the parameter, and set it to be the current history list item.
Return the current item
Definition at line 99 of file historyptrlist.cpp.
int HistoryPtrList::index | ( | ) |
Return the current numerican 0-based location.
Definition at line 109 of file historyptrlist.cpp.
void HistoryPtrList::next | ( | int | distance = 1 | ) |
Add one to the current location, convenient for 'forward' buttons.
Definition at line 114 of file historyptrlist.cpp.
void HistoryPtrList::prev | ( | int | distance = 1 | ) |
Sub one from the current location, the counterpart to next()
Definition at line 126 of file historyptrlist.cpp.
void HistoryPtrList::setCurrent | ( | int | i | ) |
Set the current item.
Definition at line 138 of file historyptrlist.cpp.
QStringList HistoryPtrList::toStringList | ( | ) |
Return a list of the entries.
Note that this is usually just a QStringList of all of the EntryList's DictQuery->toString() calls.
Definition at line 147 of file historyptrlist.cpp.
QStringList HistoryPtrList::toStringListNext | ( | ) |
Return a summary list that only includes those after the current.
Definition at line 159 of file historyptrlist.cpp.
QStringList HistoryPtrList::toStringListPrev | ( | ) |
Return a list of the entries prior to the current one (not including the current entry.
Definition at line 172 of file historyptrlist.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.