1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2009 Martin Gräßlin <kde@martin-graesslin.com>
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*********************************************************************/
21
#ifndef DESKTOPNAMESWIDGET_H
22
#define DESKTOPNAMESWIDGET_H
33
class KWinDesktopConfig;
35
class DesktopNamesWidget : public QWidget
39
DesktopNamesWidget(QWidget *parent);
40
~DesktopNamesWidget();
41
QString name(int desktop);
42
void setName(int desktop, QString desktopName);
43
void setDefaultName(int desktop);
44
void setMaxDesktops(int maxDesktops);
45
void setDesktopConfig(KWinDesktopConfig *desktopConfig);
51
void numberChanged(int number);
54
QList< QLabel* > m_nameLabels;
55
QList< KLineEdit* > m_nameInputs;
56
QGridLayout* m_namesLayout;
58
KWinDesktopConfig *m_desktopConfig;
63
#endif // DESKTOPNAMESWIDGET_H