Commit Graph

71 Commits

Author SHA1 Message Date
pre-commit-ci[bot] 25c3ba7338 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
PhoneDroid c78b483dd5 Updated SPDX License Identifiers 2025-10-08 10:28:46 -05:00
Markus Reitböck 6ef07bb358 Gui: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:03 +02:00
theo-vt 44a8ec2b65 Core: Add setting to hide the TaskWatcher (#22857)
* Core: Add setting to hide the TaskWatcher

* Move setting to Display/UI

* Clarify option description

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

* Use sentence case for section title

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

---------

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2025-08-11 21:38:58 +02:00
paddle 013bbf1937 Core: TaskView: add updateWatcher when an object is set in edit. And add a timer when active document changes. 2025-07-27 21:17:28 +02:00
PaddleStroke 91641c4fb6 TaskView: Add 'Permanent task box' framework. (#22750)
* TaskView: Add 'Permanent task box' framework.

* Update TaskView.h
2025-07-26 22:46:49 +02:00
Alfredo Monclus e45cf96afb Gui: Tasks: fix in place close and ok buttons 2025-06-19 18:42:24 +02:00
wmayer 9bf621657b Gui: Fix undo/redo behaviour in transformation tool
If the user clicks on undo while the transformation dialog is
open the currently active transaction will be closed.
From now on any change of the placement won't be recorded any
more so that e.g. canceling the dialog or an undo after
accepting the dialog leads to unexpected behaviour.

To fix the issue two new virtual methods onUndo() and onRedo()
are added to TaskDialog and reimplemented in TaskTransformDialog.
These functions make sure to open a new transaction.

This fixes issue 19152
2025-05-30 14:21:53 +02:00
bofdahof 998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02: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
Andrea 5464ada40c Remove old qt code
new round of removal following the report of @benj5378  .

.
2025-03-05 09:46:35 +01: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
Alfredo Monclus 9f34f15a4b refactor: setup and use a single base scheme 2025-02-16 10:19:48 -03:00
Alfredo Monclus 741e780f46 refactor: remove scheme dependencies from group 2025-02-16 10:02:23 -03:00
Alfredo Monclus ed1bfa20bf refactor: reduce qsint schemes to 1 2025-02-16 09:54:16 -03:00
PaddleStroke 4f323f9580 Core: Enable TaskDialogs to associate view (#17373)
* Core: Add possibility for task dialogs to associate a view and be able to close when associated view is closed.

* TaskImage: Use task dialog view association.

* Sketcher: Use task dialog view association. Preventing crash (https://github.com/FreeCAD/FreeCAD/issues/16702)

* EditableDatumLabel: Use QPointer to prevent crash
2024-10-29 09:58:11 -05:00
wmayer 9c236af83f PD: Fix crash when pressing ESC on chamfer/fillet dialog 2024-07-22 10:53:31 -05:00
wmayer 3f49779dae Gui: Extend TaskDialog
* Add TaskDialog::autoClosedOnDeletedDocument()
* Add option to automatically close task dialog when document is deleted
* Expose autoClosedOnDeletedDocument() to Python
* Expose autoClosedOnTransactionChange() to Python
* Change ControlPy::showDialog() to directly return the task dialog wrapper
* Change TaskView::slotDeletedDocument() to close task dialog if requested
2024-07-10 08:43:43 +02:00
wmayer 6f76ccfb83 Gui: Restore previous width when closing task dialog
This fixes #11016
2024-05-20 11:35:59 -05:00
bgbsww 8baf75af84 Fix #11032 flickering when switching to Part Design
* Remove unneeded timer on taskview updates to fix #11032

* Remove obsoleted class member
2023-11-02 16:32:32 +01:00
Zheng, Lei bf9584a90b Gui: add support for transparent overlay docking widget 2023-10-11 09:58:53 +02:00
wmayer fdc44d50ef Gui: fixes #10724: TaskView gets truncated 2023-09-21 19:11:45 -05:00
wmayer c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +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
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
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
wmayer 2e5cb03261 Gui: move to new style connect() 2023-02-01 13:49:35 +01:00
wmayer b3372a5205 Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 15:53:18 +01:00
wmayer ff6f04dcc2 Gui: add class TaskDialogPy 2022-10-09 14:26:42 +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
berniev 656ef8961f Gui: redundant void 2 2022-08-08 10:21:44 +02:00
wmayer 9b2b0e0acf modernize C++: replace boost::function with std::function 2022-06-30 20:31:55 +02:00
wmayer 96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer 7ff834882e Gui: remove all leftovers of iisTaskPanel 2022-03-23 10:37:28 +01:00
Uwe 6c4acb6ea7 [Gui] Task: remove unused includes 2022-03-03 03:16:35 +01:00
wmayer 75dff5d947 Gui: [skip ci] add option to automatically close task dialog if undo/redo was pressed 2021-02-12 17:42:49 +01:00
wmayer 1e7929ba59 Gui: add virtual method 'closed' to TaskDialog that is called when deleting a dialog 2021-02-05 16:36:19 +01:00
Chris Hennes 9c9244dfb3 Guard against segfaults due to out-of-order dialog deletion 2021-02-05 15:38:24 +01: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
wmayer c01c1f7fde Sketcher: add option to disable leaving sketch with Esc button 2020-02-09 13:52:09 +01:00
Zheng, Lei 4141242e9d Gui: minor adjustment on command status update 2019-09-10 14:17:07 +02:00
wmayer 1dde7d6e81 fix possible crash on workbench change 2019-09-09 14:56:19 +02:00
wmayer 85da6c363d make Del shortcut working again in Sketch edit mode 2019-02-25 17:17:32 +01:00
wmayer 5f4deea7c9 fixes 0003794: Shortcut-Key is executed in edit field of a constraint (Combo View) 2019-02-16 21:53:23 +01:00
wmayer d0cd33b2b8 always close task panel with ESC button 2018-09-17 21:35:44 +02:00
luzpaz 56af703746 Fix Techdraw UI typo found via crowdin + misc. typos
Ref: https://crowdin.com/translate/freecad/27911/en-eu#6503377
2017-11-26 15:48:20 +01:00
Kunda 19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00