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
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
Thorbjørn Lindeijer
382b59a5db
Use Field instead of Label format for QML properties
...
In the default style this is currently the same, but in general it makes
more sense to highlight properties as fields.
2010-08-03 11:37:11 +02:00
Roberto Raggi
bf877d0aae
Fixed possible crash in the outline view when processing incomplete documents.
...
Task-number: QTCREATORBUG-1948
2010-08-02 15:57:42 +02:00
Leandro Melo
1530273671
Color tip for QML; Start of a bit more extensible tooltip class.
2010-08-02 14:56:55 +02:00
Alessandro Portale
3aa3c5688f
Pedantic cleanup of filename parameters for QIcon constructor
...
Using more *::Constants::ICON_* where it makes sense and
wrapping the file names into QLatin1String where they were
missing.
The increased usage of the ICON constants needed a few more
cross plugin includes of *constants.h, here and there.
I think that it is OK, since the dependencies were alredy there
icon resource wise.
2010-07-30 22:17:14 +02:00
Erik Verbruggen
6bbc732a29
Sprinkled a bit of doxymentation over various classes.
2010-07-28 17:34:00 +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
Erik Verbruggen
9b656eb1de
Changed the description to include the new file name.
2010-07-27 09:59:59 +02:00
Erik Verbruggen
c8016e8502
Put the quickfix implementations into a separate file.
2010-07-27 09:29:22 +02:00
Joerg Bornemann
253cbf3c03
remove use of QMLJS_EXPORT from the qmljseditor plugin
...
compiles now on Windows! :)
Reviewed-by: dt
2010-07-26 17:39:19 +02:00
Erik Verbruggen
d980e37e24
Reworked the QuickFix infrastructure.
2010-07-26 13:07:19 +02:00
Kai Koehne
40e36e0cd0
QmlOutline: Treat grouped property items as properties
...
E.g. "anchors {}" is represented in the AST as a UiObjectDefinition.
Treat it nevertheless like a property in the outline, such that it
isn't shown in the outline if you deactivate showing bindings.
2010-07-22 10:14:05 +02:00
Kai Koehne
39b1bb8bd4
QmlOutline: Replace dynamic_casts by specific AST casts
2010-07-22 10:14:05 +02:00
Kai Koehne
0b5b1ef7ce
QmlOutline: Fix issues when 'filter bindings' is activated
...
Make sure the filter reevaluates all items when they change.
2010-07-21 14:51:02 +02:00
Kai Koehne
e708eb3d83
Qml Outline: Support rearrangement of the items via drag&drop
2010-07-21 14:14:11 +02:00
Kai Koehne
5df0f0a050
QmlOutline: Move model methods to private
2010-07-21 14:14:09 +02:00
Thomas Hartmann
825c43dd2b
QmlJSEditor: hiding of the context pane
...
We properly hide the pane if the viewport is scrolled or resized.
2010-07-20 15:02:49 +02:00
Thomas Hartmann
8b90b96f3c
QmlJSEditor: adding variant for declaringMember
...
declaringMemberNoProperties ignores grouped properties like font
and easing curve. It also skips Gradient and GradientStops
2010-07-20 15:02:48 +02:00
Roberto Raggi
281c6ad1f6
Get rid of an annoying (useless?) call to qDebug.
2010-07-19 15:46:30 +02:00
Kai Koehne
6eadeb052c
QmlOutline: Show sensible tooltips
...
Show the same tooltips as in the text editor. To accomplish this
I refactored the QmlOutlineModel quite a bit ...
2010-07-19 14:29:55 +02:00