digiKam
calwidget.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2003-11-03
7
* Description : calendar widget used to preview the active template.
8
*
9
* Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10
* Copyright (C) 2007-2008 by Orgad Shaneh <orgads at gmail dot com>
11
* Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
*
13
* This program is free software; you can redistribute it
14
* and/or modify it under the terms of the GNU General
15
* Public License as published by the Free Software Foundation;
16
* either version 2, or (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* ============================================================ */
24
25
#ifndef DIGIKAM_CAL_WIDGET_H
26
#define DIGIKAM_CAL_WIDGET_H
27
28
// Qt includes
29
30
#include <QWidget>
31
32
class
QPaintEvent;
33
34
namespace
DigikamGenericCalendarPlugin
35
{
36
37
class
CalWidget
:
public
QWidget
38
{
39
Q_OBJECT
40
41
public
:
42
43
explicit
CalWidget
(QWidget*
const
parent);
44
~CalWidget
()
override
;
45
46
void
setCurrent
(
int
curr);
47
int
current
()
const
;
48
49
public
Q_SLOTS:
50
51
void
recreate
();
52
53
protected
:
54
55
void
paintEvent
(QPaintEvent* e)
override
;
56
57
protected
:
58
59
int
m_current
;
60
};
61
62
}
// Namespace Digikam
63
64
#endif
// DIGIKAM_CAL_WIDGET_H
DigikamGenericCalendarPlugin::CalWidget
Definition:
calwidget.h:38
DigikamGenericCalendarPlugin::CalWidget::current
int current() const
Definition:
calwidget.cpp:54
DigikamGenericCalendarPlugin::CalWidget::recreate
void recreate()
Definition:
calwidget.cpp:71
DigikamGenericCalendarPlugin::CalWidget::setCurrent
void setCurrent(int curr)
Definition:
calwidget.cpp:49
DigikamGenericCalendarPlugin::CalWidget::~CalWidget
~CalWidget() override
Definition:
calwidget.cpp:45
DigikamGenericCalendarPlugin::CalWidget::CalWidget
CalWidget(QWidget *const parent)
Definition:
calwidget.cpp:37
DigikamGenericCalendarPlugin::CalWidget::paintEvent
void paintEvent(QPaintEvent *e) override
Definition:
calwidget.cpp:59
DigikamGenericCalendarPlugin::CalWidget::m_current
int m_current
Definition:
calwidget.h:59
DigikamGenericCalendarPlugin
Definition:
calendarplugin.cpp:38
core
dplugins
generic
tools
calendar
wizard
calwidget.h
Generated by
1.9.1