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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: james.westby@ubuntu.com-20100525095014-e3cebfkdenjrx3xg
Tags: upstream-4.4.80
ImportĀ upstreamĀ versionĀ 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
 
3
 *
 
4
 *   This program is free software; you can redistribute it and/or modify
 
5
 *   it under the terms of the GNU General Public License version 2,
 
6
 *   or (at your option) any later version, as published by the Free
 
7
 *   Software Foundation
 
8
 *
 
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
 
13
 *
 
14
 *   You should have received a copy of the GNU 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.
 
18
 */
 
19
 
 
20
#ifndef LANCELOT_PART_CONFIG_H
 
21
#define LANCELOT_PART_CONFIG_H
 
22
 
 
23
#include <ui_LancelotPartConfigBase.h>
 
24
 
 
25
#include <QToolButton>
 
26
 
 
27
#include <Lancelot/Lancelot>
 
28
#include <Lancelot/PopupList>
 
29
 
 
30
class LancelotPartConfig: public QObject, public Ui::LancelotPartConfigBase {
 
31
    Q_OBJECT
 
32
 
 
33
public:
 
34
    void setupUi(QWidget * widget);
 
35
 
 
36
    bool iconClickActivation() const;
 
37
    bool showSearchBox() const;
 
38
    QString icon() const;
 
39
 
 
40
    bool contentsClickActivation() const;
 
41
    Lancelot::ExtenderPosition contentsExtenderPosition() const;
 
42
 
 
43
    void setIconClickActivation(bool value);
 
44
    void setIcon(const QString & icon);
 
45
    void setIcon(const QIcon & icon);
 
46
 
 
47
    void setContentsClickActivation(bool value);
 
48
    void setContentsExtenderPosition(Lancelot::ExtenderPosition position);
 
49
    void setShowSearchBox(bool value);
 
50
 
 
51
    void setPartData(const QString & data);
 
52
    QString partData() const;
 
53
 
 
54
    void addItem(const QString & itemData);
 
55
    void setItemData(
 
56
        QListWidgetItem * item, const QString & itemData);
 
57
 
 
58
    QButtonGroup * qbgIcon;
 
59
    QButtonGroup * qbgContents;
 
60
    QButtonGroup * qbgContentsExtenderPosition;
 
61
 
 
62
    QToolButton  * buttonContentsRemove;
 
63
 
 
64
public Q_SLOTS:
 
65
    void buttonContentsAddClicked();
 
66
    void buttonContentsRemoveClicked();
 
67
    void buttonContentsAddItemSelected(int index);
 
68
 
 
69
    void listModelsItemClicked(QListWidgetItem * item);
 
70
    void listModelsItemSelectionChanged();
 
71
 
 
72
private:
 
73
    Lancelot::PopupList * popup;
 
74
 
 
75
};
 
76
 
 
77
#endif /* LANCELOT_LAUNCHER_APPLET_CONFIG_H_ */