Roberto Raggi
a05f2cb318
Check the file extension before computing the component's name.
2010-01-27 09:24:49 +01:00
Roberto Raggi
cac1973a27
Import the types in the declaring namespace object.
2010-01-27 09:23:06 +01:00
Christian Kamm
4f31f0f51f
Qml editor: add function declarations to objects or the Script scope.
...
Enables completion for function declarations inside qml files.
2010-01-26 18:09:30 +01:00
Roberto Raggi
9cdca3a92b
Some initial support for relative imports.
2010-01-26 17:23:18 +01:00
Roberto Raggi
5107ba57c2
There's no need to create a namespace object when the importId is invalid.
2010-01-26 16:31:07 +01:00
Roberto Raggi
c1b3f0b120
Coding style.
2010-01-26 16:21:03 +01:00
Roberto Raggi
02ee76b82a
Initalize the members of the binder.
2010-01-26 15:51:31 +01:00
Erik Verbruggen
138221ac24
Add missing qmljsmetatypesystem.*
...
Done-with: ckamm
2010-01-26 15:29:35 +01:00
Roberto Raggi
f753d3328b
Add the snippets to the completion box when the character at the left of the text cursor is a delimiter.
2010-01-26 15:23:19 +01:00
Erik Verbruggen
cf35a0249b
Implemented the binding phase for QML.
...
Done-with: Christian Kamm
2010-01-26 15:20:18 +01:00
Roberto Raggi
5d272795cf
Don't add the QML signals to the completion box.
2010-01-26 15:19:19 +01:00
Roberto Raggi
aa92c84e08
Group the members of ConvertToString and ConvertToNumber.
2010-01-26 15:12:47 +01:00
Roberto Raggi
204aeb700e
Skip the tokens inside brackets when computing the expression under cursor.
2010-01-26 15:09:04 +01:00
Roberto Raggi
ab8c19f2f8
Some initial work on the type checker for QML/JS.
2010-01-26 14:55:33 +01:00
Roberto Raggi
1e6a0523a1
Moved QmlJSTextEditor::m_declarations.
2010-01-26 14:26:26 +01:00
Roberto Raggi
5cff896fa8
Get rid off QmlJSEditor::m_idRevisions & co.
2010-01-26 14:14:01 +01:00
Roberto Raggi
e622d70617
There's no need to store the diagnostic messages in the editor.
...
Store the error message in the QTextCharFormat of the extra selection.
2010-01-26 14:03:37 +01:00
Roberto Raggi
f995022af7
Insert the semicolon at the end of the trimmed line only when it is stricly necessary.
2010-01-26 12:56:05 +01:00
Roberto Raggi
df11fc95f9
Introduced a few paranoia checks.
2010-01-26 12:45:58 +01:00
Roberto Raggi
3bb70c1c49
Fixed String.prototype.split. The property `length' should be 1 and not 2.
2010-01-26 12:38:52 +01:00
Roberto Raggi
0e93bf3b96
Activate the global completion when the the character at the left of the text cursor is a delimiter.
2010-01-26 12:36:40 +01:00
Friedemann Kleint
7ddfd8659a
Foldernavigationwidget: Add "Open Terminal" and "Open Explorer".
...
Move code to Foldernavigationwidget as static utilities and use
them from there and from the Project explorer. Fix error message box.
Task-number: QTCREATORBUG-62
2010-01-26 12:33:48 +01:00
Kai Koehne
666724b201
Fix assert in WriteLogger because of misbehaving Navigator
...
The Navigator "called back" to the model in case e.g. the id
of an item changed. This was catched by the WriteLogger, which
lead to an assert.
Fix this by tracking whether we are changing the navigator items
due to a model change, and not reacting to itemChanged signal
in this case.
2010-01-26 12:32:42 +01:00
Roberto Raggi
34751f4af8
Added family to the QML font object.
2010-01-26 12:31:01 +01:00
Roberto Raggi
fbd624d170
Update the ranges also for recovered ASTs.
2010-01-26 12:09:28 +01:00
Simon Hausmann
521c69a744
Fix compilation without declarative backend
2010-01-26 12:06:58 +01:00
Roberto Raggi
e722570f06
Inserted a fake semicolon at the end of the trimmed line.
2010-01-26 11:58:20 +01:00
Roberto Raggi
cb688f05f3
Disable the QML black magic thingie when working on JS files.
2010-01-26 11:51:44 +01:00
Roberto Raggi
1ba889a1bf
Generalized the filtering of completion items.
2010-01-26 11:44:45 +01:00
Roberto Raggi
478907e5c3
Added method defaultValueForBuiltinType(typeName) to the QML/JS interpreter.
2010-01-26 11:15:21 +01:00
Roberto Raggi
84d721078e
Added some basic support for the attached Keys property.
2010-01-26 11:06:28 +01:00
Roberto Raggi
2512a684d5
Show the argument names from the method's signature.
2010-01-26 10:50:55 +01:00
con
3294fbf8bf
Add missing image resource.
2010-01-26 10:47:51 +01:00
Friedemann Kleint
001602c2a4
Foldernavigationwidget: Use QFileSystemModel instead of QDirModel.
...
hoping for better performance. On this occasion, add context menu
containing "Open" and "Choose folder" enabling drive changes on
Windows. Purge remains of QDirModel elsewhere.
Task-number: QTCREATORBUG-62
2010-01-26 10:33:39 +01:00
Roberto Raggi
bf8c0b8a22
Complete signals, slots and generate slots of QML items.
2010-01-26 10:19:42 +01:00
Roberto Raggi
2a5506b1d0
Show auto generated slots (e.g. onClicked) only when performing a global completion.
2010-01-26 10:10:11 +01:00
Roberto Raggi
c65a028f74
Added the user components to the global completion and fixed completion for the `parent' property.
2010-01-26 09:54:02 +01:00
Marco Bubke
aec314b276
Mouse event positions are adjusted to the graphics view rect
...
Task-number: BAUHAUS-120
2010-01-25 17:16:20 +01:00
Roberto Raggi
0969f3b85f
Resolve the `import' directives.
...
Yet another quick and dirty hack while waiting for the real binding pass.
2010-01-25 17:14:23 +01:00
Oswald Buddenhagen
45cc9df8a2
eliminate duplicates from qmake spec and feature paths
...
potentially reduces the number of file::exists() calls
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
567d7ed397
add minimal test program for profileevaluator
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
b5fd00955f
get rid of lots of qfileinfo and qfile calls
...
partly by removing unnecessary calls, partly by providing minimalistic
reimplementations.
this gives a quite incredible performance boost ...
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
18a515652a
drastically cut down qregexp use
...
this gives a rather impressive speed boost.
if qmake wasn't trying to be so clever, we could get even more
out of this.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
bf10b04f7f
don't guess .pro file names for SUBDIRS targets
...
qmake doesn't, either
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
3cdecdd9e1
integrate function argument splitting into expandVariableReferences()
...
that way we save the creation of a temporary stringlist
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
9b8a09b881
get rid of m_proitem
...
now that we know the size of the entire file, we can use a single fixed
buffer instead of growing one on-demand - in the case where we just read
the file, we can even re-use the file buffer itself.
this should improve performance for files with very many line
continuations, but the practical impact drowns in the noise.
anyway, the code is nicer, as we don't abuse qstring that obviously any
more.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
cac522b761
read file at once instead of line-wise
...
again several percent faster ...
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
cc635e2642
avoid QChar::unicode() calls in debug builds
...
in release mode they expand to nothing ... not so in debug mode.
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
714e981c69
optimize expandVariableReferences()
...
- nest conditionals properly to avoid unnecessary tests
- avoid usage of QString::append(QChar) to save allocations
2010-01-25 16:53:56 +01:00
Oswald Buddenhagen
48d15b8a66
don't split value list right before expanding variables
...
the latter will do it anyway.
this eradicates the performance penalty from the previous commit at its
root.
2010-01-25 16:53:56 +01:00