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

calendarsupport

  • sources
  • kde-4.14
  • kdepim
  • calendarsupport
  • printing
yearprint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  As a special exception, permission is given to link this program
19  with any edition of Qt, and distribute the resulting executable,
20  without including the source code for Qt in the source distribution.
21 */
22 
23 #ifndef CALENDARSUPPORT_PRINTING_YEARPRINT_H
24 #define CALENDARSUPPORT_PRINTING_YEARPRINT_H
25 
26 #include "calendarsupport_export.h"
27 #include "calprintpluginbase.h"
28 #include "ui_calprintyearconfig_base.h"
29 
30 namespace CalendarSupport {
31 
32 class CALENDARSUPPORT_EXPORT CalPrintYear : public CalPrintPluginBase
33 {
34  public:
35  CalPrintYear():CalPrintPluginBase() {}
36  virtual ~CalPrintYear() {}
37  virtual QString groupName() { return QString::fromLatin1( "Print year" ); }
38  virtual QString description() { return i18n( "Print &year" ); }
39  virtual QString info() const { return i18n( "Prints a calendar for an entire year" ); }
40  virtual int sortID() { return CalPrinterBase::Year; }
41  virtual bool enabled() { return true; }
42  virtual QWidget *createConfigWidget( QWidget * );
43  virtual QPrinter::Orientation defaultOrientation();
44 
45  public:
46  virtual void print( QPainter &p, int width, int height );
47  virtual void readSettingsWidget();
48  virtual void setSettingsWidget();
49  virtual void loadConfig();
50  virtual void saveConfig();
51  virtual void setDateRange( const QDate &from, const QDate &to );
52 
53  protected:
54  int mYear;
55  int mPages;
56  int mSubDaysEvents, mHolidaysEvents;
57 };
58 
59 class CALENDARSUPPORT_EXPORT CalPrintYearConfig
60  : public QWidget, public Ui::CalPrintYearConfig_Base
61 {
62  public:
63  explicit CalPrintYearConfig( QWidget *parent ) : QWidget( parent )
64  {
65  setupUi( this );
66  }
67 };
68 
69 }
70 
71 #endif
QWidget
calprintpluginbase.h
CalendarSupport::CalPrintYear::info
virtual QString info() const
Returns long description of print format.
Definition: yearprint.h:39
CalendarSupport::CalPrintYear::mSubDaysEvents
int mSubDaysEvents
Definition: yearprint.h:56
CalendarSupport::CalPrintYear
Definition: yearprint.h:32
calendarsupport_export.h
CalendarSupport::CalPrintYear::CalPrintYear
CalPrintYear()
Definition: yearprint.h:35
CalendarSupport::CalPrintYear::description
virtual QString description()
Returns short description of print format.
Definition: yearprint.h:38
CalendarSupport::CalPrintYearConfig
Definition: yearprint.h:59
QPainter
QDate
CalendarSupport::CalPrintYear::groupName
virtual QString groupName()
Returns KConfig group name where store settings.
Definition: yearprint.h:37
QString
CalendarSupport::CalPrintPluginBase
Base class for Calendar printing classes.
Definition: calprintpluginbase.h:62
CalendarSupport::CalPrintYear::mYear
int mYear
Definition: yearprint.h:54
CalendarSupport::CalPrintYearConfig::CalPrintYearConfig
CalPrintYearConfig(QWidget *parent)
Definition: yearprint.h:63
CalendarSupport::CalPrinterBase::Year
Definition: printplugin.h:44
CalendarSupport::CalPrintYear::enabled
virtual bool enabled()
Returns true if the plugin should be enabled; false otherwise.
Definition: yearprint.h:41
QString::fromLatin1
QString fromLatin1(const char *str, int size)
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
CalendarSupport::CalPrintYear::sortID
virtual int sortID()
Returns the sort ID of the plugin.
Definition: yearprint.h:40
CalendarSupport::CalPrintYear::~CalPrintYear
virtual ~CalPrintYear()
Definition: yearprint.h:36
CalendarSupport::CalPrintYear::mPages
int mPages
Definition: yearprint.h:55
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

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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