SVN_SILENT made messages (.desktop file)
[kdeartwork.git] / kscreensaver / kxsconfig / kxsconfig.h
blobd1c3750f8d10d76cc8f754225ca0dd1e777fe869
1 //-----------------------------------------------------------------------------
2 //
3 // KDE xscreensaver configuration dialog
4 //
5 // Copyright (c) Martin R. Jones <mjones@kde.org> 1999
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public
9 // License as published by the Free Software Foundation;
10 // version 2 of the License.
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 GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; see the file COPYING. If not, write to
19 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 // Boston, MA 02110-1301, USA.
22 #ifndef __KXSCONFIG_H__
23 #define __KXSCONFIG_H__
25 #include "kxsitem.h"
27 #include <KDialog>
28 #include <KProcess>
29 #include <QLabel>
30 #include <QList>
32 class QLabel;
34 class KXSConfigDialog : public KDialog
36 Q_OBJECT
37 public:
38 KXSConfigDialog(const QString &file, const QString &name);
39 ~KXSConfigDialog();
41 bool create();
42 QString command();
44 protected slots:
45 void slotPreviewProcFinished(int exitCode, QProcess::ExitStatus exitStatus);
46 void slotNewPreview();
47 void slotChanged();
48 virtual void slotOk();
49 virtual void slotCancel();
51 protected:
52 void startProcess();
54 QString mFilename;
55 QString mExeName;
56 QString mConfigFile;
57 KProcess *mPreviewProc;
58 QWidget *mPreview;
59 QTimer *mPreviewTimer;
60 QList<KXSConfigItem*> mConfigItemList;
61 bool mKilled;
64 #endif