Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxWorkstackChild Class Reference

Workarea child widget container. More...

#include <QtxWorkstack.h>

Inheritance diagram for QtxWorkstackChild:
Inheritance graph

Signals

void shown (QtxWorkstackChild *)
 Emitted when child widget is shown. More...
 
void hidden (QtxWorkstackChild *)
 Emitted when child widget is hidden. More...
 
void activated (QtxWorkstackChild *)
 Emitted when child widget is activated. More...
 
void captionChanged (QtxWorkstackChild *)
 Emitted when child widget's title is changed. More...
 

Public Member Functions

 QtxWorkstackChild (QWidget *, QWidget *=0, Qt::WindowFlags=0)
 Constructor. More...
 
virtual ~QtxWorkstackChild ()
 Destructor. More...
 
QWidgetwidget () const
 Get child widget. More...
 
int id () const
 Returns the id. More...
 
void setId (const int)
 Sets the id. More...
 
bool visibility ()
 Returns true if this child window should be visible. More...
 
QtxWorkstackAreaarea () const
 
virtual bool eventFilter (QObject *, QEvent *)
 Custom event filter. More...
 

Protected Member Functions

virtual void childEvent (QChildEvent *)
 Customize child event handler. More...
 

Private Slots

void onDestroyed (QObject *)
 Called when child widget is destroyed. More...
 

Private Attributes

int myId
 id More...
 
QPointer< QWidgetmyWidget
 child widget More...
 

Detailed Description

Constructor & Destructor Documentation

QtxWorkstackChild::QtxWorkstackChild ( QWidget wid,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
Parameters
widchild widget
parentparent widget
fwidget flags

References myWidget, and onDestroyed().

QtxWorkstackChild::~QtxWorkstackChild ( )
virtual

References onDestroyed(), and widget().

Member Function Documentation

void QtxWorkstackChild::activated ( QtxWorkstackChild w)
signal
Parameters
wchild widget container
QtxWorkstackArea * QtxWorkstackChild::area ( ) const
void QtxWorkstackChild::captionChanged ( QtxWorkstackChild w)
signal
Parameters
wchild widget container
void QtxWorkstackChild::childEvent ( QChildEvent *  e)
protectedvirtual
Parameters
echild event

References myWidget, and widget().

bool QtxWorkstackChild::eventFilter ( QObject o,
QEvent e 
)
virtual

Process events from child widgets.

Parameters
oevent receiver widget
eevent
Returns
true if event should be filtered (stop further processing)

References activated(), captionChanged(), hidden(), and shown().

void QtxWorkstackChild::hidden ( QtxWorkstackChild w)
signal
Parameters
wchild widget container
int QtxWorkstackChild::id ( ) const

References myId.

void QtxWorkstackChild::onDestroyed ( QObject obj)
privateslot
Parameters
objchild widget being destroyed
void QtxWorkstackChild::setId ( const int  id)

References id(), and myId.

void QtxWorkstackChild::shown ( QtxWorkstackChild w)
signal
Parameters
wchild widget container
bool QtxWorkstackChild::visibility ( )

References myWidget.

QWidget * QtxWorkstackChild::widget ( ) const
Returns
child widget

References myWidget.

Member Data Documentation

int QtxWorkstackChild::myId
private
QPointer<QWidget> QtxWorkstackChild::myWidget
private

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