KVIrc 5.2.0
Developer APIs
KviWindowStack.h
Go to the documentation of this file.
1#ifndef _KviWindowStack_h_
2#define _KviWindowStack_h_
3//=============================================================================
4//
5// File : KviWindowStack.h
6// Creation date : Wed Jun 21 2000 17:28:04 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)
10// Copyright (C) 2008 TheXception (kvirc at thexception dot net)
11//
12// This program is FREE software. You can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation; either version 2
15// of the License, or (at your option) any later version.
16//
17// This program is distributed in the HOPE that it will be USEFUL,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20// See the GNU General Public License for more details.
21//
22// You should have received a copy of the GNU General Public License
23// along with this program. If not, write to the Free Software Foundation,
24// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25//
26//=============================================================================
27
34#include "kvi_settings.h"
35
36#include <QStackedWidget>
37
38class KviMainWindow;
39class KviWindow;
40class QMenu;
41
46class KVIRC_API KviWindowStack : public QStackedWidget
47{
48 Q_OBJECT
49public:
56 KviWindowStack(QWidget * pParent, const char * pcName);
57
62
67 //bool eventFilter(QObject *obj, QEvent *event) override;
68protected:
71
72public:
78 void addWindow(KviWindow * pWnd);
79
85 void showAndActivate(KviWindow * pWnd);
86
91 QMenu * windowPopup() const { return m_pWindowPopup; }
92
98 void destroyWindow(KviWindow * pWnd);
99
100protected slots:
101 void currentWindowChanged(int iIdx);
102 void menuActivated(QAction * pAction);
103 void fillWindowPopup();
104};
105
106#endif //_KviWindowStack_h_
Definition KviMainWindow.h:58
Handles all docked KviWindow windows.
Definition KviWindowStack.h:47
QMenu * windowPopup() const
Returns the window popup.
Definition KviWindowStack.h:91
~KviWindowStack()
Destroys the Mdi manager object.
QMenu * m_pWindowPopup
Filters out some events: (de)activation events, window switching.
Definition KviWindowStack.h:70
Base class for all windows in KVIrc.
Definition KviWindow.h:75
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127