OSB_GUI::AdminWidget Class Reference

Inheritance diagram for OSB_GUI::AdminWidget:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::AdminWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

Interface of an OSB administration widget.

Note:
The class inherits from QWidget, but QT designer does not allow to use custom widgets as base.
As a work-around use Qt to design the widget, generate the header and implementation file and finally cut&paste into the definition and implementation of the administration widget.

Definition at line 83 of file adminwidget.h.

Public Slots

Signals

Public Member Functions

Protected Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::AdminWidget::AdminWidget ( AdminType  type,
QWidget parent,
const char *  name = 0,
WFlags  flags = 0 
)

Constructor with type of administraction widget and Qt arguments.

virtual OSB_GUI::AdminWidget::~AdminWidget (  )  [virtual]

Empty virtual destructor.


Member Function Documentation

virtual void OSB_GUI::AdminWidget::activated ( bool  minimized  )  [virtual]

Administration window activated or show status changed.

Parameters:
minimized Flag if the window is minimized.
This function is called
if the widget becomes the active window of the workspace
or if widget is minimized, restored or maximized.

This default implementation emits statusMessage() to clear the main window's status bar.

Reimplemented in OSB_GUI::RecCountsAdmin.

virtual void OSB_GUI::AdminWidget::clearMenuAccels (  )  [pure virtual]

Clear any accelerators of the administration widget's popup menu.

This function is needed because any accelerators of the adminstratiion widget's menu are active even if the popup menu is not in the menu bar of the main window.

Implemented in OSB_GUI::Asn1Browser, OSB_GUI::InvMgmtWidget, OSB_GUI::PrivAdminWidget, OSB_GUI::RatingCfgAdmin, OSB_GUI::RecCountsAdmin, and OSB_GUI::RecordStreamAdmin.

virtual bool OSB_GUI::AdminWidget::eventFilter ( QObject o,
QEvent *  e 
) [protected, virtual]

Set margin of layout.

virtual void OSB_GUI::AdminWidget::languageChange (  )  [pure virtual, slot]

Process a language change.

Implemented in OSB_GUI::Asn1Browser, OSB_GUI::InvMgmtWidget, OSB_GUI::PrivAdminWidget, OSB_GUI::RatingCfgAdmin, OSB_GUI::RecCountsAdmin, and OSB_GUI::RecordStreamAdmin.

virtual QPopupMenu* OSB_GUI::AdminWidget::menu (  )  [pure virtual]

The popup menu of the administration widget.

If the administration window does not use a menu the function returns 0.
Else the admin widget should install the accelerators for the popup menu.

See also:
clearMenuAccels()

Implemented in OSB_GUI::Asn1Browser, OSB_GUI::InvMgmtWidget, OSB_GUI::PrivAdminWidget, OSB_GUI::RatingCfgAdmin, OSB_GUI::RecCountsAdmin, and OSB_GUI::RecordStreamAdmin.

virtual std::string OSB_GUI::AdminWidget::menuTitle (  )  const [pure virtual]

Title of the administration wiget's menu.

The returned string is empty if does not support a menu, i.e., menu() returns 0.

Implemented in OSB_GUI::Asn1Browser, OSB_GUI::InvMgmtWidget, OSB_GUI::PrivAdminWidget, OSB_GUI::RatingCfgAdmin, OSB_GUI::RecCountsAdmin, and OSB_GUI::RecordStreamAdmin.

virtual void OSB_GUI::AdminWidget::resizeEvent ( QResizeEvent *   )  [protected, virtual]

Set position of size grip.

void OSB_GUI::AdminWidget::statusMessage ( const QString &  msg = "",
int  ms = -1 
) [signal]

Request to set the status bar message.

AdminType OSB_GUI::AdminWidget::type (  )  const

Get the type of the administration widget.


Member Data Documentation

QSizeGrip* OSB_GUI::AdminWidget::sizeGrip_ [private]

Size grip at lower right corner.

Definition at line 167 of file adminwidget.h.

AdminType OSB_GUI::AdminWidget::type_ [private]

The type of the administration widget.

Definition at line 165 of file adminwidget.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:19:00 2006 for OSB Library by  doxygen 1.4.7