FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Slots | Public Member Functions | Private Slots | Private Attributes | List of all members
FdViewResults Class Reference

#include <FdViewResults.hpp>

Collaboration diagram for FdViewResults:
Collaboration graph
[legend]

Public Slots

void edit (const QModelIndex &index)
void setCurrentIndex (const QModelIndex &index)
void currentChanged (const QModelIndex &current, const QModelIndex &previous)
void nextSearchResult ()

Public Member Functions

 FdViewResults (FdSubWindow *parent)
void mouseReleaseEvent (QMouseEvent *event)
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
void keyboardSearch (const QString &search)
void print (QPrinter &printer, QPainter &painter, const QRect &area, QRect &remainingArea, FdSubWindow *subwindow, int startPage)
QList< int > selectedRows () const
void writeSettings ()

Private Slots

void contextMenu (const QPoint &position)
void searchTimeout ()

Private Attributes

FdSubWindowmSubwindow
FdModelResultsmModel
FdDelegateResultsmDelegate
QTimer * mSearchTimer
QString mSearchText
QModelIndexList mSearchResults
int mCurrentResult

Detailed Description

Definition at line 32 of file FdViewResults.hpp.

Constructor & Destructor Documentation

FdViewResults::FdViewResults ( FdSubWindow parent)
explicit

Definition at line 26 of file FdViewResults.cpp.

Member Function Documentation

void FdViewResults::contextMenu ( const QPoint &  position)
privateslot

Definition at line 270 of file FdViewResults.cpp.

void FdViewResults::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
slot

Definition at line 263 of file FdViewResults.cpp.

void FdViewResults::edit ( const QModelIndex &  index)
slot

Definition at line 248 of file FdViewResults.cpp.

void FdViewResults::keyboardSearch ( const QString &  search)

This function is reimplemented.

It will store search text in mSearchText till the allocated search time is out. Then, FdViewResults::searchTimeout() is called.

Definition at line 138 of file FdViewResults.cpp.

void FdViewResults::mouseReleaseEvent ( QMouseEvent *  event)

Reimplemented. When the users click on a blanck area of the view, selection is cleared.

Definition at line 68 of file FdViewResults.cpp.

QModelIndex FdViewResults::moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)

Reimplemented. Pressing the tab key makes the cursor jumps from column to column. It the cursor reaches the last column of the last row, pressing the tab key creates a new empty row.

Definition at line 93 of file FdViewResults.cpp.

void FdViewResults::nextSearchResult ( )
slot

Definition at line 302 of file FdViewResults.cpp.

void FdViewResults::print ( QPrinter &  printer,
QPainter &  painter,
const QRect &  area,
QRect &  remainingArea,
FdSubWindow subwindow,
int  startPage 
)

Definition at line 145 of file FdViewResults.cpp.

void FdViewResults::searchTimeout ( )
privateslot

This slot is called when mSearchTimer times out. See FdModelResults::entryByPartialLabel().

Definition at line 288 of file FdViewResults.cpp.

QList< int > FdViewResults::selectedRows ( ) const

Definition at line 226 of file FdViewResults.cpp.

void FdViewResults::setCurrentIndex ( const QModelIndex &  index)
slot

Reimplemented. Defines the new index index to be the current index, but clears selection first.

Definition at line 257 of file FdViewResults.cpp.

void FdViewResults::writeSettings ( )

Definition at line 238 of file FdViewResults.cpp.

Member Data Documentation

int FdViewResults::mCurrentResult
private

Definition at line 50 of file FdViewResults.hpp.

FdDelegateResults* FdViewResults::mDelegate
private

Definition at line 39 of file FdViewResults.hpp.

FdModelResults* FdViewResults::mModel
private

Definition at line 38 of file FdViewResults.hpp.

QModelIndexList FdViewResults::mSearchResults
private

Definition at line 49 of file FdViewResults.hpp.

QString FdViewResults::mSearchText
private

This string holds the search text. It it reseted after mSearchTimer times out.

Definition at line 48 of file FdViewResults.hpp.

QTimer* FdViewResults::mSearchTimer
private

This timer is used in keyboardsearch. No search will happen until search time (see QApplication::keyboardInputInterval()) is out. This timer QTimer::timeout() signal is connected to FdViewJournal::searchTimeout().

Definition at line 44 of file FdViewResults.hpp.

FdSubWindow* FdViewResults::mSubwindow
private

Definition at line 37 of file FdViewResults.hpp.


The documentation for this class was generated from the following files: