Commit Graph

51 Commits

Author SHA1 Message Date
Kai Koehne
542796523d QmlJSDebugger: Disable Observer pane after debugging ends
At the time setupToolbar is called in the shutdown process the
connection still exists. Instead just use the parameter.

Task-number: QTCREATORBUG-2693
Reviewed-by: Christiaan Janssen
2010-10-14 14:45:43 +02:00
Kai Koehne
8049a0276d QmlJSInspector: Fix disconnect() warnings on users app shutdown
Don't try to disconnect from the proxy if you haven't been connected
before, e.g. because the QmlJSObserverService is missing.

Reviewed-by: Christiaan Janssen
2010-10-08 15:51:55 +02:00
Kai Koehne
83e2a37850 QmlObserver: Disable UI when no server plugin exists
Reviewed-by: Christiaan Janssen
2010-10-01 17:34:01 +02:00
Kai Koehne
3e9f333769 QmlDebugger: Enable basic debugging without QmlInspector plugin
Enable setting breakpoints, and showing the script console even if
the QmlInspector plugin is not loaded.

Reviewed-by: hjk
2010-09-22 15:45:03 +02:00
Kai Koehne
4fdede8b28 QmlDebugger: Fix qDebug output 2010-09-22 15:45:03 +02:00
Kai Koehne
a10b26920b Qml: Replace 'inspector' by 'observer'
We should restrict ourselves to calling all qml debugging support
observer, instead of mixing qml debugger / inspector / observer
interchangeably.
2010-09-16 16:22:31 +02:00
dt
08ccda5862 EditorManager: Change openEditor/activateEditor to not do mode switching
Also introduce a indirection, modes have now types, edit and debug have
the same type, and editors do have a prefered type of modes instead of a
prefered mode.

That fixes the bug that if the prefered qml editing mode was set to
design, then in switching between qml editors would
- in Edit Mode: stay in edit mode
- in Debug Mode: switch to debug mode
2010-09-14 15:23:11 +02:00
Friedemann Kleint
f7b19f8114 Debugger: Move DebuggerEngine/QmlEngine/QmlCppEngine into Debugger{}
namespace (from Debugger::Internal) as they are exported classes.
Introduce private classes to avoid exposing private JS debugger
headers.
2010-09-13 13:30:35 +02:00
Christiaan Janssen
1c702357a6 QmlInspector: tooltips in qmldebug mode
Reviewed by: Lasse Holmstedt
2010-09-08 16:53:44 +02:00
Christiaan Janssen
7d9056953e QmlInspector: Added reparenting of items in the Qml Live Preview. Reviewed by: Lasse Holmstedt 2010-08-26 17:38:42 +02:00
Lasse Holmstedt
fccd4d5e0c QML Inspector: Disabled rubberband selection tool
It was not very useful without being able to e.g. move things around.
2010-08-26 16:32:43 +02:00
Lasse Holmstedt
7afef49682 Qml Debugger: Code style and cleanup
Reviewed-by: hjk
2010-08-24 17:47:20 +02:00
Lasse Holmstedt
fe55ba5cd2 QML Inspector: Don't update debug id's when not debugging
Creating LookupContext seems to be expensive, so don't update anything
unless debug mode is already running.
2010-08-24 17:46:22 +02:00
Lasse Holmstedt
63da8d4cd7 QML Inspector: combined pause & play actions into one button
Easier to use now by just clicking on one button, and takes less space.
2010-08-24 17:46:22 +02:00
Lasse Holmstedt
b557c58eac Qml Debugger: Enable debugging qml+cpp standalone applications
A new debugger engine, QmlCppEngine, is introduced, which wraps gdb
and qml engines into one. Alternatively, if using Windows, Cdb is used
instead of Gdb.

Most of the debugger ui switcher is now rewritten, and it is tailored
for the QML and CPP layout case, the only one supported anyway.

Reviewed-by: hjk
2010-08-24 17:46:22 +02:00
Olivier Goffart
a18c8f9e96 QML Debugger: request objects from all contexts 2010-08-20 15:57:02 +02:00
Olivier Goffart
f64e7a1819 Qml Debugger: fix the debugger when the observer is reloaded.
The problem was that we did not query the object with the good engine id
2010-08-18 11:40:57 +02:00
Lasse Holmstedt
b71c3c62ba QML Debugger refactoring
Now, QmlEngine creates the connection to the inferior (debuggee), and
notifies QmlInspector when a connection is established. Before,
inspector created the debugger engin, which was wrong.

QmlEngine's responsibilities are connecting to the debuggee and basic
QML/JS debugging features like locals & watchers, breakpoints etc.
QmlInspector takes care of Live Preview and other fancy inspection
features.

