KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Slots | Protected Attributes | List of all members
KviWindowStack Class Reference

Handles all docked KviWindow windows. More...

#include <KviWindowStack.h>

+ Inheritance diagram for KviWindowStack:

Public Member Functions

void addWindow (KviWindow *pWnd)
 Add an KviWindow to the area. More...
 
void destroyWindow (KviWindow *pWnd)
 Remove and delete the subwindow. More...
 
 KviWindowStack (QWidget *pParent, const char *pcName)
 Constructs the Mdi manager object. More...
 
void showAndActivate (KviWindow *pWnd)
 Show the KviWindow and bring it to the front. More...
 
QMenu * windowPopup ()
 Returns the window popup. More...
 
 ~KviWindowStack ()
 Destroys the Mdi manager object. More...
 

Protected Slots

void currentWindowChanged (int iIdx)
 
void fillWindowPopup ()
 
void menuActivated (QAction *pAction)
 

Protected Attributes

QMenu * m_pWindowPopup
 Filters out some events: (de)activation events, window switching. More...
 

Detailed Description

Handles all docked KviWindow windows.

Constructor & Destructor Documentation

KviWindowStack::KviWindowStack ( QWidget *  pParent,
const char *  pcName 
)

Constructs the Mdi manager object.

Parameters
pParentThe parent widget
pcNameThe name of the manager
Returns
KviWindowStack

References connect(), currentWindowChanged(), fillWindowPopup(), m_pWindowPopup, and menuActivated().

KviWindowStack::~KviWindowStack ( )
default

Destroys the Mdi manager object.

Member Function Documentation

void KviWindowStack::addWindow ( KviWindow pWnd)

Add an KviWindow to the area.

Parameters
pWndThe KviWindow
Returns
void

Referenced by KviMainWindow::dockWindow().

void KviWindowStack::currentWindowChanged ( int  iIdx)
protectedslot
void KviWindowStack::destroyWindow ( KviWindow pWnd)

Remove and delete the subwindow.

Parameters
pWndThe KviWindow which will be destroyed.
Returns
void

Referenced by KviMainWindow::closeWindow().

void KviWindowStack::fillWindowPopup ( )
protectedslot

References m_pWindowPopup, KviWindow::myIconPtr(), and w.

Referenced by KviWindowStack().

void KviWindowStack::menuActivated ( QAction *  pAction)
protectedslot

References showAndActivate(), and w.

Referenced by KviWindowStack().

void KviWindowStack::showAndActivate ( KviWindow pWnd)

Show the KviWindow and bring it to the front.

Parameters
pWndThe KviWindow which will be shown.
Returns
void

Referenced by KviMainWindow::addWindow(), menuActivated(), and KviMainWindow::setActiveWindow().

QMenu* KviWindowStack::windowPopup ( )
inline

Returns the window popup.

Returns
QMenu *

Referenced by KviMenuBar::KviMenuBar().

Member Data Documentation

QMenu* KviWindowStack::m_pWindowPopup
protected

Filters out some events: (de)activation events, window switching.

Returns
boolHolds the specialized window popup

Referenced by fillWindowPopup(), and KviWindowStack().


The documentation for this class was generated from the following files: