KVIrc 5.2.6
Developer APIs
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.
 
void destroyWindow (KviWindow *pWnd)
 Remove and delete the subwindow.
 
 KviWindowStack (QWidget *pParent, const char *pcName)
 Constructs the Mdi manager object.
 
void showAndActivate (KviWindow *pWnd)
 Show the KviWindow and bring it to the front.
 
QMenu * windowPopup () const
 Returns the window popup.
 
 ~KviWindowStack ()
 Destroys the Mdi manager object.
 

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.
 

Detailed Description

Handles all docked KviWindow windows.

Constructor & Destructor Documentation

◆ KviWindowStack()

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::~KviWindowStack ( )
default

Destroys the Mdi manager object.

Member Function Documentation

◆ addWindow()

void KviWindowStack::addWindow ( KviWindow * pWnd)

Add an KviWindow to the area.

Parameters
pWndThe KviWindow
Returns
void

◆ currentWindowChanged

void KviWindowStack::currentWindowChanged ( int iIdx)
protectedslot

References g_pMainWindow.

Referenced by KviWindowStack().

◆ destroyWindow()

void KviWindowStack::destroyWindow ( KviWindow * pWnd)

Remove and delete the subwindow.

Parameters
pWndThe KviWindow which will be destroyed.
Returns
void

◆ fillWindowPopup

void KviWindowStack::fillWindowPopup ( )
protectedslot

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

Referenced by KviWindowStack().

◆ menuActivated

void KviWindowStack::menuActivated ( QAction * pAction)
protectedslot

References showAndActivate(), and w.

Referenced by KviWindowStack().

◆ showAndActivate()

void KviWindowStack::showAndActivate ( KviWindow * pWnd)

Show the KviWindow and bring it to the front.

Parameters
pWndThe KviWindow which will be shown.
Returns
void

References KviWindow::isDocked().

Referenced by menuActivated().

◆ windowPopup()

QMenu * KviWindowStack::windowPopup ( ) const
inline

Returns the window popup.

Returns
QMenu *

References m_pWindowPopup.

Referenced by KviMenuBar::KviMenuBar().

Member Data Documentation

◆ m_pWindowPopup

QMenu* KviWindowStack::m_pWindowPopup
protected

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

Returns
bool Holds the specialized window popup

Referenced by fillWindowPopup(), KviWindowStack(), and windowPopup().


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