korganizer
CalPrintWeek Class Reference
Inheritance diagram for CalPrintWeek:

Detailed Description
Definition at line 105 of file calprintdefaultplugins.h.
Public Member Functions | |
CalPrintWeek () | |
virtual | ~CalPrintWeek () |
virtual QString | description () |
virtual QString | info () |
virtual int | sortID () |
virtual bool | enabled () |
virtual QWidget * | createConfigWidget (QWidget *) |
virtual KPrinter::Orientation | defaultOrientation () |
void | print (QPainter &p, int width, int height) |
virtual void | readSettingsWidget () |
virtual void | setSettingsWidget () |
virtual void | loadConfig () |
virtual void | saveConfig () |
virtual void | setDateRange (const QDate &from, const QDate &to) |
Protected Types | |
enum | eWeekPrintType { Filofax = 0, Timetable, SplitWeek } |
Protected Attributes | |
enum CalPrintWeek::eWeekPrintType | mWeekPrintType |
QTime | mStartTime |
QTime | mEndTime |
bool | mIncludeTodos |
Member Function Documentation
virtual QString CalPrintWeek::description | ( | ) | [inline, virtual] |
Returns short description of print format.
Implements KOrg::PrintPlugin.
Definition at line 110 of file calprintdefaultplugins.h.
virtual QString CalPrintWeek::info | ( | ) | [inline, virtual] |
Returns long description of print format.
Implements KOrg::PrintPlugin.
Definition at line 111 of file calprintdefaultplugins.h.
virtual int CalPrintWeek::sortID | ( | ) | [inline, virtual] |
Returns the sort ID of the plugin.
This value will be used to identify the config widget in the widget stack, and to sort the plugin name in the print style selection list. If another plugin uses the same ID or a value of -1 is returned, a unique (negative) ID will be automatically generated and thus the position of the plugin in the selection list is undefined.
Reimplemented from KOrg::PrintPlugin.
Definition at line 112 of file calprintdefaultplugins.h.
virtual bool CalPrintWeek::enabled | ( | ) | [inline, virtual] |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented from KOrg::PrintPlugin.
Definition at line 113 of file calprintdefaultplugins.h.
QWidget * CalPrintWeek::createConfigWidget | ( | QWidget * | ) | [virtual] |
Returns widget for configuring the print format.
Reimplemented from CalPrintPluginBase.
Definition at line 625 of file calprintdefaultplugins.cpp.
KPrinter::Orientation CalPrintWeek::defaultOrientation | ( | ) | [virtual] |
Returns the default orientation for the eWeekPrintType.
Reimplemented from KOrg::PrintPlugin.
Definition at line 693 of file calprintdefaultplugins.cpp.
void CalPrintWeek::print | ( | QPainter & | p, | |
int | width, | |||
int | height | |||
) | [virtual] |
Actually do the printing.
- Parameters:
-
p QPainter the print result is painted to width Width of printable area height Height of printable area
Implements CalPrintPluginBase.
Definition at line 711 of file calprintdefaultplugins.cpp.
void CalPrintWeek::readSettingsWidget | ( | ) | [virtual] |
Read settings from configuration widget and apply them to current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 630 of file calprintdefaultplugins.cpp.
void CalPrintWeek::setSettingsWidget | ( | ) | [virtual] |
Set configuration widget to reflect settings of current object.
Reimplemented from KOrg::PrintPlugin.
Definition at line 649 of file calprintdefaultplugins.cpp.
void CalPrintWeek::loadConfig | ( | ) | [virtual] |
Load print format configuration from config file.
Implements CalPrintPluginBase.
Definition at line 667 of file calprintdefaultplugins.cpp.
void CalPrintWeek::saveConfig | ( | ) | [virtual] |
Write print format configuration to config file.
Implements CalPrintPluginBase.
Definition at line 682 of file calprintdefaultplugins.cpp.
void CalPrintWeek::setDateRange | ( | const QDate & | from, | |
const QDate & | to | |||
) | [virtual] |
Set date range which should be printed.
Reimplemented from KOrg::PrintPlugin.
Definition at line 700 of file calprintdefaultplugins.cpp.
The documentation for this class was generated from the following files: