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

Todo::TableView Class Reference

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

Inheritance diagram for Todo::TableView:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TableView (MainWindow *, QWidget *parent)
 ~TableView ()
QString type () const
int current ()
QString currentRepresentation ()
int next ()
int prev ()
void clear ()
void showOverDue (bool)
void updateView ()
void setTodo (int uid, const OPimTodo &)
void addEvent (const OPimTodo &event)
void replaceEvent (const OPimTodo &)
void removeEvent (int uid)
void setShowCompleted (bool)
void setShowDeadline (bool)
void setShowCategory (const QString &=QString::null)
void newDay ()
QWidget * widget ()
void sortColumn (int, bool, bool)
void paintCell (QPainter *p, int row, int col, const QRect &, bool)

Protected Member Functions

void keyPressEvent (QKeyEvent *)
void contentsMouseReleaseEvent (QMouseEvent *e)
void contentsMousePressEvent (QMouseEvent *e)
void timerEvent (QTimerEvent *e)
QWidget * createEditor (int row, int col, bool initFromCell) const
void setCellContentFromEditor (int row, int col)

Protected Attributes

EditorWidget m_editorWidget

Private Slots

void slotClicked (int, int, int, const QPoint &)
void slotPriority ()

Private Member Functions

void viewportPaintEvent (QPaintEvent *)
void initConfig ()

Private Attributes

bool m_enablePaint:1
QString m_oleCat
bool m_first: 1
QPixmap m_pic_completed
QPixmap m_pic_priority [5]
int m_completeStrokeWidth
bool m_row: 1
QPoint m_prevP

Classes

struct  EditorWidget

Constructor & Destructor Documentation

TableView::TableView MainWindow ,
QWidget *  parent
 

Definition at line 89 of file tableview.cpp.

References QString::append(), Opie::OPimTodoAccess::Completed, i, initConfig(), Opie::Core::OResource::loadPixmap(), m_enablePaint, m_first, m_pic_completed, m_pic_priority, QString::number(), QTable, QPEApplication::RightOnHold, Todo::TodoView::setAscending(), setShowDeadline(), Todo::TodoView::setSortOrder(), QPEApplication::setStylusOperation(), slotClicked(), Todo::TodoView::todoWindow(), tr, and TRUE.

TableView::~TableView  ) 
 

Definition at line 152 of file tableview.cpp.

References i, QString::number(), Config::setGroup(), and Config::writeEntry().


Member Function Documentation

void TableView::addEvent const OPimTodo &  event  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 228 of file tableview.cpp.

References updateView().

Referenced by replaceEvent().

void TableView::clear  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 280 of file tableview.cpp.

Referenced by newDay(), and showOverDue().

void TableView::contentsMousePressEvent QMouseEvent *  e  )  [protected]
 

Definition at line 570 of file tableview.cpp.

References current(), m_prevP, pos, Todo::TodoView::sorted(), and Todo::TodoView::todoWindow().

void TableView::contentsMouseReleaseEvent QMouseEvent *  e  )  [protected]
 

Definition at line 559 of file tableview.cpp.

References Todo::TodoView::complete(), m_prevP, row, and Todo::TodoView::sorted().

QWidget * TableView::createEditor int  row,
int  col,
bool  initFromCell
const [protected]
 

Definition at line 458 of file tableview.cpp.

References Todo::TodoView::edit(), i, l, m_pic_priority, Opie::Internal::priority(), Todo::TodoView::sorted(), and Opie::Internal::summary().

int TableView::current  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 161 of file tableview.cpp.

References Todo::TodoView::sorted().

Referenced by contentsMousePressEvent().

QString TableView::currentRepresentation  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 180 of file tableview.cpp.

References Todo::TodoView::sorted().

void TableView::initConfig  )  [private]
 

Definition at line 79 of file tableview.cpp.

References i, m_completeStrokeWidth, QString::number(), Config::readNumEntry(), Config::setGroup(), and width.

Referenced by TableView().

void TableView::keyPressEvent QKeyEvent *   )  [protected]
 

Definition at line 580 of file tableview.cpp.

References Todo::TableView::EditorWidget::cellCol(), Todo::TableView::EditorWidget::cellRow(), Todo::TableView::EditorWidget::cellWidget(), col, Todo::TodoView::complete(), Todo::TodoView::edit(), FALSE, Qt::Key_Enter, Qt::Key_F33, Qt::Key_Return, Qt::Key_Space, m_editorWidget, Todo::TableView::EditorWidget::releaseCellWidget(), Todo::TodoView::removeQuery(), row, Todo::TableView::EditorWidget::setCellWidget(), Todo::TodoView::showTodo(), Todo::TodoView::sorted(), true, and wid.

void TableView::newDay  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 148 of file tableview.cpp.

References clear(), and updateView().

int TableView::next  )  [virtual]
 

the next record in the view or 0 if none is there

Implements Todo::ViewBase.

Definition at line 167 of file tableview.cpp.

References Todo::TodoView::sorted().

void TableView::paintCell QPainter *  p,
int  row,
int  col,
const QRect &  ,
bool 
 

Definition at line 372 of file tableview.cpp.

