2
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
3
Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
4
Author: Sergio Martins <sergio.martins@kdab.com>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program 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 General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#ifndef EVENTVIEWS_MULTIAGENDAVIEW_H_H
22
#define EVENTVIEWS_MULTIAGENDAVIEW_H_H
24
#include "eventview.h"
28
namespace EventViews {
30
class ConfigDialogInterface;
33
Shows one agenda for every resource side-by-side.
35
class EVENTVIEWS_EXPORT MultiAgendaView : public EventView
39
explicit MultiAgendaView( QWidget *parent = 0 );
42
Akonadi::Item::List selectedIncidences() const;
43
KCalCore::DateList selectedIncidenceDates() const;
44
int currentDateCount() const;
45
int maxDatesHint() const;
47
bool eventDurationHint( QDateTime &startDt, QDateTime &endDt, bool &allDay ) const;
50
void setCalendar( CalendarSupport::Calendar *cal );
53
bool hasConfigurationDialog() const;
55
void setChanges( Changes changes );
57
bool customColumnSetupUsed() const;
58
int customNumberOfColumns() const;
59
QVector<QString> customColumnTitles() const;
60
QVector<KCheckableProxyModel*>collectionSelectionModels() const;
62
void setPreferences( const PrefsPtr &prefs );
65
void showNewEventPopupSignal();
66
void showIncidencePopupSignal( const Akonadi::Item &, const QDate & );
70
void customCollectionsChanged( ConfigDialogInterface *dlg );
72
void showDates( const QDate &start, const QDate &end, const QDate &preferredMonth = QDate() );
73
void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
77
void setIncidenceChanger( CalendarSupport::IncidenceChanger *changer );
80
void resizeEvent( QResizeEvent *event );
81
void showEvent( QShowEvent *event );
83
/* reimp */void doRestoreConfig( const KConfigGroup &configGroup );
84
/* reimp */void doSaveConfig( KConfigGroup &configGroup );
88
* Reimplemented from KOrg::BaseView
90
void collectionSelectionChanged();
93
void slotSelectionChanged();
94
void slotClearTimeSpanSelection();
95
void resizeSplitters();
96
void setupScrollBar();
97
void zoomView( const int delta, const QPoint &pos, const Qt::Orientation ori );
98
void slotResizeScrollView();