1 /***************************************************************************
2 * Copyright 2005,2006,2007 by Siraj Razick *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19 ***************************************************************************/
27 #include <plasma/applet.h>
29 class KPropertiesDialog
;
31 class QGraphicsSceneMouseEvent
;
39 class IconApplet
: public Plasma::Applet
43 IconApplet(QObject
*parent
, const QVariantList
&args
);
47 void setUrl(const KUrl
& url
);
48 void constraintsUpdated(Plasma::Constraints constraints
);
49 void showConfigurationInterface();
50 void setDisplayLines(int displayLines
);
52 QSizeF
sizeHint() const;
53 Qt::Orientations
expandingDirections() const;
54 QPainterPath
shape() const;
60 void dropEvent(QGraphicsSceneDragDropEvent
*event
);
61 void saveState(KConfigGroup
*cg
) const;
64 void acceptedPropertiesDialog();
65 void propertiesDialogClosed();
68 //dropUrls from DolphinDropController
69 void dropUrls(const KUrl::List
& urls
,
70 const KUrl
& destination
,
71 Qt::KeyboardModifiers modifier
);
75 QString m_genericName
;
76 KPropertiesDialog
*m_dialog
;
77 KMimeType::Ptr m_mimetype
;
82 K_EXPORT_PLASMA_APPLET(icon
, IconApplet
)