References Qt::black, BoxSize, QDate::currentDate(), f, Qt::green, m_pic_completed, m_pic_priority, QString::number(), off, Qt::red, Todo::TodoView::sorted(), text, tr, Opie::MM::x, Opie::MM::y, and Qt::yellow.

int TableView::prev  )  [virtual]
 

the previous record or 0 if none is there..

Implements Todo::ViewBase.

Definition at line 173 of file tableview.cpp.

References Todo::TodoView::sorted().

void TableView::removeEvent int  uid  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 245 of file tableview.cpp.

References updateView().

void TableView::replaceEvent const OPimTodo &   )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 237 of file tableview.cpp.

References addEvent().

void TableView::setCellContentFromEditor int  row,
int  col
[protected]
 

Definition at line 480 of file tableview.cpp.

References Todo::TodoView::sorted(), text, Todo::TodoView::update(), updateView(), and wid.

Referenced by slotPriority().

void TableView::setShowCategory const QString = QString::null  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 273 of file tableview.cpp.

References m_first, m_oleCat, and updateView().

void TableView::setShowCompleted bool   )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 248 of file tableview.cpp.

References updateView().

void TableView::setShowDeadline bool   )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 251 of file tableview.cpp.

References m_pic_completed, and width.

Referenced by TableView().

void TableView::setTodo int  uid,
const OPimTodo & 
 

Definition at line 222 of file tableview.cpp.

References Todo::TodoView::sort().

void TableView::showOverDue bool   )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 185 of file tableview.cpp.

References clear(), and updateView().

void TableView::slotClicked int  ,
int  ,
int  ,
const QPoint & 
[private, slot]
 

Definition at line 283 of file tableview.cpp.

References BoxSize, Todo::TableView::EditorWidget::cellCol(), Todo::TableView::EditorWidget::cellRow(), Todo::TableView::EditorWidget::cellWidget(), Todo::TodoView::complete(), Todo::TodoView::edit(), FALSE, m_editorWidget, Todo::TableView::EditorWidget::releaseCellWidget(), Todo::TableView::EditorWidget::setCellWidget(), Todo::TodoView::showTodo(), Todo::TodoView::sorted(), true, ui, wid, Opie::MM::x, and Opie::MM::y.

Referenced by TableView().

void TableView::slotPriority  )  [private, slot]
 

Definition at line 505 of file tableview.cpp.

References setCellContentFromEditor().

void TableView::sortColumn int  ,
bool  ,
bool 
 

Definition at line 342 of file tableview.cpp.

References Opie::OPimTodoAccess::Completed, Opie::OPimTodoAccess::Deadline, Opie::OPimTodoAccess::Priority, Todo::TodoView::setAscending(), Todo::TodoView::setSortOrder(), Opie::OPimBase::SortSummary, and updateView().

void TableView::timerEvent QTimerEvent *  e  )  [protected]
 

Definition at line 515 of file tableview.cpp.

References m_row, row, and Todo::TodoView::sorted().

QString TableView::type  )  const [virtual]
 

Implements Todo::ViewBase.

Definition at line 158 of file tableview.cpp.

References QString::fromLatin1(), and tr.

void TableView::updateView  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 190 of file tableview.cpp.

References end, id, m_enablePaint, m_row, Todo::TodoView::sort(), Todo::TodoView::sorted(), QTime::start(), and Todo::TodoView::todoWindow().

Referenced by addEvent(), newDay(), removeEvent(), setCellContentFromEditor(), setShowCategory(), setShowCompleted(), showOverDue(), and sortColumn().

void TableView::viewportPaintEvent QPaintEvent *   )  [private]
 

Definition at line 363 of file tableview.cpp.

References m_enablePaint.

QWidget * TableView::widget  )  [virtual]
 

Implements Todo::ViewBase.

Definition at line 332 of file tableview.cpp.


Member Data Documentation

int Todo::TableView::m_completeStrokeWidth [private]
 

Definition at line 120 of file tableview.h.

Referenced by initConfig().

EditorWidget Todo::TableView::m_editorWidget [protected]
 

Definition at line 112 of file tableview.h.

Referenced by keyPressEvent(), and slotClicked().

bool Todo::TableView::m_enablePaint [private]
 

Definition at line 83 of file tableview.h.

Referenced by TableView(), updateView(), and viewportPaintEvent().

bool Todo::TableView::m_first [private]
 

Definition at line 85 of file tableview.h.

Referenced by setShowCategory(), and TableView().

QString Todo::TableView::m_oleCat [private]
 

Definition at line 84 of file tableview.h.

Referenced by setShowCategory().

QPixmap Todo::TableView::m_pic_completed [private]
 

Definition at line 87 of file tableview.h.

Referenced by paintCell(), setShowDeadline(), and TableView().

QPixmap Todo::TableView::m_pic_priority[5] [private]
 

Definition at line 88 of file tableview.h.

Referenced by createEditor(), paintCell(), and TableView().

QPoint Todo::TableView::m_prevP [private]
 

Definition at line 122 of file tableview.h.

Referenced by contentsMousePressEvent(), and contentsMouseReleaseEvent().

bool Todo::TableView::m_row [private]
 

Definition at line 121 of file tableview.h.

Referenced by timerEvent(), and updateView().


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