calendarsupport
#include <calprintdefaultplugins.h>
Public Member Functions | |
CalPrintTodos () | |
virtual | ~CalPrintTodos () |
virtual QWidget * | createConfigWidget (QWidget *) |
virtual QString | description () |
virtual bool | enabled () |
virtual QString | groupName () |
virtual QString | info () const |
virtual void | loadConfig () |
void | print (QPainter &p, int width, int height) |
virtual void | readSettingsWidget () |
virtual void | saveConfig () |
virtual void | setSettingsWidget () |
virtual int | sortID () |
Public Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
CalPrintPluginBase () | |
virtual | ~CalPrintPluginBase () |
int | borderWidth () const |
const KCalendarSystem * | calendarSystem () |
void | doLoadConfig () |
virtual void | doPrint (QPrinter *printer) |
void | doSaveConfig () |
void | drawAgendaDayBox (QPainter &p, const KCalCore::Event::List &eventList, const QDate &qd, bool expandable, const QTime &fromTime, const QTime &toTime, const QRect &box, bool includeDescription, bool excludeTime, bool excludeConfidential, bool excludePrivate, const QList< QDate > &workDays) |
void | drawAgendaItem (PrintCellItem *item, QPainter &p, const KDateTime &startPrintDate, const KDateTime &endPrintDate, float minlen, const QRect &box, bool includeDescription, bool excludeTime) |
int | drawAllDayBox (QPainter &p, const KCalCore::Event::List &eventList, const QDate &qd, bool expandable, const QRect &box, bool excludeConfidential, bool excludePrivate) |
int | drawBoxWithCaption (QPainter &p, const QRect &box, const QString &caption, const QString &contents, bool sameLine, bool expand, const QFont &captionFont, const QFont &textFont, bool richContents=false) |
void | drawDayBox (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, const QRect &box, bool fullDate=false, bool printRecurDaily=true, bool printRecurWeekly=true, bool singleLineLimit=true, bool showNoteLines=false, bool includeDescription=false, bool excludeDescription=true, bool excludePrivate=true) |
void | drawDays (QPainter &p, const QDate &start, const QDate &end, const QTime &fromTime, const QTime &toTime, const QRect &box, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate) |
void | drawDaysOfWeek (QPainter &p, const QDate &fromDate, const QDate &toDate, const QRect &box) |
void | drawDaysOfWeekBox (QPainter &p, const QDate &qd, const QRect &box) |
int | drawFooter (QPainter &p, const QRect &box) |
int | drawHeader (QPainter &p, const QString &title, const QDate &month1, const QDate &month2, const QRect &box, bool expand=false, QColor backColor=QColor()) |
void | drawJournal (const KCalCore::Journal::Ptr &journal, QPainter &p, int x, int &y, int width, int pageHeight) |
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) |
void | drawMonthTable (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, bool weeknumbers, bool recurDaily, bool recurWeekly, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate, const QRect &box) |
void | drawNoteLines (QPainter &p, const QRect &box, int startY) |
void | drawSmallMonth (QPainter &p, const QDate &qd, const QRect &box) |
void | drawSplitHeaderRight (QPainter &p, const QDate &fd, const QDate &td, const QDate &cd, int width, int height) |
void | drawSubHeaderBox (QPainter &p, const QString &str, const QRect &box) |
void | drawTextLines (QPainter &p, const QString &entry, int x, int &y, int width, int pageHeight, bool richTextEntry) |
void | drawTimeLine (QPainter &p, const QTime &fromTime, const QTime &toTime, const QRect &box) |
void | drawTimeTable (QPainter &p, const QDate &fromDate, const QDate &toDate, bool expandable, const QTime &fromTime, const QTime &toTime, const QRect &box, bool includeDescription, bool excludeTime, bool excludeConfidential, bool excludePrivate) |
void | drawTodo (int &count, const KCalCore::Todo::Ptr &todo, QPainter &p, KCalCore::TodoSortField sortField, KCalCore::SortDirection sortDir, bool connectSubTodos, bool strikeoutCompleted, bool desc, int posPriority, int posSummary, int posDueDt, int posPercentComplete, int level, int x, int &y, int width, int pageHeight, const KCalCore::Todo::List &todoList, TodoParentStart *r, bool excludeConfidential, bool excludePrivate) |
void | drawVerticalBox (QPainter &p, int linewidth, const QRect &box, const QString &str, int flags=-1) |
void | drawWeek (QPainter &p, const QDate &qd, const QTime &fromTime, const QTime &toTime, const QRect &box, bool singleLineLimit, bool showNoteLines, bool includeDescription, bool excludeConfidential, bool excludePrivate) |
int | footerHeight () const |
int | headerHeight () const |
int | margin () const |
QPrinter::Orientation | orientation () const |
int | padding () const |
void | printEventString (QPainter &p, const QRect &box, const QString &str, int flags=-1) |
bool | printFooter () const |
void | setBorderWidth (const int border) |
void | setCalendarSystem (const KCalendarSystem *calsys) |
void | setFooterHeight (const int height) |
void | setHeaderHeight (const int height) |
void | setMargin (const int margin) |
void | setPadding (const int margin) |
void | setPrintFooter (bool printFooter) |
void | setSubHeaderHeight (const int height) |
void | setUseColors (bool useColors) |
void | showEventBox (QPainter &p, int linewidth, const QRect &box, const KCalCore::Incidence::Ptr &incidence, const QString &str, int flags=-1) |
int | subHeaderHeight () const |
bool | useColors () const |
Public Member Functions inherited from CalendarSupport::PrintPlugin | |
PrintPlugin () | |
virtual | ~PrintPlugin () |
QWidget * | configWidget (QWidget *w) |
virtual QPrinter::Orientation | defaultOrientation () |
virtual KCalCore::Incidence::List | selectedIncidences () const |
virtual void | setCalendar (const Akonadi::ETMCalendar::Ptr &cal) |
virtual void | setConfig (KConfig *cfg) |
virtual void | setDateRange (const QDate &from, const QDate &to) |
virtual void | setSelectedIncidences (KCalCore::Incidence::List inc) |
Public Member Functions inherited from CalendarSupport::Plugin | |
Plugin () | |
virtual | ~Plugin () |
virtual void | configure (QWidget *) |
Protected Types | |
enum | eTodoPrintType { TodosAll = 0, TodosUnfinished, TodosDueRange } |
enum | eTodoSortDirection { TodoDirectionAscending = 0, TodoDirectionDescending, TodoDirectionUnset } |
enum | eTodoSortField { TodoFieldSummary = 0, TodoFieldStartDate, TodoFieldDueDate, TodoFieldPriority, TodoFieldPercentComplete, TodoFieldUnset } |
Protected Attributes | |
bool | mConnectSubTodos |
bool | mExcludeConfidential |
bool | mExcludePrivate |
bool | mIncludeDescription |
bool | mIncludeDueDate |
bool | mIncludePercentComplete |
bool | mIncludePriority |
QString | mPageTitle |
bool | mSortDirection |
bool | mSortField |
bool | mStrikeOutCompleted |
enum CalendarSupport::CalPrintTodos::eTodoPrintType | mTodoPrintType |
enum CalendarSupport::CalPrintTodos::eTodoSortDirection | mTodoSortDirection |
enum CalendarSupport::CalPrintTodos::eTodoSortField | mTodoSortField |
Protected Attributes inherited from CalendarSupport::CalPrintPluginBase | |
int | mBorder |
const KCalendarSystem * | mCalSys |
int | mFooterHeight |
int | mHeaderHeight |
int | mMargin |
int | mPadding |
bool | mPrintFooter |
bool | mShowNoteLines |
int | mSubHeaderHeight |
bool | mUseColors |
Protected Attributes inherited from CalendarSupport::PrintPlugin | |
Akonadi::ETMCalendar::Ptr | mCalendar |
KConfig * | mConfig |
QPointer< QWidget > | mConfigWidget |
QDate | mFromDate |
QPrinter * | mPrinter |
KCalCore::Incidence::List | mSelectedIncidences |
QDate | mToDate |
Additional Inherited Members | |
Public Types inherited from CalendarSupport::CalPrintPluginBase | |
enum | DisplayFlags { Text =0x0001, TimeBoxes =0x0002 } |
Public Types inherited from CalendarSupport::PrintPlugin | |
typedef QList< PrintPlugin * > | List |
Static Public Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
static void | drawBox (QPainter &p, int linewidth, const QRect &rect) |
static void | drawShadedBox (QPainter &p, int linewidth, const QBrush &brush, const QRect &rect) |
static int | weekdayColumn (int weekday) |
Static Public Member Functions inherited from CalendarSupport::PrintPlugin | |
static int | interfaceVersion () |
Static Public Member Functions inherited from CalendarSupport::Plugin | |
static int | interfaceVersion () |
static QString | serviceType () |
Protected Member Functions inherited from CalendarSupport::CalPrintPluginBase | |
QColor | categoryBgColor (const KCalCore::Incidence::Ptr &incidence) const |
QTime | dayStart () const |
void | drawIncidence (QPainter &p, const QRect &dayBox, const QString &time, const QString &summary, const QString &description, int &textY, bool singleLineLimit, bool includeDescription, bool richDescription) |
void | drawTodoLines (QPainter &p, const QString &entry, int x, int &y, int width, int pageHeight, bool richTextEntry, QList< TodoParentStart * > &startPoints, bool connectSubTodos) |
QString | toPlainText (const QString &htmlText) |
Detailed Description
Definition at line 253 of file calprintdefaultplugins.h.
Member Enumeration Documentation
|
protected |
Enumerator | |
---|---|
TodosAll | |
TodosUnfinished | |
TodosDueRange |
Definition at line 291 of file calprintdefaultplugins.h.
|
protected |
Enumerator | |
---|---|
TodoDirectionAscending | |
TodoDirectionDescending | |
TodoDirectionUnset |
Definition at line 306 of file calprintdefaultplugins.h.
|
protected |
Enumerator | |
---|---|
TodoFieldSummary | |
TodoFieldStartDate | |
TodoFieldDueDate | |
TodoFieldPriority | |
TodoFieldPercentComplete | |
TodoFieldUnset |
Definition at line 297 of file calprintdefaultplugins.h.
Constructor & Destructor Documentation
CalPrintTodos::CalPrintTodos | ( | ) |
Definition at line 1378 of file calprintdefaultplugins.cpp.
|
virtual |
Definition at line 1384 of file calprintdefaultplugins.cpp.
Member Function Documentation
Returns widget for configuring the print format.
Reimplemented from CalendarSupport::CalPrintPluginBase.
Definition at line 1388 of file calprintdefaultplugins.cpp.
|
inlinevirtual |
Returns short description of print format.
Implements CalendarSupport::PrintPlugin.
Definition at line 263 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns true if the plugin should be enabled; false otherwise.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 275 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns KConfig group name where store settings.
Implements CalendarSupport::PrintPlugin.
Definition at line 259 of file calprintdefaultplugins.h.
|
inlinevirtual |
Returns long description of print format.
Implements CalendarSupport::PrintPlugin.
Definition at line 267 of file calprintdefaultplugins.h.
|
virtual |
Load print format configuration from config file.
Implements CalendarSupport::CalPrintPluginBase.
Definition at line 1473 of file calprintdefaultplugins.cpp.
|
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 CalendarSupport::CalPrintPluginBase.
Definition at line 1515 of file calprintdefaultplugins.cpp.
|
virtual |
Read settings from configuration widget and apply them to current object.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 1393 of file calprintdefaultplugins.cpp.
|
virtual |
Write print format configuration to config file.
Implements CalendarSupport::CalPrintPluginBase.
Definition at line 1495 of file calprintdefaultplugins.cpp.
|
virtual |
Set configuration widget to reflect settings of current object.
Reimplemented from CalendarSupport::PrintPlugin.
Definition at line 1429 of file calprintdefaultplugins.cpp.
|
inlinevirtual |
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 CalendarSupport::PrintPlugin.
Definition at line 271 of file calprintdefaultplugins.h.
Member Data Documentation
|
protected |
Definition at line 316 of file calprintdefaultplugins.h.
|
protected |
Definition at line 320 of file calprintdefaultplugins.h.
|
protected |
Definition at line 321 of file calprintdefaultplugins.h.
|
protected |
Definition at line 312 of file calprintdefaultplugins.h.
|
protected |
Definition at line 314 of file calprintdefaultplugins.h.
|
protected |
Definition at line 315 of file calprintdefaultplugins.h.
|
protected |
Definition at line 313 of file calprintdefaultplugins.h.
|
protected |
Definition at line 289 of file calprintdefaultplugins.h.
|
protected |
Definition at line 319 of file calprintdefaultplugins.h.
|
protected |
Definition at line 318 of file calprintdefaultplugins.h.
|
protected |
Definition at line 317 of file calprintdefaultplugins.h.
|
protected |
|
protected |
|
protected |
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:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.