Max Wilfinger
e38b8d9bd4
update hardcoded XPMs to .svg files. Updated .svg icons for clarity.
2024-03-30 11:25:13 +01:00
wmayer
7256e1c827
Gui: add overloaded method pixmapFromSvg() to pass the device pixel ratio of a widget
2024-03-28 07:27:29 +01:00
wmayer
fa8978ce99
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
berniev
ae53c9b0a4
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
2cb05a6ae8
Gui: [skip ci] fix UTF-8 handling of icon resources
2022-08-20 15:47:07 +02:00
berniev
3d1f70765a
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
Uwe
d5b227e6a6
[Gui] remove more superfluous nullptr checks
2022-07-18 03:34:22 +02:00
Uwe
bb2b49fb1f
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
0penBrain
43772e985c
Gui: implement temporary blocker for console observer
2022-07-05 13:35:18 +02:00
0penBrain
1f1551bb5e
[BUGFIX] Gui: correctly save and restore warning type enabling in report view
2022-07-05 13:35:18 +02:00
wmayer
82a6241fc5
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
e655ef820b
[Gui] Application, command etc: remove unused includes
2022-02-20 22:41:34 +01:00
wmayer
f36126770c
App: harmonize API of App::Application
...
* make getHomePath() static and return a std::string
* make getExecutableName() static and return a std::string
2021-11-04 10:50:09 +01:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
Vanuan
65e66c9e62
High DPI support: Convert sketcher cursors to SVG
...
Remove xpm
2020-08-19 19:59:13 +02:00
wmayer
99121b75c9
LGTM: [skip ci] fix: Local variable hides global variable
...
A local variable or parameter that hides a global variable of the same name.
This may be confusing. Consider renaming one of the variables.
2020-07-26 19:30:24 +02:00
wmayer
0c1fd45f0d
Qt5: 'int QImage::byteCount() const' is deprecated since Qt 5.10: Use sizeInBytes [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
a57014a86c
[skip ci] when converting from SoSFImage to QImage check that the internal buffer is not null
2019-12-09 17:53:52 +01:00
ezzieyguywuf
9fcc18b08e
Refactor and rename ConsoleObserver...
...
...Renamed to "ILogger", to designate that this is an Interface for a
Logger. This "Interface" is pure virtual, so that it cannot be
instantiated directly. This makes it clear that it is intended to be
derived.
Finally, got rid of all the individual log-style methods and replaced
with SendLog. The idea here is that day-to-day users will only interact
with ILogger through ConsoleSingleton (or, likely, LoggerSingleton in
the future). This singleton will manage an arbirtary collection of
ILogger, and call SendLog with the appropriate parameters based on what
the user requests.
Therefore, the singleton itself will have the individual Log, Message,
Error, etc... methods, while stil allowing us to simplify the code base
of ILogger and its derived classes.
2019-10-20 11:46:15 +02:00
Abdullah Tahiri
561475a780
Gui: BitmapFactory new static function to make icon overlays with pixmaps
2019-06-23 01:03:35 +02:00
wmayer
b7dba09a5a
improve drawing of overlay pixmaps for high DPI screens
2019-03-14 18:32:21 +01:00
wmayer
5ae635ac64
fix various flaws detected by PVS
2019-03-01 22:52:41 +01:00
Mateusz Skowroński
ac508516da
Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
2019-02-11 15:39:14 +01:00
wmayer
5096f55ccb
port C++ code to Qt5
2016-12-13 14:22:59 +01:00
wmayer
78140c1f67
activate new icons and remove old icons
2016-08-19 17:08:02 +02:00
wmayer
b3b06fb4d3
activate new icons and remove old icons
2016-08-19 16:21:37 +02:00
maurerpe
8fd08f9b43
Change numBytes() to byteCount()
...
numBytes() is obsolete in Qt 4.8 and removed in Qt5. byteCount() is a
drop in replacement that works in 4.8 and 5.
2016-02-24 23:56:25 +01:00
Mateusz Skowroński
c275b35d48
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
05f95c0506
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00
wmayer
2e1a9bb4ed
+ fix possible crash in debug mode
2015-09-20 16:59:17 +02:00
wmayer
eb4040d6d0
+ support of exclusive Python command groups
2015-09-02 22:52:04 +02:00
wmayer
3f13a32afd
+ issue #0002053 : Support of themes
2015-06-28 23:30:42 +02:00
wmayer
06685a91f0
+ move to Qt's built-in search system for icon resources
2015-04-14 11:37:24 +02:00
wmayer
0973f81e7a
+ improve loading SVG files in debug mode
2015-02-01 11:14:00 +01:00
wmayer
c41aebd1eb
+ fix conversion from Qi image to Inventor when image uses a color table
2014-12-27 13:51:36 +01:00
wmayer
48ed8cb74a
+ fixes #0001859 : Unable to select PNG files for icons for macros in Tools-Customize
2014-12-22 03:07:26 +01:00
wmayer
be949a054d
+ harmonize API
2014-10-19 14:25:51 +02:00
wmayer
df58407c51
+ minor fix
2014-09-02 17:43:25 +02:00
wmayer
55984a200f
+ fix flaws found with code analyzer tool
2014-05-07 13:09:44 +02:00
wmayer
2d5ea9005a
+ Workaround for crash in webkit engine for Qt 4.8.5
2013-12-07 22:03:17 +01:00
wmayer
ce9041aa95
* Remove some old XPM icons
2013-11-08 14:20:49 +01:00
wmayer
1a404f4fd1
Use Webkit's SVG renderer for icons on macro page
2012-09-11 11:32:58 +02:00
wmayer
1ba2d0c715
Allow to import from HomePath/icons before loading builtin icons
2012-03-15 18:28:26 +01:00
wmayer
a13608744a
Support of relative paths in branding.xml
2012-02-27 12:47:34 +01:00
wmayer
c21ac1b6b0
Extend application branding
2012-02-23 20:25:33 +01:00
tanderson
b82602a6b6
changing Gui/BitmapFactory default pixmap size
...
Allows toolbar pixmaps to scale correctly
2012-01-24 22:18:12 +01:00
wmayer
6001cdcfca
0000474: Wrong background of SVG pixmaps
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5094 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-05 18:21:32 +00:00
wmayer
fc70821b48
+ use QtWekkit module to render SVG on Windows
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5090 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-04 19:13:39 +00:00
wmayer
7005831de6
0000356: Switch from QSvg to QWebKit (disabled atm)
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5089 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-04 18:51:23 +00:00