File indexing completed on 2024-04-28 16:44:47

0001 #ifndef KEYBOARD_INPUT_ACTION_WIDGET_H
0002 #define KEYBOARD_INPUT_ACTION_WIDGET_H
0003 /* SPDX-FileCopyrightText: 2009 Michael Jansen <kde@michael-jansen.biz>
0004 
0005    SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "action_widget_base.h"
0009 #include "ui_keyboard_input_action_widget.h"
0010 
0011 /**
0012  * @author Michael Jansen <kde@michael-jansen.biz>
0013  */
0014 class KeyboardInputActionWidget : public ActionWidgetBase
0015 {
0016     Q_OBJECT
0017 
0018     typedef ActionWidgetBase Base;
0019 
0020 public:
0021     /**
0022      * Default constructor
0023      */
0024     KeyboardInputActionWidget(KHotKeys::KeyboardInputAction *action, QWidget *parent = nullptr);
0025 
0026     /**
0027      * Destructor
0028      */
0029     ~KeyboardInputActionWidget() override;
0030 
0031     KHotKeys::KeyboardInputAction *action() override;
0032     const KHotKeys::KeyboardInputAction *action() const override;
0033 
0034     bool isChanged() const override;
0035 
0036 protected:
0037     void doCopyFromObject() override;
0038     void doCopyToObject() override;
0039 
0040     Ui::KeyboardInputActionWidget ui;
0041 };
0042 
0043 #endif /* #ifndef KEYBOARD_INPUT_ACTION_WIDGET_H */