Karliss
fa61131590
Add missing parent for messagebox and other popups
...
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window. This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
2025-03-16 16:02:36 -05:00
Benjamin Bræstrup Sayoc
ee90eb6ebc
PartDesign: 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
Kacper Donat
651cefde4d
Gui: Use getObject<T>() helpers in classes
...
This commit is generated using regex based find and replace:
```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```
To regenerate if needed.
2024-12-06 18:29:39 +01:00
Josh Coalson
a8ae56e06a
Part: Rename AttachExtension::Support property to AttachmentSupport, to avoid name conflict with base features. Fixes #7052
2024-03-04 18:22:43 +01:00
wmayer
ca1cb21498
PD: modernize C++: use equals default
2023-08-22 13:31:17 +02:00
luz paz
c726b69d7e
PD: remove trailing whitespace
2022-11-10 10:32:04 +01:00
berniev
2d4c5a4cfb
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
Kuzemko Aleksandr
07f4267112
[PartDesign] Add individual QString for menu text which exposes text to translation
...
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/125
2022-05-05 23:00:24 +02:00
Uwe
c1fbf28e22
[PD] Datums: remove unused includes
2022-02-19 19:32:00 +01: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
wmayer
f70a267d77
issue #0004258 : FreeCAD crashes on "Edit datum" in PartDesign when datum in Part [skip-ci]
2020-01-30 16:07:17 +01:00
luz.paz
d38f18af23
PartDesign: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all PartDesign WB files
2019-12-22 00:58:38 +01:00
wmayer
9177b4057c
remove dependency of datum element if creation of copy fails
2019-06-15 12:23:47 +02:00
wmayer
9a7f97c827
Fix usage of Reference dialog:
...
+ fix memory leak by using QDialog on the stack
+ open a transaction where needed when making a copy to avoid mess with undo/redo
+ set proper title and use main window as parent
+ replace class name Dialog with PartDesignGui::DlgReference
2018-12-03 17:54:05 +01:00
Unknown
772c5b1970
Doxygen Typos
...
+ doxy whitespace formatting
+ added more misc. typos
+ grammar fixes
[skip ci]
2017-10-15 16:27:42 +02:00
wmayer
eb02efa004
do not use translated text for icon names
2017-04-15 12:58:35 +02:00
DeepSOIC
0d81472fa8
PartDesign: fix non-selectable datum features
2017-03-15 10:32:43 -03:00
Stefan Tröger
9a3b952fb9
PartDesign: Port body to be a origin group
2017-01-04 16:01:58 +01:00
Stefan Tröger
6356636b04
PartDesign: Fix crash on datum abort
2016-12-08 08:17:31 +01:00
Stefan Tröger
214722b435
PartDesign: prevent double deletion of TempVis
2016-12-07 06:41:40 +01:00
Stefan Tröger
b758df7193
Port attachment UI to Part for general use
...
Furthermore change PartDesign primitives to use the new task dialog
2016-12-07 06:41:40 +01:00
Sergo
be249f902d
PD: add SelectionFilterGate to filter dependents, fix mirror taskview
2016-10-15 17:41:56 +02:00
Sergo
99076944af
PartDesign: points are selectable for Datum support
2016-09-30 11:09:01 -03:00
Sergo
46a218ed24
PartDesign: fix Datum editing, showing/hiding objects
2016-09-30 11:09:01 -03:00
wmayer
664cf65d26
fix -Wextra in PartDesign
2016-09-22 18:34:56 +02:00
wmayer
de7978434d
fix Coverity issues
2016-08-19 22:51:33 +02:00
wmayer
fbf72553f3
+ fix warnings
2016-05-08 06:19:32 +02:00
Mateusz Skowroński
58daa046f1
Fix layout in TaskDatumParameters dialog.
2016-05-07 23:01:47 +02:00
DeepSOIC
abf4ddf9f7
Attacher: UI: another fix of status label
...
When no references were filled in, and modes were switched, it falsely
claimed 'Attached'. This has been fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
2f6aaf3742
Attacher: add superPlacement to UI
...
Expose superPlacement as X,Y,Z,yaw,pitch,roll quantity boxes. With partial expression support.
2016-05-07 11:24:41 +02:00
DeepSOIC
ebd5414a61
Attacher: UI improve status message display
...
Before, message used to display 'Selection accepted', when attachment
actually failed. Shouldn't happen anymore.
2016-05-07 11:24:41 +02:00
DeepSOIC
a392927750
Attacher: rework UI
...
* Remove hint system on buttons. Buttons show currently selected
reference type, instead.
* Change button's caption to "Selecting..." when selecting.
* internal logic rearrangements
2016-05-07 11:24:41 +02:00
DeepSOIC
f947101938
Attacher: use getModeName() instead of eMapModeStrings[]
...
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
DeepSOIC
505ec6a26d
Attacher: change suggestion routine interface
...
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.
So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
2b057ef192
Attacher: for reachable modes, display what's to add
...
For grayed out modes in list, show what's needed to get to the mode.
Like so:
"Normal to edge (add Vertex)"
2016-05-07 11:24:41 +02:00
DeepSOIC
e6911adc50
Attacher: display modes that can be reached
...
Attachment mode list used to display only the modes that fit current
references. Now, modes that can be reached by adding more references are
listed too, but grayed out.
2016-05-07 11:24:41 +02:00
wmayer
6b4821a855
+ fix crash on abort of adding primitives
2016-04-24 14:17:01 +02:00
DeepSOIC
4a1a1480ce
Attacher: list ref. combinations in UI
2016-04-21 20:55:42 +03:00
DeepSOIC
cdc507fa36
Attacher: use the new strings in UI
...
* user-friendly mode names
* tooltips
2016-04-21 20:55:42 +03:00
Mateusz Skowroński
b5519922d8
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-04-15 11:55:12 +02:00
Mateusz Skowroński
3df6064e85
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-04-15 11:54:59 +02:00
wmayer
08df5cbc59
+ remove 'using namespace Part' inside header file
2016-04-13 16:20:31 +02:00
Stefan Tröger
6bf31e841e
PartDesign: Fix attachment external references
2016-04-12 18:12:23 +02:00
Stefan Tröger
7dea66872e
Datums not selectable during edit
2016-04-12 18:12:22 +02:00
Alexander Golubev
0cfc0cd424
Fix warnings introduced in new PartDesign
...
Mostly unused wariables and compare of signed & unsigned
2016-04-12 18:12:21 +02:00
Stefan Tröger
3bd09ea570
change point of reference feedback for datums
...
On datum creation it is better to ask the user on OK than on tool activation, as he might hit cancel (and then the created references are till there) or even more important, he could add additional external references within the dialog. The disadvantae is that if the user sets "cross reference" ge gets asked again every time he opens and leaves the dialog.
2016-04-12 18:12:20 +02:00
Alexander Golubev
1a26f7551f
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00