PIMPrint Library
#include <calprinttodos.h>
Public Member Functions | |
CalPrintTodos (QPrinter *printer) | |
virtual | ~CalPrintTodos () |
QDate | endDate () const |
QString | headerText () const |
void | print (QPainter &p) |
void | setEndDate (const QDate &date) |
void | setHeaderText (const QString &text) |
void | setSortDirection (const KCalCore::SortDirection &sortDirection) |
void | setSortField (const KCalCore::TodoSortField &sortField) |
void | setStartDate (const QDate &date) |
void | setTodoType (TodoTypes todoType) |
KCalCore::SortDirection | sortDirection () const |
KCalCore::TodoSortField | sortField () const |
QDate | startDate () const |
TodoTypes | todoType () const |
Public Member Functions inherited from PimPrint::Calendar::CalPrintBase | |
CalPrintBase (QPrinter *printer) | |
~CalPrintBase () | |
int | boxBorderWidth () const |
KCalendarSystem * | calendarSystem () const |
ExtraOptions | extraOptions () const |
int | footerHeight () const |
int | headerHeight () const |
InfoOptions | infoOptions () const |
int | itemBoxBorderWidth () const |
int | margins () const |
int | padding () const |
int | pageHeight () const |
int | pageWidth () const |
KCalCore::Calendar::Ptr | printCalendar () const |
Style | printStyle () const |
RangeOptions | rangeOptions () const |
void | setCalendarSystem (KCalendarSystem *calSystem) |
void | setExtraOptions (ExtraOptions flags) |
void | setFooterHeight (const int height) |
void | setHeaderHeight (const int height) |
void | setInfoOptions (InfoOptions flags) |
void | setPadding (const int padding) |
void | setPageHeight (const int height) const |
void | setPageWidth (const int width) const |
void | setPrintCalendar (const KCalCore::Calendar::Ptr &calendar) |
void | setPrintStyle (const Style style) |
void | setRangeOptions (RangeOptions flags) |
void | setSubHeaderHeight (const int height) |
void | setThePrinter (QPrinter *printer) |
void | setTypeOptions (TypeOptions flags) |
void | setUseColor (const bool useColor) |
void | setUseLandscape (const bool landscape) |
int | subHeaderHeight () const |
QPrinter * | thePrinter () const |
int | timeLineWidth () const |
TypeOptions | typeOptions () const |
bool | useColor () const |
bool | useLandscape () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Properties | |
QDate | endDate |
QString | headerText |
KCalCore::SortDirection | READ |
KCalCore::TodoSortField | READ |
QDate | startDate |
TodoTypes | todoType |
Properties inherited from PimPrint::Calendar::CalPrintBase | |
int | boxBorderWidth |
int | footerHeight |
int | headerHeight |
int | itemBoxBorderWidth |
int | margins |
int | padding |
int | pageHeight |
int | pageWidth |
int | subheaderHeight |
int | timeLineWidth |
bool | useColor |
bool | useLandscape |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from PimPrint::Calendar::CalPrintBase | |
QString | cleanString (const QString &str) const |
void | drawAgendaDayBox (QPainter &p, const QRect &box, const QDate &date, const KCalCore::Event::List &eventList, const QTime &startTime, const QTime &endTime, const QList< QDate > &workDays) const |
void | drawAgendaItem (PrintCellItem *item, QPainter &p, const KDateTime &startPrintDate, const KDateTime &endPrintDate, float minlen, const QRect &box) const |
void | drawBox (QPainter &p, const int linewidth, const QRect &box) const |
void | drawDayBox (QPainter &p, const QRect &box, const QDate &date, const QTime &startTime, const QTime &endTime, bool fullDate=false) const |
void | drawDaysOfWeek (QPainter &p, const QRect &box, const QDate &fromDate, const QDate &toDate) const |
int | drawFooter (QPainter &p, const QRect &box) const |
int | drawHeader (QPainter &p, const QRect &box, const QString &title, const QDate &leftMonth=QDate(), const QDate &rightMonth=QDate(), const bool expand=false, const QColor &backColor=QColor()) const |
void | drawItemBox (QPainter &p, int linewidth, const QRect &box, const KCalCore::Incidence::Ptr &incidence, const QString &str, int flags=-1) const |
void | drawItemString (QPainter &p, const QRect &box, const QString &str, int flags=-1) const |
void | drawShadedBox (QPainter &p, const int linewidth, const QBrush &brush, const QRect &box) const |
void | drawSubHeader (QPainter &p, const QRect &box, const QString &str) const |
void | drawTimeLine (QPainter &p, const QTime &startTime, const QTime &endTime, const QRect &box) const |
void | drawTimeTable (QPainter &p, const QRect &box, const QDate &startDate, const QDate &endDate, const QTime &startTime, const QTime &endTime, bool expandAll=false) const |
void | drawVerticalBox (QPainter &p, const int linewidth, const QRect &box, const QString &str, int flags=-1) const |
QString | toPlainText (const QString &htmlText) const |
int | weekdayColumn (int weekday) const |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
Definition at line 35 of file calprinttodos.h.
Member Enumeration Documentation
Various types of to-dos that can be printed.
Enumerator | |
---|---|
AllTodos | |
Completed | |
InProgressTodos | |
NotStarted | |
OpenEnded | |
OverDue | |
DueDateRangeTodos |
Definition at line 72 of file calprinttodos.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 67 of file calprinttodos.cpp.
|
virtual |
Definition at line 89 of file calprinttodos.cpp.
Member Function Documentation
QDate PimPrint::Calendar::CalPrintTodos::endDate | ( | ) | const |
Returns the current print ending date.
- See also
- setEndDate(), startDate()
QString PimPrint::Calendar::CalPrintTodos::headerText | ( | ) | const |
Returns the current header text string.
- See also
- setHeaderText()
|
virtual |
Implements PimPrint::Calendar::CalPrintBase.
Definition at line 144 of file calprinttodos.cpp.
void CalPrintTodos::setEndDate | ( | const QDate & | date | ) |
Sets the printout ending date.
- Parameters
-
dt is the ending date to print.
- See also
- endDate(), setStartDate()
Definition at line 104 of file calprinttodos.cpp.
void CalPrintTodos::setHeaderText | ( | const QString & | text | ) |
Sets the text for the print header.
- Parameters
-
text is the string for the print header.
- See also
- headerText()
Definition at line 114 of file calprinttodos.cpp.
void CalPrintTodos::setSortDirection | ( | const KCalCore::SortDirection & | sortDirection | ) |
Sets the sorting direction.
- Parameters
-
sortDirection sort in this direction when printing.
- See also
- sortDirection(), sortField()
Definition at line 134 of file calprinttodos.cpp.
void CalPrintTodos::setSortField | ( | const KCalCore::TodoSortField & | sortField | ) |
Sets the sorting to-do property.
- Parameters
-
sortField sort on this to-do property when printing.
- See also
- sortField(), sortDirection()
Definition at line 124 of file calprinttodos.cpp.
void CalPrintTodos::setStartDate | ( | const QDate & | date | ) |
Sets the printout starting date.
- Parameters
-
dt is the starting date to print.
- See also
- startDate(), setEndDate()
Definition at line 94 of file calprinttodos.cpp.
void PimPrint::Calendar::CalPrintTodos::setTodoType | ( | TodoTypes | todoType | ) |
Sets the type of to-dos to print.
- Parameters
-
todoType is a TodoTypes enum that specifies the types of to-dos to print.
- See also
- todoType()
KCalCore::SortDirection CalPrintTodos::sortDirection | ( | ) | const |
Returns the current sorting direction.
- See also
- setSortDirection(), setSortField()
Definition at line 139 of file calprinttodos.cpp.
KCalCore::TodoSortField CalPrintTodos::sortField | ( | ) | const |
Returns the current sorting field.
- See also
- setSortField(), setSortDirection()
Definition at line 129 of file calprinttodos.cpp.
QDate PimPrint::Calendar::CalPrintTodos::startDate | ( | ) | const |
Returns the current print starting date.
- See also
- setStartDate(), endDate()
TodoTypes PimPrint::Calendar::CalPrintTodos::todoType | ( | ) | const |
Returns the current TodoTypes enum.
- See also
- setTodoType()
Property Documentation
|
readwrite |
Definition at line 43 of file calprinttodos.h.
|
readwrite |
Definition at line 49 of file calprinttodos.h.
|
write |
Definition at line 52 of file calprinttodos.h.
|
write |
Definition at line 55 of file calprinttodos.h.
|
readwrite |
Definition at line 40 of file calprinttodos.h.
|
readwrite |
Definition at line 46 of file calprinttodos.h.
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:32:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.