summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/general_settings_tab.cpp
blob: cf2337446bb92863ebb8ce2f04e8a9eedefd3a49 (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) 2003 Lubos Lunak <[email protected]>

 Distributed under the terms of the GNU General Public License version 2.
 
****************************************************************************/

#define _GENERAL_SETTINGS_TAB_CPP_

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "general_settings_tab.h"

#include <tqcheckbox.h>

#include "kcmkhotkeys.h"

namespace KHotKeys
{

General_settings_tab::General_settings_tab( TQWidget* parent_P, const char* name_P )
    : General_settings_tab_ui( parent_P, name_P )
    {
    // KHotKeys::Module::changed()
    connect( disable_daemon_checkbox, TQT_SIGNAL( clicked()),
        module, TQT_SLOT( changed()));
    }

void General_settings_tab::import_clicked()
    {
    module->import();
    }

void General_settings_tab::write_data() const
    {
    module->set_daemon_disabled( disable_daemon_checkbox->isChecked());
    }

void General_settings_tab::read_data()
    {
    disable_daemon_checkbox->setChecked( module->daemon_disabled());
    }

void General_settings_tab::clear_data()
    {
    // "global" tab, not action specific, do nothing
    }

} // namespace KHotKeys

#include "general_settings_tab.moc"