blob: 13391336071b01a49e94861b0a17877d82be30f7 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/****************************************************************************
KHotKeys
Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#define _COMMAND_URL_WIDGET_CPP_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "command_url_widget.h"
#include <tqpushbutton.h>
#include <tqlineedit.h>
#include <klineedit.h>
#include <tqcheckbox.h>
#include <tqgroupbox.h>
#include <kurlrequester.h>
#include <actions.h>
#include <action_data.h>
#include <windowdef_list_widget.h>
#include "kcmkhotkeys.h"
namespace KHotKeys
{
Command_url_widget::Command_url_widget( TQWidget* parent_P, const char* name_P )
: Command_url_widget_ui( parent_P, name_P )
{
clear_data();
// KHotKeys::Module::changed()
connect( command_url_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
module, TQT_SLOT( changed()));
}
void Command_url_widget::clear_data()
{
command_url_lineedit->lineEdit()->clear();
}
void Command_url_widget::set_data( const Command_url_action* data_P )
{
if( data_P == NULL )
{
clear_data();
return;
}
command_url_lineedit->lineEdit()->setText( data_P->command_url());
}
Command_url_action* Command_url_widget::get_data( Action_data* data_P ) const
{
return new Command_url_action( data_P, command_url_lineedit->lineEdit()->text());
}
void Command_url_widget::browse_pressed()
{ // CHECKME TODO
}
} // namespace KHotKeys
#include "command_url_widget.moc"
|