File indexing completed on 2024-04-28 04:36:31

0001 /*
0002     SPDX-FileCopyrightText: 2015 Kevin Funk <kfunk@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_ITOOLVIEWACTIONLISTENER_H
0008 #define KDEVPLATFORM_ITOOLVIEWACTIONLISTENER_H
0009 
0010 #include "interfacesexport.h"
0011 
0012 #include <QObject>
0013 
0014 namespace KDevelop {
0015 
0016 /**
0017  * An interface for tool view widgets
0018  *
0019  * Implement this interface for the widgets which are being created by KDevelop::IToolViewFactory::create()
0020  *
0021  * This interface allows global shortcuts, such as "Jump to Next Output Mark", to map to the tool view widget
0022  * which was last recently activated ("raised").
0023  *
0024  * @sa KDevelop::IToolViewFactory::create()
0025  */
0026 class KDEVPLATFORMINTERFACES_EXPORT IToolViewActionListener
0027 {
0028 public:
0029     virtual ~IToolViewActionListener();
0030 
0031 public Q_SLOTS:
0032     virtual void selectPreviousItem() = 0;
0033     virtual void selectNextItem() = 0;
0034 };
0035 
0036 }
0037 
0038 Q_DECLARE_INTERFACE(KDevelop::IToolViewActionListener, "org.kdevelop.IToolViewActionListener")
0039 
0040 #endif