bofdahof
998f4e4d45
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Ladislav Michl
c293d74566
Base: rename Exception's PascalCase methods to camelCase
2025-05-05 23:50:01 +02:00
Kacper Donat
b14d3a224b
Misc: Replace dynamic_cast with qobject_cast
2025-04-26 14:23:25 +02:00
Pieter Hijma
8fb9cbfa3e
[Core] Make enum FrameOption boolean
...
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-04-22 23:56:07 +02:00
Pieter Hijma
50bf1cf120
[Core] Allow creating an editor with a frame
...
The default is to not have a frame as is custom before this change.
2025-04-22 23:56:07 +02:00
Kacper Donat
b300c80b90
Base: Use explicit pointer syntax for freecad_cast ( #20694 )
...
* Base: Use explicit pointer syntax for freecad_cast
This aligns our custom cast with other casts
* All: Use explicit pointer syntax for freecad_cast
2025-04-11 14:11:33 +00:00
Kacper Donat
35a9673a75
Base: Rename Base::freecad_dynamic_cast into freecad_cast
...
This is to make it shorter and easier to use. QT does the same thing
with their qobject_cast.
2025-04-07 10:32:28 -05:00
Kacper Donat
0b3dca895d
Merge pull request #20570 from pieterhijma/varset-dialog-units
...
[Core] Show units in the VarSet add property dialog
2025-04-05 23:19:39 +02:00
Pieter Hijma
4bbc59d309
[Core] Make PropertyItem column usage more clear
...
- Renamed dataProperty -> dataPropertyName because the function returns
variants for the property name.
- Add an enum for the column to remove magic numbers
2025-04-01 13:21:50 +02:00
Benjamin Nauck
17dc7fce06
Gui: Add #include <limits> where used
2025-03-31 23:50:37 +02:00
Benjamin Nauck
34bc1d45ea
Gui: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
Chris Hennes
5f623390fb
Merge pull request #20142 from bofdahof/ranges
...
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
bofdahof
e5b06ae736
Gui: apply std::ranges
2025-03-16 17:15:14 -05:00
Chris Hennes
be8b92182c
Merge pull request #19921 from mosfet80/QT_CLEAN
...
REMOVE old QT<= 5.14 code
2025-03-11 20:54:59 +00:00
Chris Hennes
6de034bf84
Merge pull request #19926 from benj5378/toStringasd
...
Gui: clean up PropertyItem::toString
2025-03-11 20:38:15 +00:00
Andrea
da66720d3a
REMOVE old QT<= 5.14 code
...
Ubuntu 22.04 use qt 1.15.3.
In the code is still used qt code <5.10.
A cleanup was done by removing qT code version used in ubuntu 18.04.
2025-03-05 09:32:06 +01:00
Chris Hennes
7f1c43a335
Merge pull request #19636 from kadet1090/color-in-base
...
Base: Move App::Color to Base
2025-03-02 16:36:40 -06:00
Benjamin Bræstrup Sayoc
3765455ebe
Gui: clean up PropertyItem::toString
...
I have no idea why the return type of toString was ever QVariant
2025-03-01 16:10:46 +01:00
Kacper Donat
2f35f1c561
Base: Add fromPercent and toPercent helpers
2025-02-23 22:51:13 +01:00
Kacper Donat
12a69fe296
Base: Add isNullOrEmpty string helper
...
This adds isNullOrEmpty string helper that cheks if string is... well
null or empty. It is done to improve readability of the code and better
express intent.
2025-02-21 15:04:43 +01:00
Kacper Donat
a72a63232a
Base: Move App::Color to Base
...
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Benjamin Bræstrup Sayoc
f647d4a1eb
Gui: Use QStringLiteral
2025-02-10 18:34:57 +01:00
tritao
65466d580b
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
Benjamin Nauck
dd6aa9f3c7
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
tritao
8aa50c4380
Gui: Reorganize the dialog files into a top Dialogs folder.
2025-01-24 16:28:02 -06:00
Ladislav Michl
2ea8a633ac
Base: Quantity: return std::string
2024-12-23 17:48:42 +01:00
Ladislav Michl
0907c7bfda
Base: Units: return std::string
2024-12-23 17:48:42 +01:00
Ladislav Michl
0ee3c9f8e6
Base: Drop QString-std::string conversion functions from Tools
...
Convenience helpers function Tools::toStdString and Tools::fromStdString
were implemented for Qt4 or older to perform utf8 aware conversion as
QString::toStdString/QString::fromStdString were using toAscii/fromAscii
internally (see https://dreamswork.github.io/qt4/classQString.html ).
Since Qt5 QString uses toUtf8/fromUTf8, which makes the helper functions
obsolete (see https://doc.qt.io/qt-5/qstring.html#fromStdString ).
2024-12-02 23:30:53 -05:00
Ladislav Michl
6860aab7ee
Gui: propertyeditor: use std::string setPropertyValue
...
Avoid std::string->QString->std::string where possible.
2024-11-27 17:28:16 +01:00
Ladislav Michl
a80c87c3a7
Gui: propertyeditor: add setPropertyValue with std::string argument
2024-11-27 17:28:16 +01:00
Ladislav Michl
7c2acdbf09
Gui: propertyeditor: Reformat, fix line endings
...
Instead of fixing whitespaces do a full reformat according to
current rules. No other changes.
2024-11-27 17:28:16 +01:00
Chris Hennes
e52ef2a525
GUI: Update MacOS detection macros
...
For GUI-specific things use Q_OS_MACOS, and for other things use
Q_OS_APPLE.
2024-08-12 11:34:39 -04:00
David Carter
695fc55c6e
Materials: Reset per face when using property editor
...
In v0.21 changin the color using the propert editor reset the per face
colors. This recreates that behavior when settin the appearance.
fixes #15170
2024-07-29 10:56:29 -05:00
wmayer
f3327475b9
Gui: move to new-style connect() in createEditor()
2024-05-14 15:58:44 +02:00
wmayer
88216148ce
Fix linter warnings
2024-05-14 12:06:15 +02:00
Johannes Wüller
0e24e121eb
Fix backwards-compatible Qt6 warnings
2024-05-13 11:39:24 -05:00
wmayer
68bfbd0707
Gui: simplify singleton of PropertyItemFactory
2024-04-23 10:53:24 +02:00
wmayer
1c39969061
Gui: fix linter warnings in PropertyItem.cpp
2024-04-23 10:53:24 +02:00
wmayer
cf1eeaab19
Gui: In property editor disable widget of Placement property is not part of a DocumentObject
2024-04-17 12:28:30 +02:00
wmayer
41b3be8fb6
Gui: improve PropertyMaterialListItem
2024-02-24 23:59:58 +01:00
wmayer
c633edfe8a
Gui: improve PropertyMaterialItem
2024-02-24 23:59:58 +01:00
wmayer
1187ed58ed
Gui: allow to set ranges for property item editors when used as sub-items
2024-02-24 23:59:58 +01:00
Florian Foinant-Willig
773c701eec
Core: modernize type checking
2023-10-23 18:07:07 +02:00
wmayer
c016f1c1fb
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
5f0ec490e6
Core: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
54bb9c9c62
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
2725c3a54f
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
Jolbas
b1e521743b
Save all decimals when property is edited
2023-07-20 12:56:21 -05:00
luzpaz
129d5882a7
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
0penBrain
ba25e9a82f
[Core] Add possibility to set color with tuple of integers, fixes #8344
2023-02-12 18:16:59 +01:00