KVIrc
4.9.2
DeveloperAPIs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
kvirc
ui
KviWindowStack.h
Go to the documentation of this file.
1
#ifndef _KviWindowStack_h_
2
#define _KviWindowStack_h_
3
//=============================================================================
4
//
5
// File : kvi+_mdimanager.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
38
class
KviMainWindow
;
39
class
KviWindow
;
40
class
QMenu;
41
46
class
KVIRC_API
KviWindowStack
:
public
QStackedWidget
47
{
48
Q_OBJECT
49
public
:
56
KviWindowStack
(QWidget * pParent,
const
char
* pcName);
57
61
~
KviWindowStack
();
62
67
//bool eventFilter(QObject *obj, QEvent *event);
68
protected
:
70
QMenu *
m_pWindowPopup
;
71
72
public
:
78
void
addWindow(
KviWindow
* pWnd);
79
85
void
showAndActivate(
KviWindow
* pWnd);
86
91
inline
QMenu *
windowPopup
() {
return
m_pWindowPopup; };
92
98
void
destroyWindow(
KviWindow
* pWnd);
99
100
protected
slots:
101
void
currentWindowChanged(
int
iIdx);
102
void
menuActivated(QAction * pAction);
103
void
fillWindowPopup();
104
};
105
106
#endif //_KviWindowStack_h_
KviMainWindow
Definition:
KviMainWindow.h:60
KVIRC_API
#define KVIRC_API
Definition:
kvi_settings.h:128
KviWindowStack::m_pWindowPopup
QMenu * m_pWindowPopup
Filters out some events: (de)activation events, window switching.
Definition:
KviWindowStack.h:70
KviWindowStack
Handles all docked KviWindow windows.
Definition:
KviWindowStack.h:46
KviWindow
Base class for all windows in KVIrc.
Definition:
KviWindow.h:74
kvi_settings.h
This file contains compile time settings.
KviWindowStack::windowPopup
QMenu * windowPopup()
Returns the window popup.
Definition:
KviWindowStack.h:91
Generated on Mon May 16 2016 22:48:44 for KVIrc by
1.8.7