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

PIMPrint Library

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

#include <calprintweek.h>

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

Public Member Functions

 CalPrintWeek (QPrinter *printer)
 
virtual ~CalPrintWeek ()
 
QDate endDate () const
 
QTime endTime () const
 
void print (QPainter &p)
 
void setEndDate (const QDate &date)
 
void setEndTime (const QTime &time)
 
void setStartDate (const QDate &date)
 
void setStartTime (const QTime &time)
 
QDate startDate () const
 
QTime startTime () 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
 
QTime endTime
 
QDate startDate
 
QTime startTime
 
- 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

- 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
}
 
- 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 33 of file calprintweek.h.

Constructor & Destructor Documentation

CalPrintWeek::CalPrintWeek ( QPrinter *  printer)
explicit

Definition at line 44 of file calprintweek.cpp.

CalPrintWeek::~CalPrintWeek ( )
virtual

Definition at line 67 of file calprintweek.cpp.

Member Function Documentation

QDate PimPrint::Calendar::CalPrintWeek::endDate ( ) const

Returns the current print ending date.

See also
setEndDate(), startDate()
QTime PimPrint::Calendar::CalPrintWeek::endTime ( ) const

Returns the current print ending time.

See also
setEndTime(), startTime()
void CalPrintWeek::print ( QPainter &  p)
virtual

Implements PimPrint::Calendar::CalPrintBase.

Definition at line 72 of file calprintweek.cpp.

void CalPrintWeek::setEndDate ( const QDate &  date)

Sets the printout ending date.

Parameters
dtis the ending date to print.
See also
endDate(), setStartDate()

Definition at line 98 of file calprintweek.cpp.

void CalPrintWeek::setEndTime ( const QTime &  time)

Sets the printout ending time.

Each day printed will end at this time.

Parameters
dtis the ending time to print.
See also
endTime(), setStartTime()

Definition at line 118 of file calprintweek.cpp.

void CalPrintWeek::setStartDate ( const QDate &  date)

Sets the printout starting date.

Parameters
dtis the starting date to print.
See also
startDate(), setEndDate()

Definition at line 88 of file calprintweek.cpp.

void CalPrintWeek::setStartTime ( const QTime &  time)

Sets the printout starting time.

Each day printed will start at this time.

Parameters
dtis the starting time to print.
See also
startTime(), setEndTime()

Definition at line 108 of file calprintweek.cpp.

QDate PimPrint::Calendar::CalPrintWeek::startDate ( ) const

Returns the current print starting date.

See also
setStartDate(), endDate()
QTime PimPrint::Calendar::CalPrintWeek::startTime ( ) const

Returns the current print starting time.

See also
setStartTime(), endTime()

Property Documentation

QDate CalPrintWeek::endDate
readwrite

Definition at line 39 of file calprintweek.h.

QTime CalPrintWeek::endTime
readwrite

Definition at line 45 of file calprintweek.h.

QDate CalPrintWeek::startDate
readwrite

Definition at line 36 of file calprintweek.h.

QTime CalPrintWeek::startTime
readwrite

Definition at line 42 of file calprintweek.h.


The documentation for this class was generated from the following files:
  • calprintweek.h
  • calprintweek.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