Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / khotkeys / kcontrol / command_url_widget.cpp
blob7d4d068c6f0d6ed2f07d7b4553e46ab2d1bb9274
1 /****************************************************************************
3 KHotKeys
5 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
11 #define _COMMAND_URL_WIDGET_CPP_
15 #include "command_url_widget.h"
17 #include <QPushButton>
18 #include <QLineEdit>
19 #include <klineedit.h>
20 #include <QCheckBox>
21 #include <kurlrequester.h>
23 #include <actions.h>
24 #include <action_data.h>
25 #include <windowdef_list_widget.h>
27 #include "kcmkhotkeys.h"
29 namespace KHotKeys
32 Command_url_widget::Command_url_widget( QWidget* parent_P, const char* name_P )
33 : Command_url_widget_ui( parent_P )
35 setObjectName(name_P);
36 clear_data();
37 // KHotKeys::Module::changed()
38 connect( command_url_lineedit, SIGNAL( textChanged( const QString& )),
39 module, SLOT( changed()));
42 void Command_url_widget::clear_data()
44 command_url_lineedit->lineEdit()->clear();
47 void Command_url_widget::set_data( const Command_url_action* data_P )
49 if( data_P == NULL )
51 clear_data();
52 return;
54 command_url_lineedit->lineEdit()->setText( data_P->command_url());
57 Command_url_action* Command_url_widget::get_data( Action_data* data_P ) const
59 return new Command_url_action( data_P, command_url_lineedit->lineEdit()->text());
62 void Command_url_widget::browse_pressed()
63 { // CHECKME TODO
66 } // namespace KHotKeys
68 #include "command_url_widget.moc"