summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/command_url_widget.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /khotkeys/kcontrol/command_url_widget.cpp
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/kcontrol/command_url_widget.cpp')
-rw-r--r--khotkeys/kcontrol/command_url_widget.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/khotkeys/kcontrol/command_url_widget.cpp b/khotkeys/kcontrol/command_url_widget.cpp
new file mode 100644
index 000000000..936ceca99
--- /dev/null
+++ b/khotkeys/kcontrol/command_url_widget.cpp
@@ -0,0 +1,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 <qpushbutton.h>
+#include <qlineedit.h>
+#include <klineedit.h>
+#include <qcheckbox.h>
+#include <qgroupbox.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( QWidget* parent_P, const char* name_P )
+ : Command_url_widget_ui( parent_P, name_P )
+ {
+ clear_data();
+ // KHotKeys::Module::changed()
+ connect( command_url_lineedit, SIGNAL( textChanged( const QString& )),
+ module, 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"