2
* Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)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 version 2,
6
* or (at your option) any later version, as published by the Free
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
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 LANCELOT_PART_CONFIG_H
21
#define LANCELOT_PART_CONFIG_H
23
#include <ui_LancelotPartConfigBase.h>
25
#include <QToolButton>
27
#include <Lancelot/Lancelot>
28
#include <Lancelot/PopupList>
30
class LancelotPartConfig: public QObject, public Ui::LancelotPartConfigBase {
34
void setupUi(QWidget * widget);
36
bool iconClickActivation() const;
37
bool showSearchBox() const;
40
bool contentsClickActivation() const;
41
Lancelot::ExtenderPosition contentsExtenderPosition() const;
43
void setIconClickActivation(bool value);
44
void setIcon(const QString & icon);
45
void setIcon(const QIcon & icon);
47
void setContentsClickActivation(bool value);
48
void setContentsExtenderPosition(Lancelot::ExtenderPosition position);
49
void setShowSearchBox(bool value);
51
void setPartData(const QString & data);
52
QString partData() const;
54
void addItem(const QString & itemData);
56
QListWidgetItem * item, const QString & itemData);
58
QButtonGroup * qbgIcon;
59
QButtonGroup * qbgContents;
60
QButtonGroup * qbgContentsExtenderPosition;
62
QToolButton * buttonContentsRemove;
65
void buttonContentsAddClicked();
66
void buttonContentsRemoveClicked();
67
void buttonContentsAddItemSelected(int index);
69
void listModelsItemClicked(QListWidgetItem * item);
70
void listModelsItemSelectionChanged();
73
Lancelot::PopupList * popup;
77
#endif /* LANCELOT_LAUNCHER_APPLET_CONFIG_H_ */