File indexing completed on 2024-04-28 16:44:47
0001 /* 0002 SPDX-FileCopyrightText: 2008 Michael Jansen <kde@michael-jansen.biz> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #ifndef MENUENTRY_ACTION_WIDGET_H 0007 #define MENUENTRY_ACTION_WIDGET_H 0008 0009 #include "action_widget_base.h" 0010 #include "ui_menuentry_action_widget.h" 0011 0012 #include "libkhotkeysfwd.h" 0013 0014 /** 0015 * @author Michael Jansen <kde@michael-jansen.biz> 0016 */ 0017 class MenuentryActionWidget : public ActionWidgetBase 0018 { 0019 Q_OBJECT 0020 0021 typedef ActionWidgetBase Base; 0022 0023 public: 0024 /** 0025 * Default constructor 0026 */ 0027 MenuentryActionWidget(KHotKeys::MenuEntryAction *action, QWidget *parent = nullptr); 0028 0029 /** 0030 * Destructor 0031 */ 0032 ~MenuentryActionWidget() override; 0033 0034 KHotKeys::MenuEntryAction *action() override; 0035 const KHotKeys::MenuEntryAction *action() const override; 0036 0037 bool isChanged() const override; 0038 0039 public Q_SLOTS: 0040 0041 void selectApplicationClicked(); 0042 0043 protected: 0044 void doCopyFromObject() override; 0045 void doCopyToObject() override; 0046 0047 QString storage_id; 0048 0049 Ui::MenuentryActionWidget ui; 0050 }; 0051 0052 #endif /* #ifndef MENUENTRY_ACTION_WIDGET_H */