3
This file is part of the KDE project, module kcmbackground.
5
Copyright (C) 1999 Geert Jansen <g.t.jansen@stud.tue.nl>
6
Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
version 2 as published by the Free Software Foundation.
12
This library 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 GNU
15
Library General Public License for more details.
17
You should have received a copy of the GNU Library General Public License
18
along with this library; see the file COPYING.LIB. If not, write to
19
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
Boston, MA 02110-1301, USA.
26
#include <Qt3Support/Q3Dict>
27
#include <Qt3Support/Q3CheckListItem>
35
class KBackgroundRenderer;
36
class KBackgroundProgram;
38
class BGAdvancedDialog : public KDialog
42
BGAdvancedDialog(KBackgroundRenderer *_r, QWidget *parent, bool _kdmMode);
44
void setCacheSize(int s);
47
void setTextColor(const QColor &color);
48
QColor textBackgroundColor();
49
void setTextBackgroundColor(const QColor &color);
51
void setShadowEnabled(bool enabled);
52
void setTextLines(int lines);
53
int textLines() const;
54
void setTextWidth(int width);
55
int textWidth() const;
67
void addProgram(const QString &name);
68
void removeProgram(const QString &name);
69
void selectProgram(const QString &name);
72
void slotProgramItemClicked(Q3ListViewItem *item);
73
void slotProgramItemDoubleClicked(Q3ListViewItem *item);
74
void slotProgramChanged();
75
void slotEnableProgram(bool b);
78
KBackgroundRenderer *r;
83
Q3Dict<Q3ListViewItem> m_programItems;
84
QString m_selectedProgram;
85
int m_oldBackgroundMode;
90
* Dialog to edit a background program.
92
class KProgramEditDialog: public KDialog
97
explicit KProgramEditDialog(bool kdmMode, const QString &program=QString(),
98
QWidget *parent=0L, char *name=0L);
100
/** The program name is here in case the user changed it */
101
QString program()const;
104
virtual void accept();
108
QLineEdit *m_NameEdit, *m_CommentEdit;
109
QLineEdit *m_ExecEdit, *m_CommandEdit;
110
QLineEdit *m_PreviewEdit;
111
QSpinBox *m_RefreshEdit;
112
KBackgroundProgram *m_Prog;