Reviewed-by: hjk
2010-08-13 14:20:39 +02:00
Lasse Holmstedt
d572efedbd Added settings class to QML Inspector
For starters, we only remember whether the initial warning about dangers
of Live Preview was shown.
2010-08-12 09:39:26 +02:00
hjk
62334acb79 qmljsinspector: give the context path dock widget a name 2010-08-11 10:03:15 +02:00
Olivier Goffart
98a4e1fbec Remove more dead code 2010-08-06 16:07:41 +02:00
Olivier Goffart
87c7ca5c9c remove dead code 2010-08-06 16:06:01 +02:00
Lasse Holmstedt
85bafac50e QML Observer: Refresh debug id's when new objects are created
Previously, the user had to navigate to the context of a qml item in
order to edit its source code in Live Preview mode. This change tells
the client to update when new objects are created on server-side, and
makes the editing possible without having to manually trigger updates.
2010-08-06 14:03:33 +02:00
Lasse Holmstedt
cc0050bbb8 QML JS inspector: fix dock widget default state 2010-08-05 11:53:11 +02:00
Lasse Holmstedt
3e9193021c Qml JS Debugger: Change context path from Creator's crumble path 2010-08-03 12:37:45 +02:00
Lasse Holmstedt
f464de1cd5 Qml JS Inspector: Show "no context" element in crumble path when empty 2010-08-03 12:37:45 +02:00
Lasse Holmstedt
524d4453e5 Qml JS Inspector: Added context crumble path as a dock widget
The crumble path shows the current context of the debugger/inspector.
2010-08-02 17:31:11 +02:00
Lasse Holmstedt
118f253a38 QML JS Debugger: Don't update deltas when not debugging 2010-08-02 17:31:11 +02:00
Lasse Holmstedt
2c15b30a20 Qml JS Live Preview: Show warnings when running Live Preview
Two kinds of warnings are now shown: one for warning about the Live
Preview itself, as it is experimental, and another when user changes
id's of objects during runtime, as this is not supported at the moment.

More warnings will be added later for other unsupported changes.
2010-07-30 15:28:19 +02:00
Lasse Holmstedt
cdb5dadfc2 QmlJS Live Preview: Fixed highlighting from text editor-> qml observer
Now, the items about to be selected must inherit from QGraphicsObject.
Also, coding style was cleaned up a bit.
2010-07-27 11:58:38 +02:00
Lasse Holmstedt
c7a8d93765 QmlJS Live Preview: Implemented "Apply changes from Qml File" button
The button is checkable and pressing it will stop/propagate changes to
the qml application being debugged.
2010-07-27 11:58:38 +02:00
Olivier Goffart
f24216bdbb QmlJsDelta: moved to the QMLJS library
Also used 'int' instead of QDeclarativeDebugObjectReference for
the debug id in order not to use the private API from QMLJS
2010-07-21 14:27:38 +02:00
Olivier Goffart
95346f79e6 Qml Live Preview: lazily create QmlJSLiveTextPreview 2010-07-20 12:54:25 +02:00
Olivier Goffart
7bef076411 Qml Live Preview: Update the QmlJSLiveTextPreview When the document is reloaded.
When the document is reloaded by the server, we need to refresh
refresh what was the loaded document, and refresh the debugIds
2010-07-20 12:54:24 +02:00
Olivier Goffart
1ce574f19e Qml Live Preview: Match debug Id for new created objects. 2010-07-19 15:38:46 +02:00
Lasse Holmstedt
e0aa4f86f2 changing QmlJsLivePreview to work with multiple documents 2010-07-16 16:12:06 +02:00
hjk
0d8c1d7c7e compile fix 2010-07-14 17:49:18 +02:00
Lasse Holmstedt
20902cf189 Moved debug id -> AST mapping code to livepreview class 2010-07-14 17:47:59 +02:00
Olivier Goffart
d89f4770ca qmljsinspector: use the columnNumber as well as the lineNumber to locate QDeclarativeDebugObjectReference 2010-07-14 15:30:54 +02:00
Lasse Holmstedt
25b86926c7 fixes related to update of delta 2010-07-14 15:30:54 +02:00
Olivier Goffart
8f528e241d QMLJS::Delta: Improved the delta
Use a smarter way to compare the AST (based on the diffX algorithm)
That way we do not rely anymore on the id property
2010-07-14 15:30:53 +02:00
Olivier Goffart
b9d859bfd8 QMLJSInspector: remove warnings and debugs 2010-07-09 14:01:03 +02:00
Olivier Goffart
905f2e629b Merge remote branch 'origin/master' into qmljsinspector
Conflicts:
	src/plugins/qmlinspector/qmlinspector.cpp
2010-07-08 16:13:14 +02:00
Lasse Holmstedt
7e67880ef7 connected reloading signals 2010-07-08 12:30:08 +02:00
Lasse Holmstedt
9a81759101 manually applied changes from qmlinspector to qmljsinspector 2010-07-08 11:36:26 +02:00
Roberto Raggi
f31d299d51 Observe the QML/JS model manager. 2010-06-29 16:15:49 +02:00
Roberto Raggi
f6c7064503 Removed dangerous unfinished code. 2010-06-29 15:11:01 +02:00
Roberto Raggi
6f4cc3541d Start the inspector. 2010-06-29 14:24:12 +02:00
Roberto Raggi
6d1d196ed1 Cleanup 2010-06-29 14:12:39 +02:00
Roberto Raggi
4aa63c074d Reenabled more code from the original inspector. 2010-06-29 13:54:34 +02:00