summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some typos and added some missing ellipisesJure Repinc2011-10-051-1/+1
| | | | | | | | | | During translation into Slovenian I noticed some typos in original string. For example some missing ellipsis characters and some incorrectly spelled MeeGo names (as Meego) Change-Id: I48eaa95303f1e82ab9893f713056382e8daaef41 Merge-request: 2200 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Code assist: Fix memory leak in completionLeandro Melo2011-09-121-0/+1
| | | | | | | | | | | | One fix is in the runner, which is part of the completion engine itself. The other is specific for C++. Task-number: QTCREATORBUG-5947 Change-Id: Ib8fff1eb5adad1ffb2a11da66c50b545e1457df8 Reviewed-on: http://codereview.qt.nokia.com/4355 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com> (cherry picked from commit e15443e9523df0e40414b1baf7d8182f641f7f2c)
* C++: Fix duplicate items in C++ completion for Qt methodsLeandro Melo2011-09-121-28/+26
| | | | | | | | | | | | | | | In the old code completion engine items were created on the stack and passed around by value. With the refactoring of the code assist API they became heap objects manipulated through pointers. This patch fixes one reminiscence not caught during the refactoring in which the same actual pointer was being used more than once to be appended on the list. Change-Id: I2009fb0b6aa18df57aa5ca9bde0591536ca2cd74 Reviewed-on: http://codereview.qt-project.org/4444 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com> (cherry picked from commit a1fa169219423641e65f81e3fbc27f0f9fb84dd5)
* Indenters: Fix dangling pointer when project settings are deleted.Christian Kamm2011-07-121-0/+2
| | | | | | | Task-number: QTCREATORBUG-5390 Change-Id: I68517955a86fbb2ded53f6235a7fe27793e2b2c8 Reviewed-on: http://codereview.qt.nokia.com/1481 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* C++ indenter: Make continuations after ( consistent.Christian Kamm2011-07-061-4/+1
| | | | | | Change-Id: Iae780127065e3fce274db10e173f5c0bde15bd92 Reviewed-on: http://codereview.qt.nokia.com/1229 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* Add missing license headers.Christian Kamm2011-07-0610-13/+300
| | | | | | Change-Id: I2dc5d18bfffc8389ad0b162b7dc3b5cc2406027f Reviewed-on: http://codereview.qt.nokia.com/1222 Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Replace qt-info@nokia.com with info@qt.nokia.comhjk2011-07-061-2/+2
| | | | | | | Change-Id: I61e7cf189a1c4ea04e2a88a80a4f15e43cd3c018 Reviewed-on: http://codereview.qt.nokia.com/1187 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* C++ indenter: Fix function declaration continuation indent.Christian Kamm2011-07-062-9/+15
| | | | | | Change-Id: I0ebe1f0f531cb4830f80b80c6bb52caeaee01353 Reviewed-on: http://codereview.qt.nokia.com/1167 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* Small refactor, preparation for built-in settingsJarek Kobus2011-06-223-28/+34
| | | | | | | Change-Id: I91de7a01aba37f41398df7b06dbe5af868094379 Reviewed-on: http://codereview.qt.nokia.com/615 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Avoid a lot of updates when CppCodeStyleSettingsPage is createdcon2011-06-223-28/+31
| | | | | | | | | | | This helps to reduce the lag when typing in the preference's filter edit. Task-number: QTCREATORBUG-5065 Change-Id: I26634a47b21df1402a53037864bb0c334eba8078 Reviewed-on: http://codereview.qt.nokia.com/572 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* UI text: check capitalization and tooltipsLeena Miettinen2011-06-221-1/+1
| | | | | | | Change-Id: I3686ac83e5fdc009b03e84ab3c7b24a052d119c4 Reviewed-on: http://codereview.qt.nokia.com/569 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* tr()-Fixes for 2.3: Small spelling/notr-fixes.Friedemann Kleint2011-06-151-1/+1
| | | | | | | Change-Id: I66b8b0e20b225429b4399dfca154a2806260ac61 Reviewed-on: http://codereview.qt.nokia.com/483 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Add restore fallback functionality, make better tr()Jarek Kobus2011-06-083-7/+4
| | | | | | | | Task-number: QTCREATORBUG-5025 Change-Id: Ia3f6fa2380dd1a93f120873f584662a267ca4d50 Reviewed-on: http://codereview.qt.nokia.com/360 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
* Editors: Make snippets and code style honor font settingsLeandro Melo2011-06-012-15/+19
| | | | | | | | Task-number: QTCREATORBUG-5007 Change-Id: Ied78ef17ea7a25d22c37d36fd4eb7257c6c9f4c0 Reviewed-on: http://codereview.qt.nokia.com/293 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
* C++ indenter: Fix multiple initializers.Christian Kamm2011-06-011-0/+2
| | | | | | | | Task-number: QTCREATORBUG-4993 Change-Id: I0f7d541eb7b26c37b8167e30e2949b6b939fe4b8 Reviewed-on: http://codereview.qt.nokia.com/297 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ editor: Normalize line endings for find usagesLeandro Melo2011-05-312-4/+4
| | | | | | | | | | | Find usages and related rely on functions that assume \n as line ending. This is true for the preprocessed files, but not for the original sources. Change-Id: I61b7e05c0116504d11c7df4b1aa10d519b705336 Reviewed-on: http://codereview.qt.nokia.com/260 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
* C++ indenter: Fix indent in body of function with default argument.Christian Kamm2011-05-301-0/+2
| | | | | | Change-Id: I9d4f5b3ae7b8a59f8350cf756979a3a430398112 Reviewed-on: http://codereview.qt.nokia.com/206 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Fixed missing border for tab widget in Projects modeThorbjørn Lindeijer2011-05-301-0/+1
| | | | | | | | | | | | | | | Usually for tab widgets we disabled the border of the first tab, since the tabs are generally aligned to the single pixel black splitters that we used in Creator (like in the case of dock widgets or application output). Since this particular tab widget is not aligned to such a splitter, it should have its own border which can be achieved by disabling the custom style on it. Change-Id: I8c7af60847afb5cd73ecd8c39a834ed63298ec76 Reviewed-on: http://codereview.qt.nokia.com/122 Reviewed-by: Jens Bache-Wiig
* QmlJS: Read the 'revision' property generated by qmldump.Christian Kamm2011-05-301-1/+3
| | | | | | Change-Id: Ia31b1845b1e1e5aabc347dc115e580c72e36f4e3 Reviewed-on: http://codereview.qt.nokia.com/200 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ indenter: Make CppCodeStyleSettings a class.Christian Kamm2011-05-272-1/+6
| | | | | | | | Also register it with the meta type system. Change-Id: Id720e43d19765283765e7dbbd46820ba9cfb1be7 Reviewed-on: http://codereview.qt.nokia.com/172 Reviewed-by: Bill King <bill.king@nokia.com>
* C++ editor: Share the model data acrross completion itemsLeandro Melo2011-05-261-22/+9
| | | | | | | | | More than one proposal item could be accessed during an iteration. So they should not take ownershipt of the data, but simply share it. Change-Id: I7b81b8772cd8ad4d6c2332ba6b5bc320055cd5a2 Reviewed-on: http://codereview.qt.nokia.com/136 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* C++ editor: Check _ to accept idle editor completionLeandro Melo2011-05-261-1/+1
| | | | | | | | In addition to letters and numbers. Change-Id: I89ec68c50a62516cc0b91d267fd96bb908cbf8bc Reviewed-on: http://codereview.qt.nokia.com/131 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ indenter: Fix reindenting 'Q_SIGNALS:'.Christian Kamm2011-05-251-1/+2
| | | | | | | Change-Id: Ieb2a7673e99dec06d925263f48b39c0c3a4d2fa1 Reviewed-on: http://codereview.qt.nokia.com/108 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ style settings: Compile fix for namespaced Qt.Christian Kamm2011-05-243-11/+9
| | | | | | | Change-Id: I89db5239576385823315443474669f5fd9ef69b4 Reviewed-on: http://codereview.qt.nokia.com/87 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk
* Make C++ code style configurable.Christian Kamm2011-05-2421-155/+2103
| | | | | | | | | | | | | | 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>
* Completion: Don't propose when there's a "good" candidateLeandro Melo2011-05-201-22/+0
| | | | | | | | This also generalizes some code previously specific to C++. Change-Id: I5774d04a45f28a4e276a0ef282ce0aa5a2f2e552 Reviewed-on: http://codereview.qt.nokia.com/48 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ editor: Fix potential crash in completionLeandro Melo2011-05-192-25/+44
| | | | | | | | | | There was still a problem in the previous change (that's why it was reverted) which should be fixed now. Task-number: QTCREATORBUG-4940 Change-Id: I8a0d993b9f313fc98494cf93fed1f87939a358b1 Reviewed-on: http://codereview.qt.nokia.com/27 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* Revert "C++ editor: Fix potential crash in completion"Leandro Melo2011-05-191-17/+13
| | | | | | | | | | This reverts commit a395022a84149884771eefee9577ba2441ba45a4. There are some undesired side effects... Change-Id: I001ed375911a4ffda5bd25c804ce06f99be40e3c Reviewed-on: http://codereview.qt.nokia.com/25 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* C++ editor: Fix potential crash in completionLeandro Melo2011-05-191-13/+17
| | | | | | | Task-number: QTCREATORBUG-4940 Change-Id: If55c2ddc7949cbd31029eef8317b4d0a015f272e Reviewed-on: http://codereview.qt.nokia.com/17 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++ indenter: Treat extern "C" like namespace.Christian Kamm2011-05-192-0/+26
| | | | | | | Change-Id: Ib0553d35fbd83aada2b8809aa008b1f75ca77c32 Done-with: Erik Verbruggen Reviewed-on: http://codereview.qt.nokia.com/14 Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
* C++ indenter: Fix extra specifier in return type of func decl.Christian Kamm2011-05-191-0/+2
| | | | | | | | | Like struct Foo bar() { } Change-Id: I946937c23d1660909757952a5a3bd400c4781826 Reviewed-on: http://codereview.qt.nokia.com/13 Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
* c++ editor: Fix automatic completion for includesLeandro Melo2011-05-181-1/+15
| | | | Reviewed-by: Roberto Raggi
* C++ editor: Remove scanning/caching of includesLeandro Melo2011-05-185-171/+24
| | | | | | | With the completion now in a separate thread this should no longer be necessary. Reviewed-by: Roberto Raggi
* New code assist APILeandro Melo2011-05-185-1553/+1285
| | | | | | | | | | | 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).
* move the "cannot undo" warning to the search result paneOswald Buddenhagen2011-05-121-5/+2
| | | | | | this is where it belongs, rather than into some arbitrary editor. as a nice side effect, now not only the "rename symbol", but also the global search&replace has such a warning.
* rewrite editor info bar handlingOswald Buddenhagen2011-05-121-1/+4
| | | | | | | | | | | | the info about the bars is now stored in the IFile, not in the EditorView. this is somewhat more expensive for the bars which identically apply to all editors of one type, but fixes consistency issues between views. additionally, it is now possible to set several simultaneous info bars per file, which ensures that no information is lost. Co-authored-by: mae
* Krazy fixes (spelling, single char strings, char constants).Friedemann Kleint2011-05-101-3/+3
|
* Fix/add copyright headersTobias Hunger2011-05-0640-40/+40
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Merged "Methods" and QML "Functions" locator filtersThorbjørn Lindeijer2011-05-061-1/+1
| | | | | | | | | They're still separate filters, but by default they share the same prefix, which will now make sure that only one entry shows up in the list of filters. Done-with: Christian Kamm Task-number: QTCREATORBUG-4796
* Fix more krazy warnings.Friedemann Kleint2011-04-191-1/+1
|
* add/unify i/o error handlingOswald Buddenhagen2011-04-182-21/+17
| | | | | | lots of use of Utils::FileSaver and Utils::FileReader Task-number: QTCREATORBUG-1619
* Merge branch '2.2'Oswald Buddenhagen2011-04-1440-560/+520
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/pythongdbengine.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.h src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.h src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp src/plugins/qt4projectmanager/qt4target.cpp src/plugins/qt4projectmanager/qt4target.h src/plugins/qt4projectmanager/qtoptionspage.h src/plugins/qt4projectmanager/qtversionmanager.cpp src/plugins/welcome/welcomemode.cpp
| * Update license.hjk2011-04-1340-560/+520
| |
* | Remove unused constants, fix lacking virtual destructorJarek Kobus2011-04-141-1/+0
|/ | | | Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* C++ indenter: Fix for use of << and >> in parentheses.Christian Kamm2011-03-151-1/+2
| | | | Task-number: QTCREATORBUG-4076
* Still changes to our options dialogLeandro Melo2011-02-281-1/+1
| | | | We decided to have text-based buttons by default.
* Revert "Make our options dialog a bit more uniform"Leandro Melo2011-02-281-3/+0
| | | | This reverts commit 561f87fcb9d58aaccbccd424417e71b79798ff6b.
* Make our options dialog a bit more uniformLeandro Melo2011-02-251-0/+3
| | | | In terms of buttons, layouts, aesthetics in general.
* texteditor: merge ITextEditable into ITextEditorhjk2011-02-2211-44/+42
| | | | | | | | rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor rename BaseTextEditor{,Widget} subclasses rename editableInterface->editorInterface rename createEditableInterface->createEditor minor cleanups after renamings
* Text editor: Introduce per project settingsLeandro Melo2011-02-213-4/+10
| | | | | | With some refactorings to make the code look better. Reviewed-by: con