Commit Graph

43 Commits

Author SHA1 Message Date
Alessandro Portale
d4cf962996 Utils: Add an "online" icon
..and use it in the Help plugin to open online help.

Change-Id: Ic84c63257a08b3c2ac76bedc0db04f297f695291
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@qbc.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-31 07:07:26 +00:00
Orgad Shaneh
1e138fbe10 Remove excess blank lines after namespace
Change-Id: I4e4f83017f2bfc2cf842c4c971ed4b05e0447e6a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-27 06:50:16 +00:00
Nikolai Kosjar
741e8d8aba LanguageClient: Use empty icon for unknown completion item kind
...instead of a null icon.

Without this, a completion item gets no icon and looks misaligned
between items with icons. For example, for the completion item "size_t"
(a typedef) clangd reports a completion kind of "Reference", for which
we do not have a dedicated icon.

Change-Id: Ibba658d6bfb958bb34747e3f57514af49f5427b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-05-08 06:17:16 +00:00
Daniel Teske
ba73d97852 Add path completion to .pro and CMakeLists.txt editors
Finished-by: Christian Kandeler <christian.kandeler@qt.io>
Fixes: QTCREATORBUG-5915
Change-Id: Ic5cdcbf33252ddab10c247439c06b0c1e35bef0d
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-04-25 11:53:13 +00:00
Alessandro Portale
44f5b9318b Core: Turn progress detail expander into a real icon
Change-Id: Ie6173cc041b96cd10879189bedce1104cdbe7a33
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-11 11:12:33 +00:00
Alessandro Portale
177aeaaf35 Autotest: Move "sort alphabetically" icon to utils
Make it available for others.

Change-Id: I2f167b82127ea7142b8185f0ec0402f1d054d06c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 12:15:22 +00:00
Mitch Curtis
fe21a7a77e Allow pinning files to ensure that they are always open
This patch allows pinning files within a session. Pinning a file puts
it at the top of the Open Documents list, and prevents Close All
from closing it until it is unpinned.

This is useful for files that should always be open for a given
session.

[ChangeLog] Files can now be pinned via the context menu.
Pinning a file keeps it at the top of the Open Documents list,
and prevents Close All and similar actions from closing it
until it is unpinned. This provides a way to quickly close any
open files without closing important ones.

Change-Id: If47a599fb272db4c78a71eabe6fb29215a9a8a11
Fixes: QTCREATORBUG-21899
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-03 09:17:55 +00:00
Alessandro Portale
44b7789281 Utils: Add a "settings" icon
Change-Id: I2f6a7cd6dd6cbf7fefe1a5ace304321c2674e55f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-03-07 16:10:50 +00:00
Eike Ziller
3c5650e514 Add macOS touch bar support
Introduce a generic Utils::TouchBar that implements a touch bar for
macOS based on QAction. Touch bars can be nested, and one is set to be
the application's top level touch bar.

Also add an ActionContainer for the touch bar. That allows us to manage
the layout of the touch bar the same way we do with menus.

Since the touch bar is an input device with very limited space, a
command in the touch bar needs to be specifically styled for the touch
bar by setting either touchBarText or touchBarIcon (or both).

Touch bars can be nested by nesting the ActionContainers. A nested touch
bar ActionContainer needs to specify an icon and/or text to show in the
touch bar button that opens that sub-bar.

Commands are only shown in the touch bar if they are valid within the
current context.

Implementation-wise we cannot use the standard NSPopoverTouchBarItem for
nesting touch bar levels. We cannot hide items in the touch bar, because
hidden items still take up space in the touch bar. So we need to rebuild
the touch bar regularly. Since the items we show are very dynamic, every
time the items in the toplevel bar change because of a context change,
any opened sub-level touch bar closes. That is why we maintain a stack of
touch bar levels ourselves, replacing the main touch bar with the current
level, and managing opening and closing the levels manually.

This patch adds buttons for Help, Bookmarks, Header/Source, Follow
(Symbol), Decl/Def, and a sub-bar for the debugger actions.

Fixes: QTCREATORBUG-21263
Change-Id: Ib63e610f21a993f1d324fe23c83a7f2224f434ac
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2019-01-15 14:33:56 +00:00
David Schulz
141f19a652 Utils: move code model icons to utils
In preperation for the language server protocol support.

