aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditor.qbs
Commit message (Collapse)AuthorAgeFilesLines
* Core: move CodecSelector dialog to CoreDavid Schulz2020-04-151-2/+0
| | | | | | Task-number: QTCREATORBUG-23835 Change-Id: I824ae9650c244fffc064ade718fc788fc2908ada Reviewed-by: hjk <hjk@qt.io>
* TextEditor: Use simple text indentation as defaultEike Ziller2020-03-041-2/+0
| | | | | | | | | | | | | Simple indentation based on the previous line was already available in the NormalIndenter class. Merge that up the hierarchy chain into TextIndenter which is the base for other text-based indenters, and make that the default indenter for text editor factories. Text editor factories that don't have a special indenter get at least basic indentation support for free that way. Change-Id: Ib977a990f10a99bead82bc8a8348c02a106665f1 Reviewed-by: David Schulz <david.schulz@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-2/+0
| | | | | | | | 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>
* TextEditor: replace generic highlighter with ksyntaxhighlightingDavid Schulz2019-01-281-47/+14
| | | | | | Fixes: QTCREATORBUG-21029 Change-Id: I9894c4384e0e47da6bf030b7b8e07c3ad4737ff3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Move Help item from text editor to coreEike Ziller2019-01-251-2/+0
| | | | | | | The functionality is not text editor specific. Change-Id: Iee531572f14673e75129f4bfbb64a1437899d31e Reviewed-by: David Schulz <david.schulz@qt.io>
* ClangFormat: Refactor indenter to allow ClangFormat unit-testsIvan Donchevskii2019-01-221-1/+2
| | | | | | | | | | We do not build texteditor files in unit-tests so some tricks were required to make ClangFormatIndenter available. First simple unit-test proofs it builds and runs. Change-Id: I81d5ea099bd27fd1c1ed8b5b7877299dcc62a67f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Beautifier: Move formatting tools to TextEditorIvan Donchevskii2018-08-301-0/+4
| | | | | | | | | | | | Formatting is moved from Beautifier plugin to formattexteditor.h/.cpp. Diff and Differ classes are extracted from DiffEditor to Utils to prevent extra TextEditor dependencies. This change will make possible to use formatCurrentFile and similar functions not only from Beautifier code. Change-Id: Ic5ca668afe88f4e9376d49e6bd3594807172b0dd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: add document content completerDavid Schulz2018-02-141-0/+2
| | | | | | | | | | Add completion based on words of the document. This provides basic assistance for programming languages without a code model. Task-number: QTCREATORBUG-13869 Change-Id: I3a9c59c741dfd6895442fc0524cfd1bd3b2b0111 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: Dissolve QuickFixAssistProcessorhjk2017-12-151-2/+0
| | | | | | | | | | | ... into QuickFixAssistProcessor and QmlJSQuickFixAssistProcessor, by essentially duplicating the class, but moving the actual work to a new a GenericProposal::createProposal(...QuickFixOperations...) Less indirection, and less code in total. Change-Id: I2f8cba970bf587c9cbf04321269a60ed51bfae2a Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: Remove QuickFixAssistProviderhjk2017-12-151-2/+0
| | | | | | | | It did not contain any functionality beyond the base IAssistProvider anymore. Change-Id: I0198b3d629f81be8c994ffed3904b5f12ee7f9b9 Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: move convenience from texteditor to utilsIvan Donchevskii2017-09-221-2/+0
| | | | | | | Allows to use this header without texteditor dependency. Change-Id: I706f42799c3ea42473a716fa9ef9f3cfbef6fdd4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* TextEditor: Simplify TextMarkRegistryDavid Schulz2017-05-301-1/+0
| | | | | | | | The registry is an implementation detail and doesn't need to be exported so move it to the textmark.cpp file. Change-Id: Ic103b122cb20063fa4bc220bdc90cecff27054aa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove the need to create ISnippetProvider subclassesEike Ziller2017-04-251-4/+2
| | | | | Change-Id: I1810aaa945136d9726a66dad41377429a6adc8e1 Reviewed-by: David Schulz <david.schulz@qt.io>
* qbs build: More steps toward creating a "development installation".Christian Kandeler2016-06-131-260/+264
| | | | | | | | | | | | | | | Namely: - Install header files. - Install imports and modules. - Create modules from products and install them. This is most of what we need. The main thing still left to do is dealing with paths in Export items. These have to be translated somehow. (Currently we only copy the Depends items out of the Export items and ignore everything else.) Change-Id: I12d49fa31d1c1e05bc77a0e0ce3ec9c78c27192a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* qbs build: Introduce new module "qtc".Christian Kandeler2016-06-081-1/+1
| | | | | | | | | The qtc module gathers properties that used to live in the top-level project file. This is the first step towards making it possible to build plugins against an installed Qt Creator ("out of source build"). Change-Id: Ia1514cc9c888e80be01b308e908de48980fcbdb8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Move completion settings page to TextEditor plugin.David Schulz2016-05-301-0/+5
| | | | | | Change-Id: I12b7828d23d599e5903237d0cc2a3c0440e1b07d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* qbs build: remove unnecessary script dependencyTim Jenssen2016-05-131-1/+1
| | | | | Change-Id: I0e5764ffc9a6146932c43d96a31138451260c161 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-05-031-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/debuggerruncontrol.cpp src/plugins/projectexplorer/projectwizardpage.cpp src/plugins/projectexplorer/xcodebuildparser.h src/plugins/qmldesigner/qmldesignerplugin.cpp src/tools/clangbackend/ipcsource/translationunits.cpp Change-Id: Ibf0857cf8dbf95fc9ac13d5c2112b3f4a2ca7de6
| * Qbs: Enable exceptions where neededOrgad Shaneh2016-05-021-0/+1
| | | | | | | | | | | | | | | | | | Align with qmake project Change-Id: Ic68619a0b5e3bf6052c8b52165337063a24e2b5d Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Clang: Add Declaration highlightingMarco Bubke2016-03-071-0/+1
|/ | | | | | | | | We are adding declaration detection for function to the highligher on user request. Other declaration will follow in separate patches. Task-number: QTCREATORBUG-15564 Change-Id: I54e97c26425f8d6e9854547d50a9ac8fa076b4e8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* TextEditor: Fix qbs buildChristian Kandeler2016-02-021-3/+3
| | | | | Change-Id: Iaf2145047fd7901472f6b5af205572cf0db2ccbc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Clang: Remove TextEditorWidget from AssistProposalItemInterfaceMarco Bubke2016-02-021-0/+3
| | | | | | Change-Id: I0ac924f88c1347d1b0027c47118b7ed21daf4869 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* TextEditor: Introduce AssistProposalItemInterfaceMarco Bubke2016-02-011-0/+1
| | | | | | | | | | For unit test we need to break every dependency to the TextEditor Widget etc.. With an abstract interface we can implement it in clang without relying on unwanted dependencies. It makes it also easier to compute the values deferred. Change-Id: I1b313a1625f4e80bd324ab4bf1a7c4f6b690abe9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Git: Support Git GrepOrgad Shaneh2016-01-251-1/+0
| | | | | | Task-number: QTCREATORBUG-3556 Change-Id: Ieca1bdaa39281a2e085340f045e5a48b875f7967 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* TextEditor: Fix qbs build.Christian Kandeler2016-01-181-0/+2
| | | | | Change-Id: Ib4f62c72bd469eeec084e79a3390e92aeb351b22 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* TextEditor: Move BlockRange out of texteditor.hMarco Bubke2016-01-121-0/+1
| | | | | Change-Id: Idc00622e67c4498b35bab73108551ae4cc0c2359 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* qbs build: Remove unneeded import statements.Christian Kandeler2014-11-101-2/+0
| | | | | | | The respective items are available without it. Change-Id: Idc840cf08e7bec84f561c096afe8de25b1fb8468 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* TextEditor: Remove HighLighterFactoryhjk2014-10-021-1/+0
| | | | | | | Unused. Change-Id: Idd9805756c51e025e99842fa6fc8707b10927c4d Reviewed-by: David Schulz <david.schulz@digia.com>
* JsonWizard: Replace TextFileWizard with JsonWizardTobias Hunger2014-09-301-2/+0
| | | | | Change-Id: Iae2833554529c2f333d9781eb0f7fa28f3bfde79 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* TextEditor: More BaseText* -> Text* renamingshjk2014-09-261-8/+8
| | | | | | | *Document* and *Layout* classes, all basetext* files Change-Id: I1c6e376733a434fcb5c7f19c6210dfa031eeafde Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* TextEditor: Merge some "assist" related classeshjk2014-09-091-12/+6
| | | | | | | | | | | | Simplifies the code base by removing one level of unused and unneeded abstraction. - Merge {I,Default}AssistInterface to AssistInterface - Merge {IAssist,Basic}ProposalItem to AssistProposalItem - Merge {IGenericProposal,BasicProposalItemList}Model to GenericProposalModel Change-Id: I54ee7b095427383d67a00fc1d87c3808c21d812d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* TextEditor: Merge PlainTextEditor into Basehjk2014-07-301-2/+0
| | | | | | | | Same patter. Plain is fully merged now, so remove the files, too. Change-Id: Id8c0ba5689ad9980a0db3580cb9833344fd911f3 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* TextEditor: Remove itexteditor.{h,cpp}hjk2014-07-251-2/+0
| | | | | | | Move the remaining contents to more appropriate places. Change-Id: I55eed5c572bd33dafe2187523d9aa381c211fdd6 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Merge ITextMark and BaseTextMarkhjk2014-07-231-5/+3
| | | | | | | | | | Turns out we don't even need two-phase initialization, by transparently postponing registration until we get a non-empty file name, either at constuction, or at file name change times. Change-Id: I3e87e47c820066e6707e946fc474ab9c1993e61f Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* TextEditor: Simplify HighlighterFactory hierarchyhjk2014-06-261-1/+1
| | | | | | Change-Id: I555639a9137dcb8ccb471e1615823870c8158b3c Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* use new base import style in qbs filesJoerg Bornemann2014-03-111-1/+1
| | | | | | Change-Id: Iecf32122df41f304ec6df538bb0dd8a263238a86 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Editor: fix upper and lower case on blockselection.David Schulz2014-02-271-0/+8
| | | | | | | Task-number: QTCREATORBUG-11546 Change-Id: I2e8b5b05ff0044e5ab159119f24dff873be949d7 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Qbs/qmake: Fix dependencies of pluginsTobias Hunger2014-02-111-0/+3
| | | | | | | | | ... based on output from dependencyinfo.py script Change-Id: I9532f6d259f15c16b62fae0ca18f8a8cad95bd11 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Core: Merge Find and Locator into Core pluginhjk2014-01-141-7/+0
| | | | | | | Change-Id: I7053310272235d854c9f409670ff52a10a7add8b Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* TextEditor: Fix qbs build.Christian Kandeler2014-01-131-0/+2
| | | | | Change-Id: I0423cf1b710c5522d494e95b2076f52c06e68ab0 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* qbs project files: Make use of new qbsSearchPaths property.Christian Kandeler2013-10-091-1/+1
| | | | | Change-Id: I396d970fafea1fd0b4c4d73883796662a1d0064b Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix compilation of generichighlighter test on Windowsjkobus2013-09-181-2/+4
| | | | | | Change-Id: I25c2f68528ede12fa900ea86973c6df39667c421 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Remove superfluous include paths from project files.Christian Kandeler2013-09-021-7/+0
| | | | | | | | | | | | | | | | | | | | A lot of our build system files specify unneeded include paths. These roughly fall into the following categories: a) Paths that are already set in more general files such as qtcreator.pri. b) Paths that serve no purpose at all, possibly left over from earlier versions of the project. c) Paths that act as workarounds for wrong include statements of the form '#include "xyz.h"', where xyz.h is not in the same directory as the including file. This patch removes such path specifications and fixes the offending include statements from case c). Tested on Linux, Windows and OSX with qmake and qbs. Change-Id: I039a8449f8a65df0d616b4c08081145c18ae4b15 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix generic highlighter autotestjkobus2013-08-301-0/+2
| | | | | | Change-Id: I35994a8c29374edfeb8a230af10c2a3277232f22 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Fix qbs build.Christian Kandeler2013-08-291-1/+1
| | | | | Change-Id: I79d6be0211ae1da543140db397a9ebe4e6cab6b5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Implement syntax highlighting in diff editorjkobus2013-08-291-0/+1
| | | | | | | | | | | | All Qt Creator's main highlighters are used in the first place, for other mimetypes generic highlighter is used as a fallback. Task-number: QTCREATORBUG-9580 Change-Id: I863b9085520e5bdda142ce88f2074afeacee0531 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* Streamline mimetypes.xml filesOrgad Shaneh2013-06-071-1/+0
| | | | | Change-Id: I4f2a28d4732ea496f574e5f51fb1e1633ebca99d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Consistently give qbs groups a name.Eike Ziller2013-06-061-0/+3
| | | | | | | These nicely show up in the project tree in Qt Creator then. Change-Id: I9782f5953d61940e6c2a0f61f07bb15aaeba49d9 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* TextEditor: Move HighlightDefinition constants to where they are usedhjk2013-05-311-1/+0
| | | | | | Change-Id: Ibdd3147cc2a64407802fa237b7943d2e96c90030 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@digia.com>