2
* Copyright 2007-2011 Aaron Seigo <aseigo@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Library General Public License as
6
* published by the Free Software Foundation; either version 2, or
7
* (at your option) any later version.
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
14
* You should have received a copy of the GNU Library General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef PLASMA_CORONA_P_H
21
#define PLASMA_CORONA_P_H
25
#include <kactioncollection.h>
27
class KShortcutsDialog;
37
CoronaPrivate(Corona *corona);
41
void showShortcutConfig();
42
void toggleImmutability();
43
void saveLayout(KSharedConfigPtr cg) const;
44
void updateContainmentImmutability();
45
void containmentDestroyed(QObject *obj);
47
Containment *addContainment(const QString &name, const QVariantList &args, uint id, bool delayedInit);
48
void offscreenWidgetDestroyed(QObject *);
49
QList<Plasma::Containment *> importLayout(const KConfigBase &conf, bool mergeConfig);
51
static bool s_positioningContainments;
54
ImmutabilityType immutability;
57
KSharedConfigPtr config;
58
QTimer configSyncTimer;
59
QList<Containment*> containments;
60
QHash<uint, QGraphicsWidget*> offscreenWidgets;
61
KActionCollection actions;
62
QMap<Containment::Type, ContainmentActionsPluginsConfig> containmentActionsDefaults;
63
QWeakPointer<KShortcutsDialog> shortcutsDlg;
64
QWeakPointer<AbstractDialogManager> dialogManager;
65
QHash<Containment::Type, QString> toolBoxPlugins;
66
QList<QWeakPointer<KActionCollection> > actionCollections;