summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/compileoutputwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use common tool tip for "Configure..." kind of buttonsEike Ziller2023-02-161-1/+1
| | | | | | | | | We have a function that centralizes the text for that. Change-Id: I9d9fbed6e111038e7512030e199b8d8d03fbbafa Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Remove unneeded includes of task.h and taskhub.hJarek Kobus2023-02-141-3/+3
| | | | | | | | | And some other includes spotted by the way. Change-Id: Icd5eadf16617506fe48fae52ff0639d247002d75 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* ProjectExplorer: Tr::trhjk2023-01-161-10/+9
| | | | | Change-Id: I8f1b463c5cc7a53627f7a9ad261998b92f13e56a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ProjectExplorer: Move settings structures out of Internal namespaceJarek Kobus2023-01-131-0/+1
| | | | | | | | | | | There is a public exported API that returns these structures, and different plugins use it, so there is not point in keeping them inside Internal namespace. Remove some unused includes. Change-Id: Ia9d3fc83738c38ae37f04ae0f518ec5d972c9d85 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* UI text: Replace "pane" with "view" for "Output panes"Leena Miettinen2022-03-091-1/+1
| | | | | | | | | Some occurrences of [Output] pane were still found in translatable strings. Change-Id: I70c0b6562790b7eb835b2f6a1522fa34fb9c2b51 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Rename 'output pane' to simply 'output'Thomas Hartmann2022-03-011-1/+1
| | | | | | | Change-Id: If45e053a32855bca68dc71cb5da22f981146e45b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Project Explorer: Fix UI textLeena Miettinen2022-02-171-1/+1
| | | | | | Task-number: QTCREATORBUG-27055 Change-Id: I9b0e4f02ea7d1ebb14a9581f21c76b8908589334 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Dis-ambiguate issues pane's "show output" actionChristian Kandeler2022-02-101-1/+4
| | | | | | | | | | Amends 08a86169db. Fixes: QTCREATORBUG-27031 Change-Id: Ie6d214673f6c1c52aab1a035c84a7381f9965588 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Generalize issues -> output pane linkingChristian Kandeler2021-11-251-43/+1
| | | | | | | | This feature was specific to the compile output pane, but we want to have it in other panes too. Change-Id: I110b27af7d0aa23acbc5623d1c0405816250df19 Reviewed-by: hjk <hjk@qt.io>
* Add text search functionality to output window centrallyEike Ziller2021-09-201-14/+0
| | | | | | | | | | | | | All output windows should be searchable with Edit > Find/Replace (Ctrl+F), no reason for every single instance setting that up individually. Add a find placeholder for the build system output in Projects mode, so the search functionality is available there as well. Change-Id: Idad6824bfb21e6ae9ab923191a7e83b43256e68b Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CompileOutputWindow: Fix creation of task positionsAndre Hartmann2021-03-251-1/+1
| | | | | | | | | | | | | | When jumping from the issues pane to the compile output, the selected text was always starting and ending one line earlier than expected. Probably broken by 1c6e4fbd3. Fixes: QTCREATORBUG-25497 Change-Id: Ia5b796f27faa91e45b10b945dbf6261f1dbce036 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Don't save defaults to settingsEike Ziller2020-12-161-6/+11
| | | | | | | | | | Writes less settings and makes it possible to change defaults in the future. Task-number: QTCREATORBUG-24762 Change-Id: I73873b3684827b4fe27cfa5ea2f62a76003f9750 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Don't clash signal names with other methodsJarek Kobus2020-11-181-3/+3
| | | | | | | | | | In case when signal name clashes with other method name - rename accordingly. Remove some repeated signal declarations - they are already declared in superclass. Change-Id: Ie1430b85d6436d26996494fa44c7554fb354b6ce Reviewed-by: hjk <hjk@qt.io>
* Core: De-pure IOutputPane::visibilityChanged()Orgad Shaneh2020-10-091-3/+0
| | | | | | | | Most implementations are empty. Change-Id: I811cacfc2918c8b2803798c4f5d3dabc7d60ccd1 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
* Core::OutputWindow: Prevent UI thread overloadChristian Kandeler2020-05-051-0/+5
| | | | | | | | | | | | | | | | | | ... by splitting up huge amounts of output and feeding it to the formatter in more digestable chunks, with event processing in between. This prevents a UI freeze in the case that a single file emits a large amount of diagnostics and the build tool buffers the output (as ninja and qbs do), which therefore comes in all at once. Apart from keeping the UI responsive, this also speeds up execution of the build step itself, as the remaining output can now be displayed after it has finished. If another build step is started and there is too much output pending to flush all at once, we discard the pending output, in order to prevent the delay to accumulate. Fixes: QTCREATORBUG-23944 Task-number: QTCREATORBUG-22914 Change-Id: I7cfef939a85bbd13730f607b0f83c36473b0e550 Reviewed-by: hjk <hjk@qt.io>
* Merge output formatters and output parsersChristian Kandeler2020-04-231-74/+29
| | | | | | | | | | | | | | | | | | | | | | | Now only one piece of code needs to be written to both linkify output in an output pane and create tasks for it in the issues pane. The calling sites are also simplified. For instance, until now, build steps had to feed their output parsers manually and then push the created tasks up the signal stack in parallel with the actual output, which the build manager relied upon for cross-linking the output pane content. Afterwards, the output would get forwarded to the formatter (and parsed for ANSI escape codes a second time). In contrast, a build step now just forwards the process output, and task parsing as well as output formatting is done centrally further up the stack. Concrete user-visible improvements so far: - File paths in compiler/linker messages are clickable links now. - QtTest applications now create clickable links also when run as part of a build step, not just in the app output pane. Task-number: QTCREATORBUG-22665 Change-Id: Ic9fb95b2d97f2520ab3ec653315e9219466ec08d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Output panes: Do not allocate extra standard formattersChristian Kandeler2020-03-201-6/+3
| | | | | | | | The OutputWindow base class has a functioning default formatter these days. Change-Id: I0a75d0a081cdd2cfdd913388419483df836a53e9 Reviewed-by: hjk <hjk@qt.io>
* Remove the limitation that output formatters have to be exclusiveChristian Kandeler2020-03-201-1/+1
| | | | | | | | | | | | Introduce an aggregating output formatter that forwards its input to a sub-formatter that feels responsible for it, or otherwise lets the base class handle it. Our output panes now use such an aggregating formatter. In particular, this means that in the future, we won't have to stuff all run control output formatting into the Qt output formatter anymore. Change-Id: I5498f200a61db10ccff3ec8974c6825da7f7072d Reviewed-by: hjk <hjk@qt.io>
* Several SettingsPages: Code cosmeticshjk2020-01-301-1/+1
| | | | | | | De-Q_OBJECT-ify, remove unnecessary #includes, final-ize, etc. Change-Id: I461d3e73400dacac90c22e7c84a40e3ea1718b6e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: Provide empty implementation for IOptionPageWidget::finish()hjk2020-01-151-2/+0
| | | | | | | | Having it pure virtual only lead to a lot of unnecessary re-implementation. Change-Id: I37f71d1a160e21b93c7c73a6304b0eb6d5f0441d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Update CompileOutputSettingsPagehjk2020-01-081-31/+11
| | | | | Change-Id: Ib5bfe959025a57f9ae5b5563385fb1663c313ede Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Output panes: Allow to invert the meaning of the filter fieldChristian Kandeler2019-12-021-1/+1
| | | | | | | | That is, show only the non-matching lines. Task-number: QTCREATORBUG-19596 Change-Id: Iac06a7c4531688dbf97c7d5c4d0cdb80979b5f95 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Output panes: Support keyboard shortcuts for zoomingChristian Kandeler2019-06-241-0/+2
| | | | | | Fixes: QTCREATORBUG-22567 Change-Id: I3c7419c7b464c329d8f8dae11db9a0b01e51f32c Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Output panes: Improve the way to signal that filtering is activeChristian Kandeler2019-06-121-5/+0
| | | | | | | | | | | | | | | | | | | At the moment, background and foreground colors of an output pane are changed (via the widget's palette) when filtering is active, in order to make it clear to the user that the output is being tampered with. There are several problems there: - The chosen background color is quite garish. - More importantly, the palette change has no effect in the compile and app output panes, because their output is explicitly formatted and thus not affected by the general text color change. As a result, the output may no longer be readable. We fix this by choosing a less intrusive approach that simply darkens (or lightens) the pane's background color a bit when filtering is active. This is still clearly visible to the user. Change-Id: I41e053b4b218be57fe7655e314d4ebf93f59f505 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Output panes: Respect filter optionsChristian Kandeler2019-06-051-1/+2
| | | | | | | | The UI elements for case sensitivity and regexp behavior had not been doing anything until now. Change-Id: Ie210103984fda64d4249c56f9a5b21200132108f Reviewed-by: André Hartmann <aha_1980@gmx.de>
* ProjectExplorer: Allow text filtering in compile output paneChristian Kandeler2019-05-291-0/+12
| | | | | Change-Id: Ibd5c20e5d5dbbb1867aefc8d701218469b3a427b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Output pane settings: Make more more i18n-friendlyChristian Kandeler2019-05-091-2/+4
| | | | | | Change-Id: Iaccd369a8eea8df933cd036ed9f41f8730c9e973 Written-by: hjk <hjk@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Core: Fix enabling/disabling of zoomIn/Out buttons in output panesAlessandro Portale2019-04-231-1/+0
| | | | | | | | | | | | Amends 48073b2990 to avoid the creation of extra toplevel windows (and warnings on MS Windows on startup). Also, ensure that that the initial tab-less application output pane shows the buttons, albeit in disabled state. All other output panes do not have to explicitly enable them. Change-Id: I6c6ef374c09c77e2eb953743071917d9346ca85d Reviewed-by: hjk <hjk@qt.io>
* IOutputPane: Refactor zoom function into base classAndre Hartmann2019-04-161-52/+19
| | | | | | | | | Try to make zoom and font handling in the panes more similar and put common stuff into IOutputPane. Change-Id: I59c38c5eecbf67b7ca6c9d84a6f61b1292a787df Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Add settings icon to app and compile output panesChristian Kandeler2019-04-041-2/+10
| | | | | | | This provides a natural shortcut to the respective options page. Change-Id: I1e57c64d1541540cb1c0c44c6fb8eaad69fc2e32 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ProjectExplorer: Introduce dedicated output settings pagesChristian Kandeler2019-03-121-6/+102
| | | | | | | | | | | | | | One page for application output, one for build output. The respective settings are now easier to find, and the general Build & Run settings page looks more tidy now. We will also be able to link directly to the respective settings from some button in the output panes in the future. As a side effect, this patch also introduces a dedicated "word-wrap output" setting for the compile output pane. It used to share this setting with the application output pane, which was not obvious and might not be what the user wants. Change-Id: I5629363863ffe38e0faa006d361ec21484b593f4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CompileOutput: Use output formatterOrgad Shaneh2018-11-191-18/+11
| | | | | Change-Id: Ie7c3fd73de33fb5cfcc56f371ea72463f2ef72f4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Core: Use restrictions on character count instead of line countsEike Ziller2018-09-261-4/+5
| | | | | | | | Assume lines with an average of 100 characters for the transition and use the character limit already in two cases. Change-Id: I43316d51d7d5017aa413d6c910d3784a14237e9f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: ModernizeAlessandro Portale2018-07-161-3/+3
| | | | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default modernize-use-transparent-functors Change-Id: Iebed22caa2e733d292f334e956e3d16b844e14e3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Merge remote-tracking branch 'origin/4.4'Eike Ziller2017-08-241-3/+7
|\ | | | | | | Change-Id: Id525d68a899f2db14c2d52c200a3a2a8a4e81590
| * CompileOutput: Activate links only on left button clickOrgad Shaneh2017-08-241-3/+7
| | | | | | | | | | | | | | Complements a7ffd67a91. Change-Id: I3e70cf635774db3e126984dd70362aa0d3baa82a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Add support to change the number of lines of the compile outputSamuel Gaist2017-08-021-6/+7
|/ | | | | | | | | | This patch adds support to modify the number of line shown in the compile output window. This will allow users with big projects to have more room to look at when compiling. Task-number: QTCREATORBUG-2200 Change-Id: I1023b2150a3eff4a33b8872fb711d150e5a8b00c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Move consts that are used in a single file out of headerOrgad Shaneh2017-03-201-1/+2
| | | | | | | + inline where used only once. Change-Id: I08c60551afde1d36a2c8d5005c1ea7e52ba0515b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-221-1/+1
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Give the values of BuildStep::OutputFormat better namesChristian Kandeler2017-01-191-4/+4
| | | | | | | | The old ones did not convey their meaning very well. In particular, NormalOutput and MessageOutput were easily confused. Change-Id: Ia0a8c1b1c366ab3f5c59f751b37b8b1f68f6831d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Projects mode: Make plus icon dark and get rid of branch indicatorsEike Ziller2016-09-211-1/+1
| | | | | | | | | | The PLUS icon was actually PLUS_TOOLBAR, so name it that way and add an actual PLUS icon. Remove the drawing of the branch indicators from the kit tree view by overriding the method that does it. Change-Id: I395e5187c1738faaee3e122b4f3f359261b514d7 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Remove duplicated IOutputPane window titlesAlessandro Portale2016-08-121-1/+1
| | | | | | Change-Id: I9187feaccf137ca56f6db6c58367df84494e377f Reviewed-by: Marc Reilly <marc.reilly@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Move icons to UtilsUlf Hermann2016-08-051-4/+5
| | | | | | | This way we can use them from libraries, not only from plugins. Change-Id: Ic35cfd5f04d638d87606bf272b2c00ded1267c1b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Core: Use QList's initializer list contructor for output paneshjk2016-07-111-3/+1
| | | | | | | More concise code. Change-Id: I0c83a02de725648294e1b6b49669bdec0c47fafe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Use a better "Cancel build" icon in the menuAlessandro Portale2016-05-111-1/+4
| | | | | Change-Id: I442a76a7a4e98b358ac3714eef8e60d482a6e39b Reviewed-by: hjk <hjk@theqtcompany.com>
* Projectexplorer: Modernize codebaseTobias Hunger2016-04-151-12/+5
| | | | | | Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
* ProjectExplorer: Use Qt5-style connectsOrgad Shaneh2016-02-011-5/+5
| | | | | | | The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@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>