blob: 135261e3000a4344ab3f0b290782ad56244fa349 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/****************************************************************************
KHotKeys
Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#define _WAITING_WIDGET_CPP_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "waiting_widget.h"
#include <knuminput.h>
#include <kdebug.h>
#include <actions.h>
#include <action_data.h>
#include "windowdef_list_widget.h"
#include "kcmkhotkeys.h"
namespace KHotKeys
{
Waiting_widget::Waiting_widget( TQWidget* parent_P, const char* name_P )
: Waiting_widget_ui( parent_P, name_P )
{
// KHotKeys::Module::changed()
connect(waiting_spinbox, TQ_SIGNAL(valueChanged(int)),
module, TQ_SLOT(changed()));
}
void Waiting_widget::set_data( const Waiting_action* data_P )
{
if( data_P == NULL )
{
return;
}
waiting_spinbox->setValue(data_P->_waiting_time);
}
Waiting_action* Waiting_widget::get_data( Action_data* data_P ) const
{
return new Waiting_action( data_P, waiting_spinbox->value());
}
} // namespace KHotKeys
#include "waiting_widget.moc"
|