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

PIMPrint Library

  • PimPrint
  • Calendar
  • CalPrintTodos
Public Types | Public Member Functions | Properties | List of all members
PimPrint::Calendar::CalPrintTodos Class Reference

#include <calprinttodos.h>

Inheritance diagram for PimPrint::Calendar::CalPrintTodos:
Inheritance graph
[legend]

Public Types

enum  TodoTypes {
  AllTodos, Completed, InProgressTodos, NotStarted,
  OpenEnded, OverDue, DueDateRangeTodos
}
 
- Public Types inherited from PimPrint::Calendar::CalPrintBase
enum  ExtraOption {
  ExtraSingleLine = 0x00000001, ExtraNoteLines = 0x00000002, ExtraWeekNumbers = 0x00000004, ExtraStrikeDoneTodos = 0x00000008,
  ExtraConnectSubTodos = 0x00000010, ExtraFooter = 0x00000020
}
 
enum  InfoOption {
  InfoAll = 0x00000001, InfoDescription = 0x00000002, InfoLocation = 0x00000004, InfoAttendees = 0x00000008,
  InfoCategories = 0x00000010, InfoPriority = 0x00000020, InfoDueDate = 0x00000040, InfoPercentDone = 0x00000080,
  InfoTimeRange = 0x00000100
}
 
enum  RangeOption { RangeTimeExpand = 0x00000001, RangeRecurAny = 0x00000002, RangeRecurDaily = 0x00000004, RangeRecurWeekly = 0x00000008 }
 
enum  Style {
  None, Incidence, DayFiloFax, DayTimeTable,
  DaySingleTimeTable, WeekFiloFax, WeekTimeTable, WeekSplitWeek,
  MonthClassic, TodoList, Journal, Year
}
 
enum  TypeOption {
  TypeAll = 0x00000001, TypeEvent = 0x00000002, TypeTodo = 0x00000004, TypeJournal = 0x00000008,
  TypeConfidential = 0x00000010, TypePrivate = 0x00000020
}
 

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 &regExp) 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

enum PimPrint::Calendar::CalPrintTodos::TodoTypes

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

CalPrintTodos::CalPrintTodos ( QPrinter *  printer)
explicit

Definition at line 67 of file calprinttodos.cpp.

CalPrintTodos::~CalPrintTodos ( )
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()
void CalPrintTodos::print ( QPainter &  p)
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
dtis 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
textis 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
sortDirectionsort 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
sortFieldsort 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
dtis 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
todoTypeis 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

QDate CalPrintTodos::endDate
readwrite

Definition at line 43 of file calprinttodos.h.

QString CalPrintTodos::headerText
readwrite

Definition at line 49 of file calprinttodos.h.

KCalCore::SortDirection PimPrint::Calendar::CalPrintTodos::READ
write

Definition at line 52 of file calprinttodos.h.

KCalCore::TodoSortField PimPrint::Calendar::CalPrintTodos::READ
write

Definition at line 55 of file calprinttodos.h.

QDate CalPrintTodos::startDate
readwrite

Definition at line 40 of file calprinttodos.h.

TodoTypes PimPrint::Calendar::CalPrintTodos::todoType
readwrite

Definition at line 46 of file calprinttodos.h.


The documentation for this class was generated from the following files:
  • calprinttodos.h
  • calprinttodos.cpp
This file is part of the KDE documentation.
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.

PIMPrint Library

Skip menu "PIMPrint Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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