Qt 4.8
Public Functions | Public Variables | Static Public Variables | List of all members
QScriptEngineDebuggerPrivate Class Reference
Inheritance diagram for QScriptEngineDebuggerPrivate:
QObjectPrivate QObjectData

Public Functions

void _q_showStandardWindow ()
 
void createDebugger ()
 
 QScriptEngineDebuggerPrivate ()
 
 ~QScriptEngineDebuggerPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

bool autoShow
 
QScriptDebuggerdebugger
 
QScriptEngineDebuggerFrontendfrontend
 
QMainWindowstandardWindow
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Static Public Variables

static QtScriptDebuggerResourceInitializer resourceInitializer
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 251 of file qscriptenginedebugger.cpp.

Constructors and Destructors

◆ QScriptEngineDebuggerPrivate()

QScriptEngineDebuggerPrivate::QScriptEngineDebuggerPrivate ( )

Definition at line 307 of file qscriptenginedebugger.cpp.

308 {
309  debugger = 0;
310  frontend = 0;
311 #ifndef QT_NO_MAINWINDOW
312  standardWindow = 0;
313 #endif
314  autoShow = true;
315 }
QScriptEngineDebuggerFrontend * frontend

◆ ~QScriptEngineDebuggerPrivate()

QScriptEngineDebuggerPrivate::~QScriptEngineDebuggerPrivate ( )

Definition at line 317 of file qscriptenginedebugger.cpp.

318 {
319  delete debugger;
320  delete frontend;
321 #ifndef QT_NO_MAINWINDOW
322  if (standardWindow) {
323  QSettings settings(QSettings::UserScope, QLatin1String("Trolltech"));
324  QByteArray geometry = standardWindow->saveGeometry();
325  settings.setValue(QLatin1String("Qt/scripttools/debugging/mainWindowGeometry"), geometry);
327  settings.setValue(QLatin1String("Qt/scripttools/debugging/mainWindowState"), state);
328  if (standardWindow->parent() == 0)
329  delete standardWindow;
330  }
331 #endif
332 }
QScriptEngineDebuggerFrontend * frontend
The QSettings class provides persistent platform-independent application settings.
Definition: qsettings.h:73
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273
QByteArray saveState(int version=0) const
Saves the current state of this mainwindow&#39;s toolbars and dockwidgets.
QByteArray saveGeometry() const
Saves the current geometry and state for top-level widgets.
Definition: qwidget.cpp:7251

Functions

◆ _q_showStandardWindow()

void QScriptEngineDebuggerPrivate::_q_showStandardWindow ( )

Definition at line 335 of file qscriptenginedebugger.cpp.

336 {
338  (void)q->standardWindow(); // ensure it's created
339  standardWindow->show();
340 }
The QScriptEngineDebugger class provides a QScriptEngine debugger.
#define Q_Q(Class)
Definition: qglobal.h:2483
void show()
Shows the widget and its child widgets.

◆ createDebugger()

void QScriptEngineDebuggerPrivate::createDebugger ( )

Definition at line 343 of file qscriptenginedebugger.cpp.

344 {
346  if (!debugger) {
347  debugger = new QScriptDebugger();
349  QObject::connect(debugger, SIGNAL(started()),
350  q, SIGNAL(evaluationResumed()));
351  QObject::connect(debugger, SIGNAL(stopped()),
352  q, SIGNAL(evaluationSuspended()));
353  if (autoShow) {
354  QObject::connect(q, SIGNAL(evaluationSuspended()),
356  }
357  }
358 }
void setWidgetFactory(QScriptDebuggerWidgetFactoryInterface *factory)
#define SLOT(a)
Definition: qobjectdefs.h:226
The QScriptEngineDebugger class provides a QScriptEngine debugger.
#define Q_Q(Class)
Definition: qglobal.h:2483
#define SIGNAL(a)
Definition: qobjectdefs.h:227
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
The QScriptDebugger class provides a Qt Script debugger.

Properties

◆ autoShow

bool QScriptEngineDebuggerPrivate::autoShow

Definition at line 269 of file qscriptenginedebugger.cpp.

◆ debugger

QScriptDebugger* QScriptEngineDebuggerPrivate::debugger

Definition at line 264 of file qscriptenginedebugger.cpp.

◆ frontend

QScriptEngineDebuggerFrontend* QScriptEngineDebuggerPrivate::frontend

Definition at line 265 of file qscriptenginedebugger.cpp.

◆ resourceInitializer

QtScriptDebuggerResourceInitializer QScriptEngineDebuggerPrivate::resourceInitializer
static

Definition at line 271 of file qscriptenginedebugger.cpp.

◆ standardWindow

QMainWindow* QScriptEngineDebuggerPrivate::standardWindow

Definition at line 267 of file qscriptenginedebugger.cpp.


The documentation for this class was generated from the following file: