aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditorconstants.h
Commit message (Collapse)AuthorAgeFilesLines
* Core: Allow different highlight colors in search result windowChristian Kandeler2020-09-181-0/+2
| | | | | | | | | ... and make use of that in CppTool's "Find Usages" by assigning different colors to read and write accesses. Fixes: QTCREATORBUG-12734 Change-Id: I067db2c8d693bb2c5be44249931ee4f0269f7e52 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* TextEditor: Introduce shortcut for forcing a function hint proposalChristian Kandeler2020-08-111-0/+1
| | | | | | | | | | ... and support it in the ClangCodeModel. This allows users to get function signature(s) displayed regardless of where exactly the cursor is on the function call. Fixes: QTCREATORBUG-19394 Change-Id: I033e8774db93680bfc3ee52610b817e0ef8ccc76 Reviewed-by: David Schulz <david.schulz@qt.io>
* Git: Port colorful log to text colorsAndre Hartmann2020-07-061-0/+5
| | | | | | | | Fixes: QTCREATORBUG-24198 Change-Id: Icde06da5ac848fb0f7faf02a8e55fb26136f318c Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* TextEditor: move rename symbol action to text editorDavid Schulz2020-05-121-0/+2
| | | | | | Task-number: QTCREATORBUG-21578 Change-Id: I9a873dcd38bacb2287c45973b6be0091c3eb9480 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Editor: add formatter supportDavid Schulz2020-01-221-0/+1
| | | | | Change-Id: I65590273b2541e08a39970cd9bb4739a5634b2f7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: Dissolve TextEditorOptionsPage intermediate hierarchy levelhjk2020-01-161-0/+1
| | | | | | | | It's effectively setting only three properties nowadays, not enough to justify a case of reuse-by-inheritance anymore. Change-Id: I947fbc51e76c8d908da662dd58dce91614c28e08 Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: add support for proposed semantic highlightDavid Schulz2019-06-211-1/+3
| | | | | | | | | implements the current proposal for the semantic highlighting via the language server protocol. https://github.com/microsoft/vscode-languageserver-node/pull/367 Change-Id: I857d606fcf5c782e0ea8e18e5d098edd26286aed Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* TextEditor: add option to remember highlighter definitionDavid Schulz2019-02-281-0/+2
| | | | | | | | | Add a button to the multiple definition found info that saves the definition of the current highlighter for the open document. Change-Id: I04b1b7571a864d781747547a1d315ec25bb6b5a1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* TextEditor: Show info when multiple highlight definitions are availableDavid Schulz2019-02-111-1/+2
| | | | | | | | | Show an editor info bar when multiple highlight definitions can be found for a single file or mime type. Add a combo box to the info that allows the user to choose between them. Change-Id: I07278d065e19d4e04fba24a6d789c8b6c9f55d60 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* move find usages to TextEditorDavid Schulz2018-11-281-0/+1
| | | | | | | | | In preperation for supporting find usages by the language client plugin Task-number: QTCREATORBUG-21577 Change-Id: I7a6da3a9d53478c1d486e0ddc5829c9ea09a2a20 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Highlighting: Add highlighting style for punctuationIvan Donchevskii2018-09-131-0/+1
| | | | | | | | | Currently only operators have their own style but not punctuation tokens. Make possible to highlight both. Task-number: QTCREATORBUG-20666 Change-Id: I9533e0f1bef65b86c4e4f5c9756571103584124b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Add semantic C++ operator-token stylingHugo Holgersson2018-04-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | We used to style overloaded operators in the same way as C++'s built-in operators. There was no way to tell if a + token would call a operator+() function or not. Now, if an operator is overloaded (redefined), we give it the "Overloaded Operator"-mixin so users can style it differently. Note: Calls to overloaded 'new' and 'delete' are not highlighted by "Overloaded Operator". This is because clang today always maps these to CXCursor_CXXNewExpr and CXCursor_CXXDeleteExpr with cursor.spelling == "" (empty string). So there is no (?) quick way for us to tell if a new/delete-token was overloaded or not. After follow-ups, follow symbol will work for operator overload usages in current translation unit. Commit is appended by Ivan Donchevskii. Task-number: QTCREATORBUG-19659 Change-Id: I157855d482a61ad2059642a1ee982089fcb7d312 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clean up options page category display name and icon set upEike Ziller2018-04-231-2/+0
| | | | | | | | | | | | | | In cases where plugins extend an existing settings category of a plugin that they depend on anyhow, they do not need to specify the translated display name and icon for that category. Some options pages were already not setting the icon, but still the translated name, which makes even less sense. Clean up this mess, only setting display name and icon if that is necessary. Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Add Context Help to text editor context menuEike Ziller2018-03-291-0/+5
| | | | | | | | | | | For this make the default context menu for the text editor extensible and add the context help item from the help plugin, which now has an optional dependency on the text editor to ensure correct loading order if both are present. Task-number: QTCREATORBUG-55 Change-Id: I378a491ba3700e65fc262bdb10c8ead5ad62cb33 Reviewed-by: David Schulz <david.schulz@qt.io>
* Add overlooked Goto Document Start/End shortcut settingsEike Ziller2018-02-131-0/+2
| | | | | | Change-Id: I2f60e2607660cea98aebb1057226010ea4837156 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* TextEditor: Implement highlighting of function definitionsHugo Holgersson2017-11-281-0/+1
| | | | | | | | | | | | | | | | | | This allows users to style function names at their definitions. Once set, the XML-style token "FunctionDefinition" will highlight all function definitions: the style option is a mixin to Function and Virtual Function. TEST=Default themes and locally hacked themes that lack Function, FunctionDefinition, Declaration-styling look as they did before this patch. Requires Clang. Task-number: QTCREATORBUG-16625 Change-Id: I49d8e401211bdf28ff74699feac16fe98f6d64ce Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* TextEditor: Add sortSelectedLines actionSerhii Moroz2017-09-111-0/+1
| | | | | Change-Id: Ifdc82766bac3cfe2e9c287b4ef04902a943c8f72 Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Add a ShowContextMenu actionJesus Fernandez2017-06-091-0/+1
| | | | | | | Allow users without physical MenuKey to open the context menu Change-Id: Id886a5614e26d614cba6ceb3b08a9df6148e9655 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* TextEditor: Add delete(Start/End)OfLine actionsDavid Schulz2017-04-261-0/+2
| | | | | | | Task-number: QTCREATORBUG-18095 Change-Id: I75e6141687ba5e96ef59384b302357700f79dd55 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: Duplicate selection (Duplicate selection and comment)Michal Steller2016-10-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | New TextEditor action for duplicating current selection. Extended version of this feature creates commented duplications. Possible use cases: 1. No selection, cursor anywhere in text - Duplicity line 2. Simple selection - Duplicity selection 3. Block selection, without columns - Duplicity lines 4. Block selection, with columns - Duplicity selection Cursor position and selection stays unchanged. Works well with Undo action. First use case with no selection looks similar as copyLineDown, but difference is that copyLineDown moves current cursor position and select created line. This feature don't change cursor position. Because of this difference it is not possible to integrate this additions with copyLineDown. Quick intro: https://youtu.be/Fv6WdCnCLpo Change-Id: I7c36fca6e17de030cbd22cfa103c2ed672deabbc Reviewed-by: David Schulz <david.schulz@qt.io>
* Clang: Add output argument highlightingMarco Bubke2016-10-121-0/+1
| | | | | | | This adds a mix-in for writable functions arguments. Change-Id: I758f7fef77d992ea25395db550571ccb081fd5fd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Editor: Add action to select word under cursorDavid Schulz2016-08-021-0/+1
| | | | | | Task-number: QTCREATORBUG-641 Change-Id: I83e2705c7250646b13cd3ec52779a1496e6a472c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Editor: Animate automatic completed text.David Schulz2016-05-311-0/+1
| | | | | | | | | This gives a clear hint that something has changed. And gets the attention of the author in the case he didn't expect some kind of automatic brace or quote completion. Change-Id: I33e383db9a1e797ecb285a407e46671f41be7051 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Wholesale conversion to #pragma oncehjk2016-03-301-4/+1
| | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* TextEditor: Add global variable text stylesMarco Bubke2016-03-071-0/+1
| | | | | Change-Id: I088dc484b6a4ace79609ca7fcc4145344ccea5a9 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* TextEditor: Add declaration format descriptionMarco Bubke2016-03-071-0/+2
| | | | | Change-Id: Ibea12f324308a07d7e549d60a1b1c5767659efb3 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* TextEditor: Add mixins for font settingsMarco Bubke2016-02-231-1/+1
| | | | | | | | You can only set one text style but in many cases like Function and Declaration it would be nice if they could be merged. Change-Id: Icda892057b79eef1bea2fa8b2c5f0f7cbc5f518a Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* TextEditor/Clang: Add font settings for clang diagnosticsMarco Bubke2015-09-101-0/+5
| | | | | Change-Id: Iea2b4fabf0f4620b12f88b108eb59c160945c8d8 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Editor: Highlight Search results in scrollbar.David Schulz2015-06-161-0/+3
| | | | | | Change-Id: I999ddeeedbd6bdd7abebf75405d7e9281a1893df Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Editor: Make parenthese mismatch color configurable.David Schulz2015-05-181-0/+1
| | | | | | | Task-number: QTCREATORBUG-14357 Change-Id: I92a0d50fb8f3448195f3d38f7544a31eb695733b Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* VCS: Highlight commit lines in log editorOrgad Shaneh2015-03-251-0/+2
| | | | | | | Task-number: QTCREATORBUG-13997 Change-Id: I7d9a85cd6022a20a487010a35164ff100b72218d Reviewed-by: Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Add syntax highlight for primitive data typesAnton Kalmykov2014-06-241-0/+1
| | | | | | | | Syntax highlight rules for keywords are changed to highlight control keywords and primitive data types separately. Change-Id: Ifb25be7a97b92589030aa190641320c233dc7f2d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* Editor: Add actions for view page/line up/down.David Schulz2014-06-021-0/+4
| | | | | | Task-number: QTCREATORBUG-4994 Change-Id: Ia6ce1a01cd78dd1987404d77f6b0c0da41b4929e Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* ProjectManager: Use Core::Id for progress typeshjk2013-09-041-2/+0
| | | | | Change-Id: I72993fda50ad70ad2d7c2f449923ac6e34b9e737 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Take diff colors from color schemejkobus2013-06-121-0/+7
| | | | | | | Change-Id: I706612a8f89917cb57b7d1e9ecebd86b3f4bcc8d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com>
* Add keyboard shortcut for "New Scratch Buffer"Lorenz Haas2013-04-181-0/+1
| | | | | | Task-number: QTCREATORBUG-9039 Change-Id: Iff7d821f863f2691786acaea44137d291d3dbf67 Reviewed-by: David Schulz <david.schulz@digia.com>
* Editor: Refactor Open Link in Next Split.David Schulz2013-02-141-0/+2
| | | | | | | | | | | Cleanup code and added shortcuts and menu entries for - open header/source in next split - follow symbol under cursor in next split - open declaration/definition in next split Change-Id: I2c4347749d26669d88b7c2968f30f60710f442b1 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Editor: rename "Static" in Font & Colors settingsDavid Schulz2012-08-291-1/+1
| | | | | | | | to more clearer "Enumeration" Change-Id: I785edb6d31a4cd6a0875549f80bcf791ad61587a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Added tooltips on completions proposalsSergey Shambir2012-07-171-0/+5
| | | | | | Change-Id: Ic22b99e25159edfa4977e13c98f334ce75809af7 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* CppHighlighter: highlight all functions/methods.Francois Ferrand2012-06-051-0/+1
| | | | | | | | | | | | | | - Highlight all function/methods (not just virtual methods). - Highlight as a function even if number of arguments does not match. In that case, add a diagnostic message to indicate there are too many/too few arguments. - Fix highlighting of parameters in function declarations. These used to be handled indiferently, and they could be mistaken for type or field references. - Properly highlight template method calls. Change-Id: I6e61c9ee47763db95c62314f9cc1c4d398df38b3 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* texteditor: use an enum instead of QString as color idshjk2012-05-031-49/+57
| | | | | Change-Id: I658412c18d5ccfe978ec444451c6417ffb18d71c Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Revert "CppHighlighter: highlight all functions/methods."Erik Verbruggen2012-03-291-1/+0
| | | | | | | | | This reverts commit e3e67467cfea5934f16a95385761455b0c495a0d Reason is that it shows errors for calls to function-like macros. For example, any use of Q_DISABLE_COPY results in invalid errors. Change-Id: I1fd1473ac5a30da5b9aebf6a3f0f11055bdbe8ad Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
* CppHighlighter: highlight all functions/methods.Francois Ferrand2012-03-291-0/+1
| | | | | | | | | | | | | | - Highlight all function/methods (not just virtual methods). - Highlight as a function even if number of arguments does not match. In that case, add a diagnostic message to indicate there are too many/too few arguments. - Fix highlighting of parameters in function declarations. These used to be handled indiferently, and they could be mistaken for type or field references. - Properly highlight template method calls. Change-Id: I6ab463996dda47554839f482da47f561f76663a7 Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>