Change-Id: Iee4ccd53a86d9afdb357972ea62b75ace2edcb1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-08-06 13:22:47 +00:00
Orgad Shaneh
7cee991c70 Utils: Remove superfluous qualifications
Change-Id: I36e17dac0cff87f82f0ddaf97bc613389110f218
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-19 08:21:29 +00:00
Alessandro Portale
dad5e41ca9 Utils: Separate the filter icon from the expand arrow
...so that the filter funnel can be used stand-alone

Change-Id: Ic8675954edd4234f84de8caffedd1a67b67b2edd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-06-27 11:41:46 +00:00
Alessandro Portale
f748a5b593 TextEditor: Move the fixit light bulb to Utils
Change-Id: I3128c0363737980a77fa780601f0b245d01540ad
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-13 13:58:57 +00:00
Ivan Donchevskii
e9c462391e ClangTools: Split generic part from static analyzer tool
To reuse it for other clang-based tools.

Change-Id: I6c0d8e9eee543fa08faf3bf93c9fac33e43c6820
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-13 12:34:53 +00:00
Alessandro Portale
639df58287 Utils: Remove the unused and invalid Utils::Icons::DARK_CLOSE
The icon is not used anywhere and the :/utils/images/darkclose.png it
depends on does not exist.

Change-Id: I3f2bd5e4cd13ad4d19baf9e691897b81cd3b0629
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-09 11:38:23 +00:00
Eike Ziller
7112ca1c56 Add "New Search" tool button to search results pane
Task-number: QTCREATORBUG-17870
Change-Id: If939e71cb74b5a0b6811e435b02e86c5053bd067
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-03-09 13:03:38 +00:00
Eike Ziller
124e4499eb Merge remote-tracking branch 'origin/4.6'
Change-Id: I421af2d62994436782dab6d37e97622bd055ed44
2018-03-05 09:28:34 +01:00
Alessandro Portale
807c7c6380 utils: Let the link icon have a LINK and a LINK_TOOLBAR version
Change-Id: I910d491f7f5ac47c55c966f687b004c0e0793c5f
Change-Id: I910d491f7f5ac47c55c966f687b004c0e0793c5e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-03-02 10:32:47 +00:00
Friedemann Kleint
cd85d3aba5 Add SVG multi export
Add a second SVG export option that allows for exporting
a series of icons of various size in one go. A dialog is shown
that allows for entering a file name pattern with place holders
and a list of sizes.

Change-Id: Ic644a9d402aa44af5899c29cf83051fdd7bba3d1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Diana de Sousa <diana.desousa@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-02-14 09:37:16 +00:00
Alessandro Portale
89053aca81 Utils: add a toolbar variant for the OPENFILE icon
Change-Id: I745e47b6bfe5cce8e04014f2666c3388fafeea3c
Reviewed-by: hjk <hjk@qt.io>
2018-02-13 10:54:57 +00:00
Christian Stenger
8c6c9fa2a8 Utils: Remove directory icon
This icon had been moved already, but its declaration
and definition were still present.

Change-Id: I7e0f5cc91f83ac19e9bba9838b1fbc4d7258c6c7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-01-08 12:50:27 +00:00
David Schulz
97053d9f2f Utils: Move code model icons to utils
Using the already established icons for code model errors and warnings
to Utils to mak them accessible for other code models.

Change-Id: If9f8efde60cf20411e043aeb2831a9254398bcaf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-11-16 13:55:35 +00:00
Eike Ziller
1932912e7c Add icons to file system view directory selector
Change-Id: I0b6451d7f68fae93e0b140aaea030c88ec1a8801
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-10-11 07:06:41 +00:00
Alessandro Portale
1748195e50 Utils: Add an icon for "Project"
Whether it is should be the wrench or the screw-nut is currently
unclear. Let's make it a wrench for now.

Change-Id: I8688e808dab0f522d7fee59885ae443ea0b67db1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-10-10 18:07:28 +00:00
Alessandro Portale
42844215ca Utils: Introduce the empty16 icon
Empty14 is sometimes simply 2 pixels too small.

Change-Id: Ia711f4d17388a51999d056ffff1ed4089e8d4819
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-24 14:58:23 +00:00
Serhii Moroz
69da534f99 TextEditor: add right sidebar
Task-number: QTCREATORBUG-9436
Change-Id: Ic0406758a30d52c22c58433f5f35305b798cb462
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-03-09 08:19:54 +00:00
Alessandro Portale
6c682f4570 Utils: move pan icon from scxml to utils
It will also be used in Qt Quick Designer

