1 /***************************************************************************
2 componentchooserwm.h - description
4 copyright : (C) 2002 by Joseph Wenninger
6 ***************************************************************************/
8 /***************************************************************************
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License version 2 as *
12 * published by the Free Software Foundationi *
14 ***************************************************************************/
16 #ifndef _COMPONENTCHOOSERWM_H_
17 #define _COMPONENTCHOOSERWM_H_
19 #include "ui_wmconfig_ui.h"
20 #include "componentchooser.h"
26 class CfgWm
: public QWidget
, public Ui::WmConfig_UI
, public CfgPlugin
30 CfgWm(QWidget
*parent
);
32 virtual void load(KConfig
*cfg
);
33 virtual void save(KConfig
*cfg
);
34 virtual void defaults();
39 void checkConfigureWm();
41 void wmLaunchFinished( int exitcode
, QProcess::ExitStatus exitstatus
);
47 void loadWMs( const QString
& current
);
48 QString
currentWm() const;
49 bool saveAndConfirm();
54 QString configureCommand
;
55 QString restartArgument
;
56 QString parentArgument
;
58 WmData
currentWmData() const;
59 QHash
< QString
, WmData
> wms
; // i18n text -> data
60 QString oldwm
; // the original value
63 WmNone
, // not trying to launch any WM at the moment
64 WmLaunching
, // launching
65 WmOk
, // was successful
68 Launch wmLaunchingState
;
69 KTimerDialog
* wmDialog
;