Leandro Melo
591f04adf1
QML: Fix crash when calling reformat file
...
The action should only be enabled in the QML editor context.
Task-number: QTCREATORBUG-6709
Change-Id: I7d34f3eebb674d07e41fad5d6027d2ce37db9161
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2012-01-23 12:05:38 +01:00
Christian Kamm
56bf0e3023
QmlJS editor: Simplify document/semInfo updating significantly.
...
* Instead of having SemanticInfoUpdater reparse documents itself, it now
relies on the ModelManager doing that.
* SemanticInfoUpdater now takes a doc and snapshot to generate the
convenience Context / ScopeChain. Could be converted into a future
to avoid having a (99% idle) thread per editor.
* Renamed several functions in QmlJSTextEditorWidget to better indicate
their behavior.
Change-Id: I8af6ccab099130fa7fa227e44864561ca2c3f9e0
Reviewed-by: Leandro Melo <leandro.melo@nokia.com >
2011-11-21 15:49:49 +01:00
Christian Kamm
a5b26a32b3
QmlJS: Add 'reformat' action which regenerates the whole file.
...
Change-Id: I0aed6c6e197e122200d720eb9291a083095a6299
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-11-15 11:31:40 +01:00
Eike Ziller
85cf2b661e
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
src/libs/qmljs/qmljsinterpreter.cpp
src/libs/qmljs/qmljsinterpreter.h
src/plugins/debugger/qml/scriptconsole.cpp
src/plugins/git/gitplugin.cpp
src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp
src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h
Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
2011-11-11 09:46:25 +01:00
hjk
82f5573626
more Id type fixes
...
Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283
x
Change-Id: Iab58bc34bc56371405d132315573b484a533b77c
Reviewed-by: hjk <qthjk@ovi.com >
2011-11-10 15:57:09 +01:00
hjk
31600758de
all: s/info@qt.nokia.com/qt-info@nokia.com/
...
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-11-03 10:33:19 +01:00
Jarek Kobus
2244911826
Implement Code Style schemes
...
Task-number: QTCREATORBUG-5092
Change-Id: I218cef02f7c242e4dfae59b1b8021ea618e60d07
Reviewed-on: http://codereview.qt-project.org/5160
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-23 10:23:15 +02:00
hjk
7bfde77d7c
s/error_message/errorMessage/g
...
Change-Id: I9a91028fb7c00a20843d99ece659ec8b7acc7710
Reviewed-on: http://codereview.qt-project.org/5312
Reviewed-by: hjk <qthjk@ovi.com >
2011-09-21 13:06:52 +02:00
hjk
488330255d
core: rename uniqueidmanager.{cpp,h} as the class UniqueIdManager is gone
...
Change-Id: Iffe04bc3bb0103cbac605f0734bbfd66eb7fd854
Reviewed-on: http://codereview.qt.nokia.com/4215
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: hjk <qthjk@ovi.com >
2011-09-05 18:04:55 +02:00
Christian Kamm
1c3dab2948
QmlJS: Show semantic messages on request.
...
* Add 'Run Checks' action (Ctrl-Shift-C) to perform checks on
all projects.
* Add 'QML Analysis' build issues category to separate
clear errors from semantic analysis results.
* Disabled automatic updating of analysis results.
Change-Id: I4c948b1bd39f55655073e56c5e3ca7837f727665
Reviewed-on: http://codereview.qt.nokia.com/2850
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-16 08:00:49 +02:00
Christian Kamm
e768fbf5d1
QmlJS: Rename SemanticHighlighter -> SemanticInfoUpdater.
...
Since it doesn't do any highlighting...
Change-Id: I45d20735535fa1885153a725d0ca894326ce53db
Reviewed-on: http://codereview.qt.nokia.com/2862
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-12 08:28:36 +02:00
Oswald Buddenhagen
65c0eb5165
Merge branch '2.3'
...
Conflicts:
src/plugins/debugger/qml/qmlengine.cpp
Change-Id: I46509f0c187b71bbaed7b2118a160914f8250ca4
2011-07-29 17:57:59 +02:00
Kai Koehne
1757228278
New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)
...
Warn if the condition fails, but otherwise don't change the execution
flow.
Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546
Reviewed-on: http://codereview.qt.nokia.com/2389
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-07-29 12:19:11 +02:00
Christian Kamm
51d8f468e4
QmlJS: Remove old 'Rename id' action.
...
Replaced by superior 'Rename Symbol Under Cursor'.
Change-Id: I0d0367d1297fde37d501266ef7df515256c6abd7
Reviewed-on: http://codereview.qt.nokia.com/1428
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-07-11 15:01:59 +02:00
Christian Kamm
35cb3793a1
QmlJS: Implement renaming of usages.
...
Task-number: QTCREATORBUG-3669
Change-Id: I2c600cae5ac445ca80eafe6557ba276c14a77a73
Reviewed-on: http://codereview.qt.nokia.com/1413
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-11 14:40:27 +02:00
Christian Kamm
83c5f81cc3
QmlJS: Merge QML and QML/JS tools menu.
...
Change-Id: I0b68cbec1c44b82e4ef84b7305bfa29d660194c7
Reviewed-on: http://codereview.qt.nokia.com/888
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-06-29 12:30:15 +02:00
Christian Kamm
779fafcbfe
Make C++ code style configurable.
...
Change-Id: Iaf08edb2361146e6b5e1cbafdb716a23c938875b
Done-with: Jarek Kobus
Task-number: QTCREATORBUG-2670
Task-number: QTCREATORBUG-4310
Task-number: QTCREATORBUG-2763
Task-number: QTCREATORBUG-3623
Task-number: QTCREATORBUG-567
Reviewed-on: http://codereview.qt.nokia.com/74
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-24 12:45:07 +02:00
Leandro Melo
bec4f02495
New code assist API
...
This is a re-work of our completion engine. Primary goals are:
- Allow the computation to run in a separate thread so the GUI is not locked.
- Support a model-based approach. QStrings are still needed (filtering, etc), but
internal structures are free to use more efficient representations.
- Unifiy all kinds of *assist* into a more reusable and extensible framework.
- Remove unnecessary dependencies on the text editor so we have more generic
and easily "plugable" components (still things to be resolved).
2011-05-18 10:46:20 +02:00
Tobias Hunger
aa2acec14c
Fix/add copyright headers
...
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
Christian Kamm
c504d28eb5
QmlJS: Add semantic errors to task window.
...
Task-number: QTCREATORBUG-4103
Reviewed-by: Leandro Melo
2011-04-21 11:16:50 +02:00
hjk
8397663964
Update license.
2011-04-13 11:49:28 +02:00
hjk
f576ad9f2c
texteditor: merge ITextEditable into ITextEditor
...
rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
rename BaseTextEditor{,Widget} subclasses
rename editableInterface->editorInterface
rename createEditableInterface->createEditor
minor cleanups after renamings
2011-02-22 11:23:53 +01:00
hjk
ed5f80048a
completion: call directly from base text editor
...
Reviewed-by: con
2011-02-21 14:46:06 +01:00
hjk
6966154731
completion: fix two connection broken with previous commit
2011-02-21 14:11:08 +01:00
hjk
9a6c4a42f7
completion: enable multiple completors for different use cases.
...
Introduce CompletionPolicy enum, use 'TextCompletion' for the new plain
text completion, and 'SemanticCompletion' or 'QuickFixCompletion' for
the existing cases.
Reviewed-by: Erik Verbruggen
2011-02-21 14:04:43 +01:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
con
b1bcf081d8
Merge branch '2.1'
...
Conflicts:
src/plugins/coreplugin/basemode.cpp
src/plugins/coreplugin/basemode.h
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h
src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp
src/plugins/debugger/debuggeragents.cpp
src/plugins/debugger/debuggeruiswitcher.cpp
src/plugins/debugger/debuggeruiswitcher.h
src/plugins/projectexplorer/buildconfigdialog.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.h
src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h
src/plugins/qmldesigner/designercore/include/modelutilities.h
src/plugins/qmldesigner/designercore/include/nodeinstance.h
src/plugins/qmldesigner/designercore/include/propertymetainfo.h
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h
src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h
src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h
src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp
src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp
src/plugins/qmldesigner/designercore/model/modelutilities.cpp
src/plugins/snippets/inputwidget.cpp
src/plugins/snippets/snippetscompletion.cpp
src/plugins/snippets/snippetscompletion.h
src/plugins/snippets/snippetspec.cpp
src/plugins/snippets/snippetsplugin.cpp
src/plugins/snippets/snippetswindow.cpp
src/plugins/snippets/snippetswindow.h
src/plugins/texteditor/snippetsparser.cpp
src/tools/qml/qmldom/main.cpp
tests/manual/trk/runner.cpp
tests/manual/trk/trkolddevice.cpp
tests/manual/trk/trkolddevice.h
tests/manual/trk/trkserver.cpp
2010-12-17 17:00:53 +01:00
con
4321e01efb
Some API beautification in action container.
...
Done-with: Daniel Molkentin
2010-12-17 16:05:47 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
Roberto Raggi
ea5d923fe0
Don't waste time rehighlighting all the files opened in Creator.
2010-12-14 15:06:01 +01:00
Leandro Melo
1175705bfc
Snippets: Make it easier for plugins to add snippets groups
...
Groups are no longer enum values but identified from snippet providers.
2010-12-08 17:22:13 +01:00
Leandro Melo
7528c6d617
Snippets: Feature enhancement start...
...
Provide an interface so users can create/edit/remove snippets.
2010-12-08 17:22:07 +01:00
Christian Kamm
8d59cff401
QmlJS: Add wizard for creating new js files.
...
Task-number: QTCREATORBUG-3070
2010-11-15 14:03:16 +01:00
con
ff2dc588b7
Don't show GLSL or QML tools menus while they don't offer anything
2010-11-12 13:48:03 +01:00
Christian Kamm
f366754462
Move shared code to a new QmlJSTools plugin.
...
Reviewed-by: Thomas Hartmann
2010-11-11 11:49:10 +01:00
Friedemann Kleint
77008bc45f
Exported Header cleanup: QmlJSEditor
...
Move internal classes QmlJSEditorEditable/SemanticHighlighter
out of qmljseditor.h. Move QmlJSEditor from namespace
QmlJSEditor::Internal to QmlJSEditor.
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2010-11-02 11:10:27 +01:00
Friedemann Kleint
6063fb84c2
Fix exported headers in Core and TextEditor.
...
- Unexport Core::Internal::MainWindow and remove its includes.
- Move RssFetcher from Core::Internal to Core.
- Unexport CopyTaskHandler.
- Move TextEditor's completion support and Refactor Overlay
helper classes from TextEditor::Internal to TextEditor as they
are exported.
- Move internal BaseTextBlockSelection into private header.
- Unexport TextEditorOverlay as they are not used.
2010-11-01 16:29:45 +01:00
Thomas Hartmann
3381c12cd5
QuickToolbar: fix keyboard shortcut for OS X
...
Apple + Alt + Space is a reserved key at least on OS X 10.5.
Task-number: QTCREATORBUG-2628
Done-with: Lasse Holmstedt
Reviewed-by: Lasse Holmstedt
2010-10-12 11:19:49 +02:00
Christian Kandeler
dc73e7d1bc
QML file wizard: Move to new category.
...
Task-number: QTCREATORBUG-2510
Reviewed-by: Kai Koehne
2010-09-30 15:45:12 +02:00
Christian Kamm
3f505e9982
QmlJS: Add initial 'Find Usages' support.
2010-09-24 14:11:06 +02:00
Friedemann Kleint
19a1210376
L10n: tr()-fixes.
2010-09-23 15:18:07 +02:00
Erik Verbruggen
0c98d830b8
QML: brought context menu in sync with C++ editor.
2010-09-16 12:57:45 +02:00
Thomas Hartmann
36a955fa1e
QuickToolbar: unifies naming to Quick ToolBar and clarifies tooltips
2010-09-01 11:55:03 +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
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
Robert Loehning
ed0bed351a
Fixed untranslated string
2010-08-17 14:14:18 +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
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
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