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

PIMPrint Library

  • sources
  • kde-4.14
  • kdepim
  • pimprint
  • calendar
calprintmonth.h
Go to the documentation of this file.
1 /*
2  * This file is part of the PimPrint library.
3  *
4  * Copyright (C) 2013 Allen Winter <winter@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef PIMPRINT_CALPRINTMONTH_H
23 #define PIMPRINT_CALPRINTMONTH_H
24 
25 #include "calprintbase.h"
26 
27 namespace PimPrint
28 {
29 
30 namespace Calendar
31 {
32 
33 class PIMPRINT_CALENDAR_EXPORT CalPrintMonth : public CalPrintBase
34 {
35  Q_PROPERTY(QDate startDate
36  READ startDate WRITE setStartDate)
37 
38  Q_PROPERTY(QDate endDate
39  READ endDate WRITE setEndDate)
40 
41 public:
42  explicit CalPrintMonth(QPrinter *printer);
43 
44  virtual ~CalPrintMonth();
45 
46  void print(QPainter &p);
47 
53  void setStartDate(const QDate &date);
54 
59  QDate startDate() const;
60 
66  void setEndDate(const QDate &date);
67 
72  QDate endDate() const;
73 
74 private:
75  //TODO: move to dpointer
76 
91  void drawMonthTable(QPainter &p, const QRect &box,
92  const QDate &date,
93  const QTime &fromTime, const QTime &toTime) const;
94 
95  //@cond PRIVATE
96  class Private;
97  Private *const d;
98  //@endcond
99 
100 };
101 
102 }
103 
104 }
105 
106 #endif
PimPrint::Calendar::CalPrintMonth
Definition: calprintmonth.h:33
QPrinter
QTime
QRect
QPainter
PimPrint::Calendar::CalPrintBase
Definition: calprintbase.h:67
QDate
PIMPRINT_CALENDAR_EXPORT
#define PIMPRINT_CALENDAR_EXPORT
Definition: pimprint_calendar_export.h:35
calprintbase.h
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