wmayer
a4abc092b6
App: Extend/change color API:
...
* Also set/get alpha value in setValue/asValue
* Add new static method fromValue
2024-12-06 11:37:45 -05:00
wmayer
5202748c0a
Gui: Fix some linter warnings
2024-11-28 18:41:42 +01:00
wmayer
f741655bf6
Gui: Apply clang-format
2024-11-28 18:41:42 +01:00
wmayer
82b4dcd58a
Gui: Fixes #16637 : Can no longer set transparency of Link faces
2024-11-28 18:41:42 +01:00
wmayer
ffa3fa5b5a
Core: Extend Color API
...
* Fix issues with alpha value <> transparency
* Use type traits to convert between different color classes (fixes #14515 )
2024-11-15 12:25:25 -05:00
wmayer
0ed7eb5652
Gui: use of TaskDialog::addTaskBox
2024-03-26 15:57:20 +01:00
wmayer
c016f1c1fb
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
Pesc0
4a8d3853ba
[Toponaming] create ElementMap class ( #9175 )
...
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport
Co-authored-by: John Dupuy <jdupuy98@gmail.com >
2023-06-15 09:05:24 -05:00
wmayer
457fac38dd
Gui: fix -Wclazy-connect-by-name
2023-04-05 00:44:13 +02:00
berniev
75acacd1b7
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
ba8d5ab055
Gui: modernize C++: replace 'typedef' with 'using'
2022-08-29 14:09:18 +02:00
berniev
a909df7f39
Gui: Single arg ctors must be explicit (PR #7369 )
2022-08-24 15:06:03 +02:00
berniev
0c70d45c83
Gui: Use override etc 2
2022-08-09 12:43:23 +02:00
berniev
d88729d2c4
Gui: use empty
2022-08-06 16:35:45 +02:00
wmayer
6ee2c7f865
Fix several clazy issues:
...
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
wmayer
aea110ba15
Gui: clean-up Selection API
...
Replace the int of the SubType of SelectionChanges with an enum class.
The meaning of it is nowhere documented and some magic numbers like 0,1,2 are used in several places in the code.
2022-04-09 23:07:02 +02:00
wmayer
9eac35cf5d
Gui: clean-up Selection API
...
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
Chris Hennes
bedf920702
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
96adb98f46
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
c4f5628899
[Gui] So headers: remove unused includes
...
- also sort out some headers to be used in precompiled headers
- also move a boost header to precompiled headers
2022-03-16 02:01:32 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Uwe
aa7977c51a
[Gui] Task* and Text*: remove unused includes
2022-03-05 17:44:07 +01:00
wmayer
513d15886d
Gui: move options to use native or Qt dialogs to class DialogOptions
2021-12-30 17:31:00 +01:00
mwganson
31175b5788
[core] Add new parameter to BaseApp/Preferences/Dialog called DontUseNativeColorDialog, default to true
2021-12-30 17:07:25 +01:00
luz paz
298c677873
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
9c72532f5d
Qt5: fix deprecation warnings for Qt 5.15
...
+ replace QDirModel with QFileSystemModel
+ QProcess::start(QString, OpenMode) is deprecated
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
2020-10-15 16:50:11 +02:00
wmayer
43d9e82f97
Coverity: Uncaught exception
2020-07-20 17:34:26 +02:00
wmayer
f3b460e42e
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
4ec45b545e
boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
2020-06-12 17:51:33 +02:00
Zheng, Lei
2a6bd5e464
Implementation of Link
...
This patch includes the actual implementation of Link, which is
implemented as an extension named LinkBaseExtension in App namespace,
and a full view provider ViewProviderLink in Gui. The reason of not
using ViewProviderExtension is because it need full control when
display, not just extending existing functionalities.
Please see [here](https://git.io/fjPue ) for more details of the
implementation.
This patch also includes a set of link manipulation commands, and a
task panel for overriding geometry element colors.
2019-08-17 15:08:33 +02:00