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
con
6bd790bd0f
Version bump
2010-07-22 18:05:53 +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
Kai Koehne
4b504323ec
Show horizontal scrollbar in navigator views (if needed)
...
Requested by con.
2010-07-16 16:27:14 +02:00
Kai Koehne
ef82e1db21
Show e.g. 'anchors' again in the Outline
...
This reverts commit 62b83fcfd , which was about filtering 'ghost'
elements out like "Rectangle { id }", where id was parsed as a
UiObjectDefinition. Unfortunately, "anchors" also is represented as
an ObjectDefinition ... Anyhow, the original problem does not
occur any more, so we can just revert this.
2010-07-16 14:10:03 +02:00
Kai Koehne
97ca483d33
QmlJSOutline: Store the filter settings when switching files
2010-07-16 14:10:02 +02:00
Kai Koehne
ff5506f3b9
QmlJSOutline: Optimize performance of QmlOutlineModel
...
Previously we're setting the properties of the items one by one, each
time potentially triggering an update of the view. Actually this
uncovered an error in the Filter, which was only reacting to the first
change and therefore didn't take the item type into account on first
load.
Instead, we now use our own QStandardItem class which can be used to
assign all values at once.
2010-07-16 14:10:02 +02:00
Denis Mingulov
5af6f15f7c
Utils::NavigationTreeView is created - as a base class for any Navigation Widget (Side Bar) tree view
...
Merge-request: 2167
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2010-07-16 11:24:02 +02:00
Christian Kamm
8519ca11c3
QmlJS: Allow 'follow symbol' to jump to the target of a file import.
...
Task-number: QTCREATORBUG-1736
2010-07-16 11:17:10 +02:00
Christian Kamm
68be307b49
QmlJS: Use LookupContext in findLinkAt.
2010-07-16 10:42:26 +02:00
Thomas Hartmann
c03f2b03b2
QmlJS::IContextPane adapting the interface
...
closing windows with escape is now stacked again
2010-07-15 16:45:34 +02:00
Thorbjørn Lindeijer
e101d8eccc
Make the way completion is triggered configurable
...
Now it's possible to choose between having completion popup manually,
when triggered or always.
2010-07-15 16:24:01 +02:00
Lasse Holmstedt
bb596688c2
fixed singleselection for states qml file
2010-07-15 13:39:39 +02:00
Kai Koehne
679ccc3b74
QmlOutline: Add filter for hiding bindings (properties)
2010-07-14 16:56:14 +02:00
Olivier Goffart
9a1d97707a
Merge branch 'qmljsinspector'
...
Conflicts:
src/plugins/qmlinspector/qmlinspectorplugin.cpp
src/plugins/qmljseditor/qmljseditor.h
src/plugins/qmljsinspector/QmlJSInspector.pluginspec
src/tools/qml/qmlobserver/editor/resizehandleitem.h
2010-07-14 15:41:27 +02:00
Lasse Holmstedt
8936292dc2
modified selection to accept items without id's
...
also cleaned up old stuff
2010-07-14 15:30:54 +02:00
Lasse Holmstedt
4ecad983ec
added multiselection from editor to qml viewer
2010-07-14 15:30:53 +02:00
Kai Koehne
3809327a68
QmlOutline: Disable debugging output
...
Disable output accidentally enabled in f00225a0f
2010-07-14 13:36:18 +02:00
Kai Koehne
f00225a0f5
QmlOutline: Also show custom properties
...
Also show properties defined in the component, e.g. by 'property x',
in the outline.
2010-07-14 13:34:19 +02:00
Kai Koehne
fe82dd7ff7
QmlOutline: Make sure tree view is always expanded
2010-07-14 13:34:18 +02:00
dt
3ef43f56c7
Move qmltaskmanager from qmlproject plugin to qmljseditor
2010-07-14 13:01:43 +02:00
Kai Koehne
5aea93028f
Add position to navigation history when navigating through outline
2010-07-14 12:55:58 +02:00
Kai Koehne
ce32f25ba3
QmlOutline: Show icons for known types
2010-07-14 11:40:11 +02:00
Kai Koehne
62b83fcfd2
QmlOutline: Filter out 'ghost' elements
...
The parser represents incomplete script bindings as element definitions,
e.g. for 'Item { id }', 'id' is represented as an UiObjectDefinition.
Catch this in the outline model by explicitly checking whether a
UiObjectDefinition starts with a capital letter.
2010-07-14 08:09:50 +02:00
Kai Koehne
df037e1f42
QmlJSEditor: Fix typo
2010-07-13 11:45:10 +02:00
Kai Koehne
1510ad5aa1
QmlJSEditor: Adapt method/variable names
2010-07-13 11:45:10 +02:00
Kai Koehne
8d48c51175
QmlJSEditor: Delay update of outline by 150 ms
2010-07-13 11:45:10 +02:00
Kai Koehne
2bafdb71a2
QmlJSEditor: Rename documentRevision() to editorRevision()
...
In line with QmlJS::Document::editorRevision() and
CPPEditor::editorRevision()
Reviewed-by: Roberto Raggi
2010-07-13 11:45:10 +02:00
Kai Koehne
2e1a36963e
QmlJSEditor: Delay synchronization of cursor2outline selection by 150ms
2010-07-12 17:03:49 +02:00
Kai Koehne
503f720f85
Outline: Make recalculation of current model index more robust
2010-07-12 16:40:43 +02:00
Kai Koehne
9c12ef51fb
QmlOutline: Show id instead of element name if available
2010-07-12 15:51:26 +02:00
Kai Koehne
5e3bc834f4
QmlTextEditor: Remove root decoration from outline combo box
2010-07-12 15:49:03 +02:00
Kai Koehne
94264617bf
QmlJSEditor: Use QmlOutline model also in combo box
...
The drop down combo box and the Outline in the sidebar now share
the same model.
2010-07-12 14:46:29 +02:00