CMS 3D CMS Logo

IgQtAppDebugService Class Reference

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

Inheritance diagram for IgQtAppDebugService:

IgStateElement

List of all members.

Public Member Functions

 IgQtAppDebugService (IgState *state, QWidget *mainWindow)
 ~IgQtAppDebugService (void)

Static Public Attributes

static const int MENU_ID_DEBUG = 9000
static const int MENU_ID_DEBUG_CRASH = 9007
static const int MENU_ID_DEBUG_DEBUGME = 9008
static const int MENU_ID_DEBUG_DUMPSTATE = 9004
static const int MENU_ID_DEBUG_LIBRARIES = 9002
static const int MENU_ID_DEBUG_PLUGINS = 9003
static const int MENU_ID_DEBUG_POOLS = 9006
static const int MENU_ID_DEBUG_PROFILER = 9101
static const int MENU_ID_DEBUG_PROFILER_SEP = 9100
static const int MENU_ID_DEBUG_RESOURCES = 9001
static const int MENU_ID_DEBUG_SESSION = 9005

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (IgQtAppDebugService)
 IgQtAppDebugService (const IgQtAppDebugService &)
IgQtAppDebugServiceoperator= (const IgQtAppDebugService &)

Private Attributes

IgQtAppDebugm_info
QWidget * m_mainWindow
IgStatem_state


Detailed Description

Definition at line 20 of file IgQtAppDebugService.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file IgQtAppDebugService.cc.

References ASSERT, debug, debugme, DBSPlugin::get(), IgQtAppMenuService::index(), m_info, MENU_ID_DEBUG, MENU_ID_DEBUG_DEBUGME, MENU_ID_DEBUG_DUMPSTATE, MENU_ID_DEBUG_LIBRARIES, MENU_ID_DEBUG_PLUGINS, MENU_ID_DEBUG_PROFILER, MENU_ID_DEBUG_PROFILER_SEP, MENU_ID_DEBUG_RESOURCES, and IgState::put().

00025     : m_state (state),
00026       m_mainWindow (mainWindow),
00027       m_info (new IgQtAppDebug (state, mainWindow))
00028 {
00029     ASSERT (state);
00030     ASSERT (mainWindow);
00031     state->put (s_key, this);
00032 
00033     ASSERT (IgQtAppMenuService::get (state));
00034     QMenuBar    *menu = IgQtAppMenuService::get (state)->menuBar ();
00035     QPopupMenu  *debug = new QPopupMenu (mainWindow);
00036 
00037     debug->setCaption ("Debug");
00038     debug->insertTearOffHandle ();
00039     debug->insertItem
00040         ("Show &Resources", m_info, SLOT(resources()), 0,
00041          MENU_ID_DEBUG_RESOURCES, IgQtAppMenuService::index
00042          (debug, MENU_ID_DEBUG_RESOURCES));
00043     debug->insertItem
00044         ("Show &Libraries", m_info, SLOT(libraries()), 0,
00045          MENU_ID_DEBUG_LIBRARIES, IgQtAppMenuService::index
00046          (debug, MENU_ID_DEBUG_LIBRARIES));
00047     debug->insertItem
00048         ("Show &Plugins", m_info, SLOT(plugins()), 0,
00049          MENU_ID_DEBUG_PLUGINS, IgQtAppMenuService::index
00050          (debug, MENU_ID_DEBUG_PLUGINS));
00051     debug->insertItem
00052         ("&Show State Tree", m_info, SLOT(dumpState()), 0,
00053          MENU_ID_DEBUG_DUMPSTATE,  IgQtAppMenuService::index
00054          (debug, MENU_ID_DEBUG_DUMPSTATE));
00055     // debug->insertItem
00056     //     ("Show &State", m_info, SLOT(state()), 0,
00057     //      MENU_ID_DEBUG_STATE, IgQtAppMenuService::index
00058     //      (debug, MENU_ID_DEBUG_STATE));
00059     // debug->insertItem
00060     //     ("Show &Pools", this, SLOT(pools()), 0,
00061     //      MENU_ID_DEBUG_POOLS,  IgQtAppMenuService::index
00062     //      (debug, MENU_ID_DEBUG_POOLS));
00063     // debug->insertItem
00064     //     ("Show &Crash", this, SLOT(crash()), 0,
00065     //      MENU_ID_DEBUG_CRASH,  IgQtAppMenuService::index
00066     //      (debug, MENU_ID_DEBUG_CRASH));
00067     debug->insertItem
00068         ("&Debug Me Now", m_info, SLOT(debugme()), 0,
00069          MENU_ID_DEBUG_DEBUGME,  IgQtAppMenuService::index
00070          (debug, MENU_ID_DEBUG_DEBUGME));
00071 
00072     debug->insertSeparator (IgQtAppMenuService::index 
00073                             (debug, MENU_ID_DEBUG_PROFILER_SEP));
00074 
00075     debug->insertItem
00076         ("Show &Profiler", m_info, SLOT(showProfiler()), 0,
00077          MENU_ID_DEBUG_PROFILER,  IgQtAppMenuService::index
00078          (debug, MENU_ID_DEBUG_PROFILER));
00079     
00080     menu->insertItem ("&Debug", debug, MENU_ID_DEBUG,
00081                       IgQtAppMenuService::index (menu, MENU_ID_DEBUG));
00082 }

IgQtAppDebugService::~IgQtAppDebugService ( void   ) 

Definition at line 84 of file IgQtAppDebugService.cc.

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

00085 {
00086     ASSERT (m_state);
00087     ASSERT (m_mainWindow);
00088     m_state->detach (s_key);
00089 }

IgQtAppDebugService::IgQtAppDebugService ( const IgQtAppDebugService  )  [private]


Member Function Documentation

IgQtAppDebugService::IG_DECLARE_STATE_ELEMENT ( IgQtAppDebugService   )  [private]

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


Member Data Documentation

IgQtAppDebug* IgQtAppDebugService::m_info [private]

Definition at line 46 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

QWidget* IgQtAppDebugService::m_mainWindow [private]

Definition at line 45 of file IgQtAppDebugService.h.

Referenced by ~IgQtAppDebugService().

IgState* IgQtAppDebugService::m_state [private]

Definition at line 44 of file IgQtAppDebugService.h.

Referenced by ~IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG = 9000 [static]

Definition at line 24 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService(), and IgQtAppDebug::showProfiler().

const int IgQtAppDebugService::MENU_ID_DEBUG_CRASH = 9007 [static]

Definition at line 31 of file IgQtAppDebugService.h.

const int IgQtAppDebugService::MENU_ID_DEBUG_DEBUGME = 9008 [static]

Definition at line 32 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_DUMPSTATE = 9004 [static]

Definition at line 28 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_LIBRARIES = 9002 [static]

Definition at line 26 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_PLUGINS = 9003 [static]

Definition at line 27 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_POOLS = 9006 [static]

Definition at line 30 of file IgQtAppDebugService.h.

const int IgQtAppDebugService::MENU_ID_DEBUG_PROFILER = 9101 [static]

Definition at line 34 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService(), and IgQtAppDebug::showProfiler().

const int IgQtAppDebugService::MENU_ID_DEBUG_PROFILER_SEP = 9100 [static]

Definition at line 33 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_RESOURCES = 9001 [static]

Definition at line 25 of file IgQtAppDebugService.h.

Referenced by IgQtAppDebugService().

const int IgQtAppDebugService::MENU_ID_DEBUG_SESSION = 9005 [static]

Definition at line 29 of file IgQtAppDebugService.h.


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