1
/***************************************************************************
2
* Copyright 2007 by 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 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. *
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 General Public License *
15
* 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 . *
18
***************************************************************************/
28
#include <Plasma/Applet>
30
class KPropertiesDialog;
37
class IconApplet : public Plasma::Applet
41
IconApplet(QObject *parent, const QVariantList &args);
45
void setUrl(const KUrl& url);
46
void constraintsEvent(Plasma::Constraints constraints);
47
void setDisplayLines(int displayLines);
49
QPainterPath shape() const;
53
void updateDesktopFile();
57
void dropEvent(QGraphicsSceneDragDropEvent *event);
58
void saveState(KConfigGroup &cg) const;
59
void showConfigurationInterface();
60
QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
63
void acceptedPropertiesDialog();
64
void propertiesDialogClosed();
65
void delayedDestroy();
66
void checkExistenceOfUrl();
67
void checkService(const QStringList &service);
68
void iconSizeChanged(int group);
71
//dropUrls from DolphinDropController
72
void dropUrls(const KUrl::List& urls,
73
const KUrl& destination,
74
Qt::KeyboardModifiers modifier);
76
Plasma::IconWidget* m_icon;
78
QString m_genericName;
79
KPropertiesDialog *m_dialog;
83
KService::Ptr m_service;
86
K_EXPORT_PLASMA_APPLET(icon, IconApplet)