diff options
author | Michele Calgaro <[email protected]> | 2022-08-11 18:01:06 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-08-12 17:39:12 +0900 |
commit | 12007bb689082f356835ae6ad4412ee414230e83 (patch) | |
tree | 0c0a1cc4c1e7244cce7fa75ad7fcea4dbccdc25a /khotkeys/kcontrol/action_list_widget.h | |
parent | 371ad533a3d4bf755ea1ccf50f8821261428d059 (diff) | |
download | tdebase-12007bb689082f356835ae6ad4412ee414230e83.tar.gz tdebase-12007bb689082f356835ae6ad4412ee414230e83.zip |
TCC khotkeys: added 'move up' and 'move down' buttons to 'Actions' and 'Conditions' listviews for input actions.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 5e4ca4df9bb34e10a897e32e7e0ca8645b97f293)
Diffstat (limited to 'khotkeys/kcontrol/action_list_widget.h')
-rw-r--r-- | khotkeys/kcontrol/action_list_widget.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/khotkeys/kcontrol/action_list_widget.h b/khotkeys/kcontrol/action_list_widget.h index c2f32477e..38676b886 100644 --- a/khotkeys/kcontrol/action_list_widget.h +++ b/khotkeys/kcontrol/action_list_widget.h @@ -1,11 +1,11 @@ /**************************************************************************** KHotKeys - + Copyright (C) 1999-2001 Lubos Lunak <[email protected]> Distributed under the terms of the GNU General Public License version 2. - + ****************************************************************************/ #ifndef _ACTION_LIST_WIDGET_H_ @@ -53,6 +53,8 @@ class Action_list_widget virtual void copy_pressed(); virtual void delete_pressed(); virtual void modify_pressed(); + virtual void move_up_pressed(); + virtual void move_down_pressed(); virtual void current_changed( TQListViewItem* item_P ); protected: Action_list_item* selected_item; @@ -75,14 +77,14 @@ class Action_list_item protected: Action* _action; // owns it }; - + class Action_dialog { public: virtual Action* edit_action() = 0; virtual ~Action_dialog(); }; - + class Command_url_action_dialog : public KDialogBase, public Action_dialog { @@ -95,7 +97,7 @@ class Command_url_action_dialog Command_url_widget* widget; Command_url_action* action; }; - + class Menuentry_action_dialog : public KDialogBase, public Action_dialog { @@ -108,7 +110,7 @@ class Menuentry_action_dialog Menuentry_widget* widget; Menuentry_action* action; }; - + class Dcop_action_dialog : public KDialogBase, public Action_dialog { @@ -121,7 +123,7 @@ class Dcop_action_dialog Dcop_widget* widget; Dcop_action* action; }; - + class Keyboard_input_action_dialog : public KDialogBase, public Action_dialog { @@ -134,7 +136,7 @@ class Keyboard_input_action_dialog Keyboard_input_widget* widget; Keyboard_input_action* action; }; - + class Activate_window_action_dialog : public KDialogBase, public Action_dialog { @@ -147,7 +149,7 @@ class Activate_window_action_dialog Activate_window_widget* widget; Activate_window_action* action; }; - + //*************************************************************************** // Inline //*************************************************************************** @@ -159,7 +161,7 @@ Action_list_item::Action_list_item( TQListView* parent_P, Action* action_P ) : TQListViewItem( parent_P ), _action( action_P ) { } - + inline Action_list_item::Action_list_item( TQListViewItem* parent_P, Action* action_P ) : TQListViewItem( parent_P ), _action( action_P ) @@ -185,7 +187,7 @@ Action* Action_list_item::action() const { return _action; } - + inline void Action_list_item::set_action( Action* action_P ) { |