#include <Iguana/Studio/interface/IgQtAppDebugService.h>
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 &) | |
IgQtAppDebugService & | operator= (const IgQtAppDebugService &) |
Private Attributes | |
IgQtAppDebug * | m_info |
QWidget * | m_mainWindow |
IgState * | m_state |
Definition at line 20 of file IgQtAppDebugService.h.
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.
IgQtAppDebugService::IgQtAppDebugService | ( | const IgQtAppDebugService & | ) | [private] |
IgQtAppDebugService::IG_DECLARE_STATE_ELEMENT | ( | IgQtAppDebugService | ) | [private] |
IgQtAppDebugService& IgQtAppDebugService::operator= | ( | const IgQtAppDebugService & | ) | [private] |
IgQtAppDebug* IgQtAppDebugService::m_info [private] |
QWidget* IgQtAppDebugService::m_mainWindow [private] |
IgState* IgQtAppDebugService::m_state [private] |
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] |
const int IgQtAppDebugService::MENU_ID_DEBUG_DUMPSTATE = 9004 [static] |
const int IgQtAppDebugService::MENU_ID_DEBUG_LIBRARIES = 9002 [static] |
const int IgQtAppDebugService::MENU_ID_DEBUG_PLUGINS = 9003 [static] |
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] |
const int IgQtAppDebugService::MENU_ID_DEBUG_RESOURCES = 9001 [static] |
const int IgQtAppDebugService::MENU_ID_DEBUG_SESSION = 9005 [static] |
Definition at line 29 of file IgQtAppDebugService.h.