aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/imageviewer
Commit message (Collapse)AuthorAgeFilesLines
* ImageView: ModernizeAlessandro Portale2018-11-1210-49/+49
| | | | | | | modernize-* Change-Id: I7fcffa4b455355cbcdc91f7e671e0a88f1091042 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Change IEditor::document() to constOrgad Shaneh2018-09-262-2/+2
| | | | | | | All the implementations are const. Change-Id: Ib9753fe764dd482d4f4392eec70878d42edc737a Reviewed-by: hjk <hjk@qt.io>
* ImageView: Fix brace in stringRobert Loehning2018-07-131-1/+1
| | | | | Change-Id: I08c0b74930cccea4674ea559c64de9fff8cd1791 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* ImageView: Suppress a warning if SVG is not availablehjk2018-04-231-0/+2
| | | | | Change-Id: Ic61c61ec9f9c80c930c361e71c4d4b374aa39906 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Plugins: Re-categorize plugins which are in "Qt Creator" categoryRazi Alavizadeh2018-03-201-1/+0
| | | | | | | | | | | | | Category of DiffEditor, ImageViewer, Macros and UpdateInfo was removed, i.e., they were moved to "Utilities" category. Category of other plugins that were in "Qt Creator" category, changed to "Core". By this patch, forks of QtCreator don't need to change *.json.in files locally. Change-Id: I243c6b1831c0b880d32b2118db71f0b281590b7b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ImageViewer: Fix QBS build after adding the SVG multiexport featureFriedemann Kleint2018-02-141-0/+2
| | | | | | | Amends cd85d3aba56a142374226f5fdec8df3b6632357b. Change-Id: I8acdb94ee4b1f6a30aee2644230b4b9e297a53fb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Add SVG multi exportFriedemann Kleint2018-02-1412-36/+563
| | | | | | | | | | | | 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>
* ImageViewer: Remove unneeded use of global object poolhjk2018-02-082-14/+6
| | | | | | | | Plus some code cosmetics. Change-Id: I4e10f1900a5a06bb37bc2d20f3dd776c7534011e Reviewed-by: Denis Mingulov <denis@mingulov.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Image viewer: Add include <QAction>Friedemann Kleint2018-02-061-0/+1
| | | | | | | | Fix broken build (likely introduced by e1d2d35c20163083266e2e450ef54bfb15d2b47d). Change-Id: I34024e437d4d74ebe4f712718a66cedca8a4b7ae Reviewed-by: hjk <hjk@qt.io>
* Unify zooming actions of image viewer and model editorEike Ziller2018-02-054-21/+19
| | | | | Change-Id: I5761ab579beda5b2cd0b725869ed216cb97e900c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Replace manual signal blocking/unblocking with QSignalBlockerTobias Hunger2017-10-041-4/+2
| | | | | | Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Drop unused variables and lambda capturesUlf Hermann2017-09-081-8/+8
| | | | | | | | | Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Plugins: Fix that mimetype definition was not valid JSONEike Ziller2017-07-251-9/+9
| | | | | | | | | | | | | JSON officially does not support multiline strings, so we should use the same mechanism that we already use for the plugin description (i.e. additionally support arrays of strings which are interpreted as lines). This just happens to work because Qt's JSON parser eats it without choking. Change-Id: I25ef04600b209775c5a7af916c687fda4a8b1a4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Replace include guards with #pragma onceOrgad Shaneh2017-06-281-4/+1
| | | | | | Change-Id: Ic36cf0e9cac61d4d9a7e4434192944f5301b8aaa Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Reduce usage of qApp in favor of static function callsAlessandro Portale2017-04-241-1/+1
| | | | | | | | | | | | Q*Application classes have unusually many static functions. In many cases in our code, these functions are unnecessarily called as instance functions, using the qApp helper. This patch replaces many occurencies of qApp with the according Q*Application classname. Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124 Reviewed-by: hjk <hjk@qt.io>
* ImageViewer: De-slotOrgad Shaneh2017-03-203-16/+8
| | | | | Change-Id: If488718679d31fd184b99c9ceb5004f15fb0a90b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Utils: Wrap MimeDatabase into static functionshjk2017-03-031-2/+1
| | | | | | | | To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move mimetype definitions to plugin specsEike Ziller2017-02-276-22/+13
| | | | | | | | | | | | - Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* ImageViewer: remove unnecessary class forwardTim Jenssen2016-12-121-2/+0
| | | | | Change-Id: I39df5ceeb3fb07b039d5ad1388db866e8aaccc04 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ImageViewer, ScxmlEditor: Use the new "Fit to view" iconv4.2.0-beta1Alessandro Portale2016-10-251-2/+2
| | | | | Change-Id: I4261e2a91b2c2b310b571ac2657998dcc0756be6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ImageViewer, ScxmlEditor: Use the new "Zoom In"/"Zoom Out" iconsAlessandro Portale2016-10-241-2/+2
| | | | | Change-Id: Ib01060918924644b57d35083a4269614fba900c5 Reviewed-by: Alessandro Portale <alessandro.portale@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>
* Remove all QT_VERSION_CHECKOrgad Shaneh2016-08-121-5/+0
| | | | | | | We only support Qt 5.6 now. Change-Id: If94864400545b057623e3af0743c55ea1e84e33b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move icons to UtilsUlf Hermann2016-08-051-10/+10
| | | | | | | This way we can use them from libraries, not only from plugins. Change-Id: Ic35cfd5f04d638d87606bf272b2c00ded1267c1b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Icons: Move "next/prev", "[un]locked" and "zoom" from Core to UtilsAlessandro Portale2016-05-311-1/+2
| | | | | | | | | | They are needed in the timeline view. The change in qtcreator-project.qdocconf makes sure that qdoc still finds the referenced icons. Change-Id: I812fba8e57d06d93efc00c295467c83c08cd1784 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-221-2/+2
|\ | | | | | | | | | | | | | | Conflicts: qtcreator.pri qtcreator.qbs Change-Id: I0cbc9d335073e3234f472aa43f462eef9a9178aa
| * Theme: Separate run/stop/interrupt icons in menusAlessandro Portale2016-04-211-2/+2
| | | | | | | | | | | | | | And for that, we also need separate theme color roles. Change-Id: I27bf4499acb516f7f824f5e57632797653b150ec Reviewed-by: hjk <hjk@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-203-17/+20
|\| | | | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/session.cpp src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp Change-Id: I6946139f5e5fa3a9cdbb322fd50be248e2c0133f
| * ImageViewer: Update toolbar items for split/duplicated editorsAlessandro Portale2016-04-153-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | The "export" button in a split/duplicated view was enabled for other image formats than svg. The image size label was empty. Fixes for all views (not just the split ones): The play button is now disabled instead of "empty" for non-movies. The size of svgs is displayed. Change-Id: I1f6a2c47f3aa06ed052ba78e5e2d1edd51a0ec69 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-155-11/+5
|\| | | | | | | Change-Id: Ied609608f6b12aa923c67777bc5a273c4d8fbcbb
| * Core: Fresh filesave iconAlessandro Portale2016-04-141-1/+1
| | | | | | | | | | Change-Id: Ide9d92fb6cb7b6e6af457eb8680960e2ddc5ef77 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * Moving desktopdevicesmall.png from projectexplorer to coreAlessandro Portale2016-04-144-5/+3
| | | | | | | | | | | | | | It is also needed by imageviewer Change-Id: Idd489ebc71768e293790e4b8f8ae9f5ede38e80d Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * Icons: Removing several duplicates and variations of the eye_open iconAlessandro Portale2016-04-124-5/+1
| | | | | | | | | | Change-Id: I598005ac81bd847d3d5e88c3d78a0e945c8026c5 Reviewed-by: hjk <hjk@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-127-11/+5
|\| | | | | | | | | | | | | Conflicts: src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp Change-Id: I6ae2d37290643d69390f679a54f7596782f3d97f
| * Bounding Rect Icon: Move from qmldesigner to coreAlessandro Portale2016-04-114-5/+1
| | | | | | | | | | | | | | ..and re-use it in the imageviewer plugin Change-Id: I230bdf6917203c9f4e5ed08a0fdd13dfca8b9749 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * ImageViewer: Replace own play/pause icons with those from coreAlessandro Portale2016-04-104-4/+2
| | | | | | | | | | Change-Id: If12eec9940bed026a65196801d064f59c228b4bc Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * Locator: Remove old "Locator" menu icon. Re-use the "search" icon.Alessandro Portale2016-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | This patch removes the locator.png icon and replaces it with a menu-friendly variation of the zoom icon. The current ZOOM icon becomes ZOOM_TOOLBAR. Change-Id: I8817c5c420801351db659caa4c4190a9074be720 Reviewed-by: hjk <hjk@theqtcompany.com>
| * Image Viewer: Fix capitalization for an actionLeena Miettinen2016-04-051-1/+1
| | | | | | | | | | | | | | | | Write prepositions in lower case also in action names, when they are not the first or last word in the name. Change-Id: I606b10ff9a08bb8542a03fc5a8a8f19dfd96277e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* | Wholesale conversion to #pragma oncehjk2016-03-306-24/+6
|/ | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ImageViewer: Fix qbs build.Christian Kandeler2016-03-221-2/+2
| | | | | Change-Id: I7dd26214f33952a4116f52cd5bb525913e013b78 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
* ImageView: Remove hard dependency on QtSvg headershjk2016-03-211-3/+5
| | | | | Change-Id: I2c8aa3017a95b36b3d96687f2da03eb2ef558222 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* ImageViewer: Add option to export images from SVG.Friedemann Kleint2016-03-2110-2/+371
| | | | | | | | | | | Add a tool button showing a dialog with file name and size for exporting images from SVG. [ChangeLog][ImageViewer] Added option to export images from SVG. Change-Id: I84e04dc166e70b0359eba0f19703a75b882a2bc2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* ImageViewer: Remove class ImageViewerActionHandler.Friedemann Kleint2016-03-188-215/+80
| | | | | | | | Create the actions in ImageViewerPlugin and use lambdas instead of a QSignalMapper. Change-Id: Ic74622ca5e9daf6f0d367d00b709d732153dc62e Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Core: Make IDocument concreteOrgad Shaneh2016-03-172-22/+0
| | | | | Change-Id: I8290943614ea4a2060cf09a71fb4f957852ab705 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-1914-234/+201
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Add default implementation for IDocument::fallbackSaveAs(Path|FileName)Eike Ziller2016-01-192-13/+0
| | | | | | | | | The methods are only relevant for documents without a filePath, and there was a mix of different irrelevant implementations present in subclasses. Change-Id: I4f57d306e5ddd913974cfe6ed0b4db062eb907a1 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Remove setContents() from imageviewerUlf Hermann2016-01-182-7/+0
| | | | | | | It doesn't actually do anything. Change-Id: Ic89b778427c4dd663f7577f522688cde99da06f9 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* IDocument: Rename defaultPath and suggestedFileNameEike Ziller2016-01-142-4/+4
| | | | | | | | To fallbackSaveAsPath and fallbackSaveAsFileName. That makes it clearer what they are for, and that they actually belong to each other. Change-Id: Ie5b83b9db77d39a7fe9e979cc8f22b7f5b9101a3 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Themed Icons: Introduce Utils::IconAlessandro Portale2015-11-251-7/+4
| | | | | | | | | | | | | | Instead of describing icons via file name or in the themed icons case via a string that is a list of mask/color pairs, we have now a class for it. Icons are now listed in per-plugin *icons.h headers. RunControl::m_icon was The only place left where an icon property was in fact a string. This patch changes that member to be a Utils::Icon. Change-Id: Ibcfa8bb25e6d2e330c567ee7ccc0b97ead603177 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>