Pieter Hijma
5a842e93f5
Gui: Add support for renaming properties
2025-08-10 11:37:11 +02:00
Max Wilfinger
70f4221993
Fix missed strings for UI consistency
...
Fix ellipsis rendering
2025-08-08 06:37:59 -05:00
Krzysztof
ec2bf69135
Core: Fix 'Expression' and 'Vector' editor outhanging the screen ( #22426 )
...
* Core: Fix Expression dialog outhanging main window
Expression dialog is now fully shown inside main window, even if opened from model panel positioned on right side. If Model panel is outside main window, dialog is opened over this panel.
* Core: Fix Vectors dialog outhanging main window
Vectors dialog is now fully shown inside main window, even if opened from model panel positioned on right side. If Model panel is outside main window, dialog is opened over this panel.
* Core: Simplify 'adjustDialogPosition()'
Change suggested and authored by @hyarion
2025-08-07 19:22:28 +02:00
Max Wilfinger
ecf02b7878
Gui: Update UI strings for consistency
...
Closes : #22135
2025-08-04 20:14:45 +02:00
Chris Hennes
aa0acc944f
Gui: Drop name of unused parameter in PropertyBoolItem
2025-06-22 17:40:25 -05:00
Benjamin Nauck
7105a2332e
Merge pull request #21147 from 3x380V/units
...
Units rework II
2025-06-04 15:58:00 +02:00
Chris Hennes
272c3034b4
Merge pull request #21659 from 3x380V/gui_fixes
...
Gui: random fixes
2025-06-03 19:23:21 -05:00
Alfredo Monclus
9fabeae75c
Gui: Property editor use a checkbox instead of a combobox for booleans ( #21555 )
...
* Gui: property-editor add property copy context menu
* Gui: Property editor checkbox brighter border
* Gui: Property editor refactor optimize
* Gui: Property editor checkbox react to first click and add label
* Gui: Property editor remove auto-inserted include
* Gui: property-checkbox fix not painting the grid
2025-06-03 21:05:30 +02:00
Ladislav Michl
ae80d51d5d
Gui: do not create intermediate Quantity class in property editor
2025-06-03 09:31:38 +02:00
wmayer
de14c1e067
Gui: Do not round color values set in property editor
...
Do not use the number of decimals from the user settings to pass
the material to the property as this will cause some unexpected
rounding effects.
This fixes issue 19048
2025-05-30 14:21:53 +02:00
Alfredo Monclus
8be84f2a9f
Gui: property editor do not enter edit mode if the property is read-only
2025-05-25 06:25:09 -06:00
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