calendarsupport
yearprint.cpp
Go to the documentation of this file.
virtual void setSettingsWidget()
Set configuration widget to reflect settings of current object.
Definition: yearprint.cpp:50
int drawFooter(QPainter &p, const QRect &box)
Draw a page footer containing the printing date and possibly other things, like a page number...
Definition: calprintpluginbase.cpp:640
void drawMonth(QPainter &p, const QDate &dt, const QRect &box, int maxdays=-1, int subDailyFlags=TimeBoxes, int holidaysFlags=Text, bool excludeConfidential=false, bool excludePrivate=false)
Draw a vertical representation of the month containing the date dt.
Definition: calprintpluginbase.cpp:1536
int daysInMonth() const
virtual QPrinter::Orientation defaultOrientation()
Orientation of printout.
Definition: yearprint.cpp:103
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: printplugin.h:153
int headerHeight() const
Returns the height of the page header.
Definition: calprintpluginbase.cpp:327
const KCalendarSystem * calendarSystem()
Definition: calprintpluginbase.cpp:314
int padding() const
Definition: calprintpluginbase.cpp:383
QString number(int n, int base)
QDate addMonths(int nmonths) const
QPrinter::Orientation orientation() const
Definition: calprintpluginbase.cpp:225
virtual void setDateRange(const QDate &from, const QDate &to)
Set date range which should be printed.
Definition: yearprint.cpp:108
int year() const
static void drawBox(QPainter &p, int linewidth, const QRect &rect)
Draw a box with given width at the given coordinates.
Definition: calprintpluginbase.cpp:403
QPointer< QWidget > mConfigWidget
Definition: printplugin.h:164
bool newPage()
int drawHeader(QPainter &p, const QString &title, const QDate &month1, const QDate &month2, const QRect &box, bool expand=false, QColor backColor=QColor())
Draw the gray header bar of the printout to the QPainter.
Definition: calprintpluginbase.cpp:565
bool setDate(int year, int month, int day)
int footerHeight() const
Returns the height of the page footer.
Definition: calprintpluginbase.cpp:353
QDate currentDate()
virtual void readSettingsWidget()
Read settings from configuration widget and apply them to current object.
Definition: yearprint.cpp:39
virtual void loadConfig()
Load print format configuration from config file.
Definition: yearprint.cpp:76
QDate addDays(int ndays) const
virtual void print(QPainter &p, int width, int height)
Actually do the printing.
Definition: yearprint.cpp:117
virtual void saveConfig()
Write print format configuration to config file.
Definition: yearprint.cpp:88
virtual QWidget * createConfigWidget(QWidget *)
Returns widget for configuring the print format.
Definition: yearprint.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.