CMS 3D CMS Logo

IgQtAppStatusBarService Class Reference

#include <Iguana/Studio/interface/IgQtAppStatusBarService.h>

Inheritance diagram for IgQtAppStatusBarService:

IgStateElement

List of all members.

Public Member Functions

 IgQtAppStatusBarService (IgState *state, QWidget *mainWindow)
void setMessage (const char *message)
void setMessage (const std::string &message)
void setMessage (QString message)
 ~IgQtAppStatusBarService (void)

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (IgQtAppStatusBarService)
 IgQtAppStatusBarService (const IgQtAppStatusBarService &)
IgQtAppStatusBarServiceoperator= (const IgQtAppStatusBarService &)

Private Attributes

QMainWindow * m_mainWindow
IgStatem_state


Detailed Description

Definition at line 21 of file IgQtAppStatusBarService.h.


Constructor & Destructor Documentation

IgQtAppStatusBarService::IgQtAppStatusBarService ( IgState state,
QWidget *  mainWindow 
)

Definition at line 23 of file IgQtAppStatusBarService.cc.

References ASSERT, m_mainWindow, and IgState::put().

00025     : m_state (state),
00026       m_mainWindow (dynamic_cast<QMainWindow *> (mainWindow))
00027 {
00028     ASSERT (state);
00029     ASSERT (mainWindow);
00030     ASSERT (m_mainWindow);
00031     state->put (s_key, this);
00032 
00033     QStatusBar *sbar = m_mainWindow->statusBar ();
00034     sbar->show ();
00035 }

IgQtAppStatusBarService::~IgQtAppStatusBarService ( void   ) 

Definition at line 37 of file IgQtAppStatusBarService.cc.

References ASSERT, IgState::detach(), m_mainWindow, and m_state.

00038 {
00039     ASSERT (m_state);
00040     ASSERT (m_mainWindow);
00041     m_state->detach (s_key);
00042 }

IgQtAppStatusBarService::IgQtAppStatusBarService ( const IgQtAppStatusBarService  )  [private]


Member Function Documentation

IgQtAppStatusBarService::IG_DECLARE_STATE_ELEMENT ( IgQtAppStatusBarService   )  [private]

IgQtAppStatusBarService& IgQtAppStatusBarService::operator= ( const IgQtAppStatusBarService  )  [private]

void IgQtAppStatusBarService::setMessage ( const char *  message  ) 

Definition at line 59 of file IgQtAppStatusBarService.cc.

References m_mainWindow.

00060 {
00061     m_mainWindow->statusBar ()->message (message);
00062     qApp->syncX ();
00063 }

void IgQtAppStatusBarService::setMessage ( const std::string &  message  ) 

Definition at line 52 of file IgQtAppStatusBarService.cc.

References m_mainWindow.

00053 {
00054     m_mainWindow->statusBar ()->message (message.c_str ());
00055     qApp->syncX ();
00056 }

void IgQtAppStatusBarService::setMessage ( QString  message  ) 

Definition at line 45 of file IgQtAppStatusBarService.cc.

References m_mainWindow.

Referenced by VisDetContent::init(), VisEventMenu::initEventProcessor(), and VisEventMenu::processOneEvent().

00046 {
00047     m_mainWindow->statusBar ()->message (message);
00048     qApp->syncX ();
00049 }


Member Data Documentation

QMainWindow* IgQtAppStatusBarService::m_mainWindow [private]

Definition at line 34 of file IgQtAppStatusBarService.h.

Referenced by IgQtAppStatusBarService(), setMessage(), and ~IgQtAppStatusBarService().

IgState* IgQtAppStatusBarService::m_state [private]

Definition at line 33 of file IgQtAppStatusBarService.h.

Referenced by ~IgQtAppStatusBarService().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:26 2009 for CMSSW by  doxygen 1.5.4