File indexing completed on 2024-05-12 05:52:08
0001 /* 0002 SPDX-FileCopyrightText: 2005 Christoph Cullmann <cullmann@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kateprivate_export.h" 0010 #include <KActionMenu> 0011 0012 class KateSessionManager; 0013 0014 class KATE_PRIVATE_EXPORT KateSessionsAction : public KActionMenu 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 KateSessionsAction(const QString &text, QObject *parent, KateSessionManager *manager, bool allSessions); 0020 0021 public Q_SLOTS: 0022 void slotAboutToShow(); 0023 void openSession(QAction *action); 0024 void slotSessionChanged(); 0025 0026 private: 0027 friend class KateSessionsActionTest; // tfuj 0028 QActionGroup *sessionsGroup; 0029 KateSessionManager *m_manager; 0030 const bool m_allSessions; 0031 };