#include <Iguana/Studio/interface/IgQtAppStatusBarService.h>
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 &) | |
IgQtAppStatusBarService & | operator= (const IgQtAppStatusBarService &) |
Private Attributes | |
QMainWindow * | m_mainWindow |
IgState * | m_state |
Definition at line 21 of file IgQtAppStatusBarService.h.
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.
IgQtAppStatusBarService::IgQtAppStatusBarService | ( | const IgQtAppStatusBarService & | ) | [private] |
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 }
QMainWindow* IgQtAppStatusBarService::m_mainWindow [private] |
Definition at line 34 of file IgQtAppStatusBarService.h.
Referenced by IgQtAppStatusBarService(), setMessage(), and ~IgQtAppStatusBarService().
IgState* IgQtAppStatusBarService::m_state [private] |