Kai Koehne
6cf563bb25
QmlOutline: Cut down update times considerably
...
Cut down update times of Outline by a magnitude by only emitting
itemChanged signal if absolutely needed. This doesn't include the change
of the icon, because QIcon is missing a comparison operator ...
2010-08-25 13:28:04 +02:00
Kai Koehne
8346e354ee
QmlOutline: Always reset views
...
The incremental update is not working as expected.
2010-08-25 12:25:22 +02:00
Christian Kamm
898098c1f2
QmlJS: Allow lookups on const Contexts. Pass const Contexts where ok.
...
In preparation for caching Contexts.
Reviewed-by: Erik Verbruggen
2010-08-25 11:53:23 +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
Erik Verbruggen
ef11c4e7ac
Truned qmldump into an .app, and suppress its dock icon.
2010-08-24 17:09:57 +02:00
Kai Koehne
cfa1bed0cb
QmlOutline: Increase delay before doing an update to 500ms
...
Use same delay as in cppeditor. Hopefully prevents the Outline to be
updated while typing.
2010-08-24 14:35:04 +02:00
Kai Koehne
42708807a5
QmlOutline: Make sure that currently selected item is always visible
2010-08-24 14:35:04 +02:00
Leandro Melo
14ffff317c
Better flexibility and extensibility in text editor tooltip's internals.
2010-08-24 13:39:40 +02:00
Kai Koehne
0f4a66e785
Compilation fix
...
Remove method declaration. This is a remainder of merge
ef1e52d .
2010-08-24 08:57:48 +02:00
Kai Koehne
ef1e52dfd1
Merge branch '2.0' of scm.dev.nokia.troll.no:creator/mainline
...
Conflicts:
doc/qtcreator.qdoc
doc/qtcreator.qdocconf
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/gdbmacros.py
src/plugins/debugger/debuggermanager.cpp
src/plugins/debugger/gdb/attachgdbadapter.cpp
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/watchhandler.cpp
src/plugins/mercurial/mercurialjobrunner.h
src/plugins/qmljseditor/qmljseditor.cpp
src/plugins/qmljseditor/qmljseditor.pro
src/plugins/qmljseditor/qmljseditorplugin.cpp
src/plugins/qmljseditor/qmljseditorplugin.h
src/plugins/qmljseditor/qmljspreviewrunner.cpp
src/plugins/qmljseditor/qmljspreviewrunner.h
src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec
src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
src/plugins/qt4projectmanager/qt-maemo/qemuruntimemanager.cpp
src/plugins/qt4projectmanager/qt4projectmanager.pro
src/plugins/qt4projectmanager/qtversionmanager.h
src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
src/plugins/qt4projectmanager/wizards/targetsetuppage.h
2010-08-23 16:00:24 +02:00
Kai Koehne
420a2b4e6e
QmlEditor: Remove QtQuick->Preview from tools menu
...
This only works when a qmlviewer is in the PATH, which is non obvious.
Removing the feature therefore completely.
2010-08-19 17:15:40 +02:00
Olivier Goffart
0f0aca09cb
missing license headers
2010-08-19 11:35:39 +02:00
Thomas Hartmann
d82acb2c31
fix warning and possible bug
2010-08-18 16:39:22 +02:00
Thomas Hartmann
76c865fc61
QuickToolBar: support for PropertyChanges
...
The ToolBar now detects the target type of the target
of a PropertyChanges object.
2010-08-18 16:25:25 +02:00
hjk
b59fa0cd8b
Merge remote branch 'origin/2.0'
...
Conflicts:
share/qtcreator/gdbmacros/dumper.py
src/plugins/cppeditor/cpphoverhandler.cpp
src/plugins/cppeditor/cpphoverhandler.h
2010-08-18 10:05:53 +02:00
Thomas Hartmann
cb7b38790f
QmlJSEditor: QuickToolBar stays visible on wheelEvent
...
The mouse wheel should not hide the QuickToolBar
2010-08-17 15:41:35 +02:00
Robert Loehning
ed0bed351a
Fixed untranslated string
2010-08-17 14:14:18 +02:00
Kai Koehne
2d64eb846b
QmlOutline: Replace WeakPointer by normal one
2010-08-16 13:29:00 +02:00
Kai Koehne
258a212d73
QmlOutline: Center cursor
...
Do the same as in CppOutline
2010-08-16 13:29:00 +02:00
Thomas Hartmann
d7956ad2e0
QmlJSEditor: bugfix
...
We have to check for m_oldCursorPosition != -1
to avoid calling apply() in the case of a TextMarker
update. Otherwise the QuickToolBar misbehaves.
I also removed the comment.
2010-08-13 17:22:23 +02:00
Thomas Hartmann
abdda35966
QmlJSEditor: refines textmarker logic
...
The textmarker is now updated when the document
gets updated and the textmarker is shown again,
if the user closes the QuickToolBar.
2010-08-13 17:22:20 +02:00
Thomas Hartmann
2c160a9b2a
QmlJSEditor: extending IContextPane with a signal
...
closed() is emitted when the pane is hidden/closed.
2010-08-13 17:22:19 +02:00
Kai Koehne
ceca9d9d7a
Disable "Qt Quick->Preview" action if no qmlviewer in the PATH
...
An error dialog would be more explicit, but too late because of string
freeze.
2010-08-13 13:36:39 +02:00
Kai Koehne
e28e1f0c56
Fix QtQuick->Preview shortcut to start a qmlviewer
...
The executable has been renamed to 'qmlviewer' months ago
2010-08-13 13:36:39 +02:00
Christian Kamm
7a5df3c39d
QuickFix: Move helpers from QuickFixData to RefactoringFile.
...
Makes them easy to use everywhere. Also when calling
QuickFixData::textOf and friends, it wasn't really clear which file
they would run on.
2010-08-13 12:51:22 +02:00
Kai Koehne
6321ccee9e
QmlOutline: Support reparenting into object array
2010-08-12 18:06:21 +02:00
Thomas Hartmann
36edd86441
QmlJSEditor: Add QuickToolBar to QmlJSEditor
...
QmlDesigner is not needed anymore for the QuickToolBar
QmlJSEditor has a depends now on libs/qmleditorwidgets
2010-08-12 15:51:14 +02:00
Kai Koehne
0ff9a47c48
QmlOutline: Don't decorate root item
...
Saves some pixels, and there is little use in collapsing the complete
tree.
2010-08-12 15:21:28 +02:00
Kai Koehne
d8b6fb2282
QmlOutline: Also show values of bindings in outline
2010-08-12 15:10:53 +02:00
Kai Koehne
72862dcc61
QmlOutline: Show id/name/property values only if filter is active
2010-08-12 15:10:53 +02:00
Kai Koehne
0783b1e40a
QmlOutline: Show non-leaf bindings even when filter is active
...
Otherwise we would filter out also e.g. all States elements.
2010-08-12 15:10:53 +02:00
Christian Kamm
538f611503
Indenters: Move style setup into the QtStyleCodeFormatter constructors.
...
This makes sure styles are consistent for the editor and the quick fix
engine.
2010-08-12 14:21:35 +02:00
Christian Kamm
0355e37e53
QuickFix: Migrate to a nicer API for cross-file quick fixes.
2010-08-12 14:21:35 +02:00
Christian Kamm
ca5076e5ae
QuickFix: Don't separate createChanges from perform.
...
This will allow a more efficient and direct implementation.
2010-08-12 14:21:35 +02:00
Christian Kamm
235f4d1d26
QuickFix: Clean up RefactoringChanges and add missing functionality.
...
* Can change files without opening an editor.
* Can open an editor without changing a file.
* Default to reindenting new files.
* Allow reading a file temporarily to access document and text.
2010-08-12 14:21:35 +02:00
Kai Koehne
745d16b47d
QmlOutline: Add support UiArrayBinding, UiObjectBinding
2010-08-10 16:34:11 +02:00
Kai Koehne
757b314631
QmlJSOutline: Show the type icons again in the outline
...
They got kicked out when I added a custom style delegate.
2010-08-10 16:34:11 +02:00
Kai Koehne
f72a080da4
QmlOutline: Also show 'name', 'target' in addition to 'id'
...
Search also for 'name', or 'target' properties and show them beside
the type name.
2010-08-10 15:12:09 +02:00
Christian Kamm
2d4b4b8295
QmlJS: Fix typo in new indenter.
2010-08-10 15:13:59 +02:00
Kai Koehne
fe3bfad766
QmlOutline: Show id beside type name
...
Show id in addition to type string, but with a lighter text color
2010-08-10 14:34:56 +02:00
Kai Koehne
7fac110d75
QmlOutline: Move QmlOutlineTreeView into it's own file
2010-08-10 14:34:55 +02:00
Kai Koehne
7a1c1a373a
QmlOutline: Store relative path instead of pointer in mimetype
...
Don't store pointers in the drag document, but the path to the item.
2010-08-10 14:34:17 +02:00
Christian Kamm
822de6c17a
QmlJS: Introduce a new indenter that works similarly to the new C++ one.
...
Done-with: Thomas Hartmann
2010-08-10 14:27:08 +02:00
Roberto Raggi
da5d6d7db2
Get rid of the old deprecated indenter.
2010-08-10 10:50:00 +02:00
Roberto Raggi
df1770ff55
Use LowestPriority instead of IdlePriority.
2010-08-09 12:00:31 +02:00
Thomas Hartmann
ade58cdcee
QuickToolBar: The marker only appears if the toolbar is not visible
2010-08-05 15:36:13 +02:00
Olivier Goffart
46d4113a6e
Fix open QML file when the kate QML highlighter file are installed
...
Apparently creator uses the kate highlighter file to find the
mumetype of a file.
But kate annotate qml file with text/x-qml instead of application/x-qml
that we expect
2010-08-05 14:46:39 +02:00
Thomas Hartmann
9c70e87715
QmlJSEditor: using RefactorMarker for Qt Quick ToolBar
...
* Proper implementation using a timer
* We also do a revision check now
* The RefactorMarker is only shown for types that we support
2010-08-05 10:51:31 +02:00
Thomas Hartmann
b193b3598f
QmlJSEditor: add shortcut for Qt Quick Helper (ctrl+alt+space)
...
This shortcut forces the Qt Quick Helper to be shown if
available. The action is also registered in the context menu
so it is discoverable.
Reviewed-by: Christian Kamm
2010-08-04 14:03:09 +02:00
Leandro Melo
ced86184fa
Create a base hover handler.
2010-08-03 15:49:32 +02:00