• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kiten/lib

Public Member Functions | List of all members
HistoryPtrList Class Reference

#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.

HistoryPtrList::~HistoryPtrList ( )
virtual

Destructor...

kill all lists before going

Definition at line 44 of file historyptrlist.cpp.

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:
  • historyptrlist.h
  • historyptrlist.cpp
This file is part of the KDE documentation.
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.

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal