diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-02-07 17:08:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-02-08 20:37:44 +0900 |
commit | d196e674e10dc2a2d353cfcc3cdabf03d029eea5 (patch) | |
tree | aeff3d84f9d13f3f334ac69ce8547ab61239c5ab /kcontrol/hwmanager/hwdevicetray.h | |
parent | 8c9567199867edf5e087546e889a9845c28c574e (diff) | |
download | tdebase-d196e674.tar.gz tdebase-d196e674.zip |
hwmanager: add LMB menu based on storage devices.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.h')
-rw-r--r-- | kcontrol/hwmanager/hwdevicetray.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kcontrol/hwmanager/hwdevicetray.h b/kcontrol/hwmanager/hwdevicetray.h index 7dd5f3e80..f7056d992 100644 --- a/kcontrol/hwmanager/hwdevicetray.h +++ b/kcontrol/hwmanager/hwdevicetray.h @@ -42,8 +42,6 @@ public: virtual void contextMenuAboutToShow(TDEPopupMenu *menu); - void configChanged(); - protected slots: void slotHardwareConfig(); void slotEditShortcutKeys(); @@ -59,15 +57,18 @@ protected slots: void doDiskNotifications(bool scanOnly); protected: + void initMenus(); void mousePressEvent(TQMouseEvent *e); + void populateLMBMenu(); void resizeEvent(TQResizeEvent *); void resizeTrayIcon(); void showEvent(TQShowEvent *); static bool isMonitoredDevice(TDEStorageDevice *sdevice); - void InitRMBMenu(); - void AddDeviceToRMBMenu(TDEStorageDevice *sdevice, const int type); + void AddDeviceToLMBMenu(TDEStorageDevice *sdevice, const int type, TDEActionMenu *actionMenu, + int &actionMenuIdx); + void AddDeviceToRMBMenu(TDEStorageDevice *sdevice, const int type, int &actionMenuIdx); HwDeviceSystemTrayPrivate *d; }; |