~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/lancelot/parts/LancelotPart.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-26 13:35:18 UTC
  • mfrom: (1.1.37 upstream)
  • Revision ID: james.westby@ubuntu.com-20101126133518-oxz33xjsoi02ty9f
Tags: 4:4.5.80-0ubuntu1
* New upstream beta release
* Disable kubuntu_02_microblog_default_configuration.diff does not apply
* New package plasma-containments-addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <QGraphicsLinearLayout>
25
25
 
26
26
#include <KConfigDialog>
 
27
#include <KCompletion>
27
28
 
28
29
#include <Plasma/Applet>
29
30
#include <Plasma/PopupApplet>
39
40
#include "PartsMergedModel.h"
40
41
#include "LancelotPartConfig.h"
41
42
 
 
43
class IconOverlay;
 
44
 
42
45
class LancelotPart : public Plasma::PopupApplet
43
46
{
44
47
    Q_OBJECT
49
52
    void init();
50
53
    L_Override void dragEnterEvent(QGraphicsSceneDragDropEvent * event);
51
54
    L_Override void dropEvent(QGraphicsSceneDragDropEvent * event);
 
55
    L_Override void setGeometry(const QRectF & rect);
 
56
 
 
57
public Q_SLOTS:
 
58
    void configChanged();
 
59
    void activated();
 
60
 
 
61
    void togglePopup();
 
62
    void setPopupVisible(bool show = true);
 
63
    void toolTipAboutToShow();
52
64
 
53
65
private Q_SLOTS:
54
66
    void configAccepted();
66
78
    void immutabilityChanged(Plasma::ImmutabilityType value);
67
79
    void modelContentsUpdated();
68
80
    void resetSearch();
 
81
    void listSizeChanged();
 
82
 
 
83
    void updateShowingSize();
 
84
    void updateOverlay();
69
85
 
70
86
private:
71
87
    bool loadFromList(const QStringList & list);
86
102
 
87
103
    QString m_cmdarg;
88
104
    Plasma::IconWidget * m_icon;
 
105
    IconOverlay * m_iconOverlay;
89
106
    bool m_iconClickActivation;
90
107
    QBasicTimer m_timer;
 
108
    int m_rootHeight;
 
109
 
 
110
    KCompletion * m_completion;
91
111
 
92
112
    LancelotPartConfig m_config;
93
113
};