Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Todo::TodoView Class Reference

#include </home/clem/local/src/opie/core/pim/todo/todoview.h>

Inheritance diagram for Todo::TodoView:

Inheritance graph
[legend]
Collaboration diagram for Todo::TodoView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TodoView (MainWindow *win)
virtual ~TodoView ()

Protected Member Functions

MainWindowtodoWindow ()
OPimTodo event (int uid)
OPimTodoAccess::List list ()
OPimTodoAccess::List sorted () const
void sort ()
void sort (int sort)
void setSortOrder (int order)
void setAscending (bool)
void showTodo (int uid)
void edit (int uid)
void update (int uid, const SmallTodo &to)
void update (int uid, const OPimTodo &ev)
void remove (int uid)
void removeQuery (int uid)
void complete (int uid)
void complete (const OPimTodo &ev)

Private Attributes

MainWindowm_main
OPimTodoAccess::List m_sort
bool m_asc: 1
int m_sortOrder

Detailed Description

A base class for all TodoView which are showing a list of todos. Either in a QTable, QListView or any other QWidget derived class Through the MainWindow( dispatcher ) one can access the relevant informations

It's not possible to have signal and slots from within templates this way you've to register for a signal

Definition at line 96 of file todoview.h.


Constructor & Destructor Documentation

TodoView::TodoView MainWindow win  ) 
 

c'tor

Definition at line 42 of file todoview.cpp.

References m_asc, and m_sortOrder.

TodoView::~TodoView  )  [virtual]
 

d'tor

Definition at line 48 of file todoview.cpp.


Member Function Documentation

void TodoView::complete const OPimTodo &  ev  )  [protected]
 

Definition at line 96 of file todoview.cpp.

References m_main, and Todo::MainWindow::slotComplete().

void TodoView::complete int  uid  )  [protected]
 

Definition at line 93 of file todoview.cpp.

References m_main, and Todo::MainWindow::slotComplete().

Referenced by Todo::TableView::contentsMouseReleaseEvent(), Todo::TableView::keyPressEvent(), and Todo::TableView::slotClicked().

void TodoView::edit int  uid  )  [protected]
 

Definition at line 87 of file todoview.cpp.

References m_main, and Todo::MainWindow::slotEdit().

Referenced by Todo::TableView::createEditor(), Todo::TableView::keyPressEvent(), and Todo::TableView::slotClicked().

OPimTodo TodoView::event int  uid  )  [protected]
 

Definition at line 54 of file todoview.cpp.

References Todo::MainWindow::event(), and m_main.

OPimTodoAccess::List TodoView::list  )  [protected]
 

Definition at line 57 of file todoview.cpp.

References todoWindow().

void TodoView::remove int  uid  )  [protected]
 

Definition at line 90 of file todoview.cpp.

References m_main, Todo::MainWindow::m_todoMgr, and Todo::TodoManager::remove().

void TodoView::removeQuery int  uid  )  [protected]
 

Definition at line 99 of file todoview.cpp.

References m_main, and Todo::MainWindow::slotDelete().

Referenced by Todo::TableView::keyPressEvent().

void TodoView::setAscending bool   )  [protected]
 

Definition at line 74 of file todoview.cpp.

References m_asc, oendl, and owarn.

Referenced by Todo::TableView::sortColumn(), and Todo::TableView::TableView().

void TodoView::setSortOrder int  order  )  [protected]
 

Definition at line 71 of file todoview.cpp.

References m_sortOrder.

Referenced by Todo::TableView::sortColumn(), and Todo::TableView::TableView().

void TodoView::showTodo int  uid  )  [protected]
 

Definition at line 84 of file todoview.cpp.

References m_main, and Todo::MainWindow::slotShow().

Referenced by Todo::TableView::keyPressEvent(), and Todo::TableView::slotClicked().

void TodoView::sort int  sort  )  [protected]
 

Definition at line 68 of file todoview.cpp.

References m_asc, m_sort, m_sortOrder, and todoWindow().

void TodoView::sort  )  [protected]
 

Definition at line 64 of file todoview.cpp.

References m_asc, m_sort, m_sortOrder, oendl, owarn, and todoWindow().

Referenced by Todo::TableView::setTodo(), and Todo::TableView::updateView().

OPimTodoAccess::List TodoView::sorted  )  const [protected]
 

Definition at line 61 of file todoview.cpp.

References m_sort.

Referenced by Todo::TableView::contentsMousePressEvent(), Todo::TableView::contentsMouseReleaseEvent(), Todo::TableView::createEditor(), Todo::TableView::current(), Todo::TableView::currentRepresentation(), Todo::TableView::keyPressEvent(), Todo::TableView::next(), Todo::TableView::paintCell(), Todo::TableView::prev(), Todo::TableView::setCellContentFromEditor(), Todo::TableView::slotClicked(), Todo::TableView::timerEvent(), and Todo::TableView::updateView().

MainWindow * TodoView::todoWindow  )  [protected]
 

Definition at line 50 of file todoview.cpp.

References m_main.

Referenced by Todo::TableView::contentsMousePressEvent(), list(), sort(), Todo::TableView::TableView(), and Todo::TableView::updateView().

void TodoView::update int  uid,
const OPimTodo &  ev
[protected]
 

Definition at line 81 of file todoview.cpp.

References m_main, and Todo::MainWindow::updateTodo().

void TodoView::update int  uid,
const SmallTodo to
[protected]
 

Definition at line 78 of file todoview.cpp.

Referenced by Todo::TableView::setCellContentFromEditor().


Member Data Documentation

bool Todo::TodoView::m_asc [private]
 

Definition at line 135 of file todoview.h.

Referenced by setAscending(), sort(), and TodoView().

MainWindow* Todo::TodoView::m_main [private]
 

Definition at line 133 of file todoview.h.

Referenced by complete(), edit(), event(), remove(), removeQuery(), showTodo(), todoWindow(), and update().

OPimTodoAccess::List Todo::TodoView::m_sort [private]
 

Definition at line 134 of file todoview.h.

Referenced by sort(), and sorted().

int Todo::TodoView::m_sortOrder [private]
 

Definition at line 136 of file todoview.h.

Referenced by setSortOrder(), sort(), and TodoView().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:04:11 2005 for OPIE by  doxygen 1.4.2