Change-Id: Id4e16f417c5faf8baf9437c0d4845397f3ddb4fc
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-27 09:36:11 +00:00
Ulf Hermann
018ba5a834 Rename the "ERROR" icon to "CRITICAL"
We mostly use this icon in terms of showing messages which might be
informational, warnings, or errors. We cannot call the icon "ERROR" as
that clashes with some macro on windows. To be more inline with Qt's
predefined messaging macros (qDebug(), qInfo(), qWarning(),
qCritical(), qFatal()), we rename the icon to "CRITICAL" and regroup
the entries in the header to suggest this usage.

Change-Id: I89880919d7ca54ea9c86de384eb29f375bf3075f
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-01-02 12:27:54 +00:00
Alessandro Portale
5101de0174 Utils: Add a toolbar variant for the edit_clear icon
Change-Id: I7236e37c1944f5f9d2334f1dc676c347a2b890ef
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2016-12-23 15:44:18 +00:00
Alessandro Portale
1ff8b46d0a Utils: Create _TOOLBAR variants of some standard icons
And use these in scxmleditor. qmldesigner will also use them.

Change-Id: Ifd057531873a8cb8da3d6e033fbf606f17638c3e
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-12-12 14:19:29 +00:00
Alessandro Portale
d466dc916a Utils: New "Fit to view" icon
Change-Id: I2592cb79a8dd7bad100c466cb45cf30039bace18
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-25 22:11:43 +00:00
Alessandro Portale
ee8cb08e2c Utils: "Zoom in" and "Zoom out" icons
Change-Id: I596cde174d63e23cf29c4d528c6b3b9b70e17aaa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-24 15:29:19 +00:00
Alessandro Portale
69486b5a5d Utils: Add a "snapshot" icon
Change-Id: Ife531bb493aa22db660e73d9e5b89bc882fac610
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-18 17:08:02 +00:00
Alessandro Portale
f38a719615 Utils: HighDPI-able, themable filenew and open icons
Change-Id: I1b9dc3393c6ec7965fbca42a561303ddc01201eb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-13 15:33:53 +00:00
Alessandro Portale
a77c5836e9 Utils: HighDPI and themable copy/cut/paste icons
Change-Id: I7ff7ca17f719d1a94b9b4e841db4d8f01f2781d7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-12 14:01:12 +00:00
Alessandro Portale
de3cf47273 Utils: HighDPI-able, themable undo and redo icons
Change-Id: Id18c547636fe0577c3ef849e7208e430e53ffc7e
Reviewed-by: hjk <hjk@qt.io>
2016-10-11 15:03:10 +00:00
Alessandro Portale
22d40f4dc6 Utils: Unify the different Bookmark icons
The variant in Bookmarks was left aligned, which is obsolete due to the
textmark overview tooltip. Bookmarks and Help now use the same icon which
is in Utils.

Change-Id: I0f7899de2f7a8803aa8493659d2991ac13739144
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-10-11 07:09:12 +00:00
Alessandro Portale
ce308c1091 ProjectExplorer: Show kit warnings and errors as overlay
Instead of having kits just a big warning or error icon

Change-Id: I5b1c72c3c6ddd4cb646125c70d979431166d31f2
Reviewed-by: hjk <hjk@qt.io>
2016-10-07 08:21:59 +00:00
Alessandro Portale
7bbebdeb48 ProjectExplorer: Icon for enabling kits in the project mode
Disabled kit icon plus small "+" overlay.

Change-Id: I58df0da662baf9977382733e8d003766bd232281
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-29 07:25:16 +00:00
Alessandro Portale
43afc5d1ad Utils: Remove the shadow from the non-toolbar PLUS icon
Change-Id: If5de4265689770b97661d9da42dd001f55b31b37
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-28 14:15:57 +00:00
Eike Ziller
39555d3b86 Projects mode: Make plus icon dark and get rid of branch indicators
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>
2016-09-21 10:02:22 +00:00
Eike Ziller
285c8a7543 Fix wrong icon path
Regression introduced by 15fbfaf2e9

Change-Id: I795519fbf8f0370399583af8268bb4cc6bd3530d
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-08-23 12:33:43 +00:00
Alessandro Portale
743cf871c2 Utils: Move icon construction out-of-line
Saves several k object data per file.

Change-Id: Id73c3c88cb2ccd78cce68bd5db04bf0725f99d91
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-08-12 13:49:00 +00:00