Commit Graph

5162 Commits

Author SHA1 Message Date
Kacper Donat
cde5e00045 Gui: Reset scroll position after preference page change
As every page is contained in the same QScrollArea we must ensure that
after page is changed the scrolled area is scrolled back to top-left
corner.

Fixes: #11981
2024-01-14 20:19:48 -06:00
Syres916
8956452577 [Gui] Fix Status Bar Tooltip Visibility 2024-01-13 09:15:18 -06:00
Paddle
fe3437d8c4 Property editor: Hide headers and enable resizing on all cells. 2024-01-09 19:50:20 -06:00
Rexbas
317e8388ea Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style 2024-01-08 12:31:00 -05:00
sliptonic
4e22766a26 Merge pull request #11840 from maxwxyz/precise-toggle-command-description
Change the description of the default 'Toggle active object' command
2024-01-08 11:29:01 -06:00
sliptonic
b67b15fb21 Merge pull request #11750 from realthunder/FixActiveBody
Fix object path in active object when creating new body in App::Part
2024-01-08 10:47:45 -06:00
Max Wilfinger
44dfb959dc add placement command to context menu 2024-01-05 19:14:02 -06:00
Chris Hennes
74cdb9cae3 Merge pull request #11841 from Rexbas/navigation-context-menu-fixes
Right click context menu fixes
2024-01-05 10:03:57 -06:00
Kacper Donat
537d153173 Gui: Allow narrower preferences dialog
This commit introduces optional horizontal scrollbar, looses up the minimum size applied to dialog and narrows a dialog a little bit by default.
2024-01-05 09:46:16 -06:00
bdieterm
ddcf247489 Gui: fix ignored default shape color 2024-01-05 09:27:28 -06:00
Chris Hennes
fce7dea6f7 Update translations (#11886)
* Update translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 09:27:18 -06:00
Max Wilfinger
0652666321 use checkbox in menu item to display current object state and refactor the code 2023-12-28 11:30:49 +01:00
Rexbas
eafa1e519f Gui: Set processed true when right mouse released and hasDragged in TinkerCAD style 2023-12-27 15:30:10 +01:00
Rexbas
e7dbe221c1 Gui: Set processed true when right mouse released and hasPanned in OpenSCAD style 2023-12-27 15:29:57 +01:00
Max Wilfinger
a32d3b1046 Change the description of the default 'Toggle active object' command in the right click menu based on the current state of the selected object. 2023-12-27 09:10:30 +01:00
Rexbas
3e21fb9626 Gui: Only show context menu if not dragged in TinkerCAD navigation style 2023-12-26 22:03:02 +01:00
Rexbas
be09701e8b Gui: Show context menu on right click in OpenSCAD navigation style if not panned 2023-12-26 12:00:20 +01:00
Roy-043
7ef98b14d3 Gui: sWhatsThis for Std_MacroStepInto 2023-12-22 20:31:15 +01:00
Yorik van Havre
651fc54a8c merged crowdin translations 2023-12-20 09:27:37 +01:00
Yorik van Havre
1f65348080 Updated ts files 2023-12-20 09:27:37 +01:00
Yorik van Havre
1942891156 Restored deleted explanatory code 2023-12-19 14:26:05 +01:00
mos
243acce4e6 Removed redundant float casts
fix cast promotions
2023-12-19 14:26:05 +01:00
Kacper Donat
34c85e26da Gui: Allow ActionGroups to not remember choice
This is fix to issue mentioned in the #11717, on discord and forum that
for smart dimension tool the chosen tool should not be remembered. This
will ensure that the "smart" tool is always visible on the toolbar and
other tools are accessible in case that such explicit choice is needed.
2023-12-18 17:51:48 +01:00
Zheng, Lei
15e42a9b87 Gui: fix group visibility toggle
Fixes #9277
2023-12-18 17:20:45 +01:00
Stanislav Meduna
8428b90c14 fix compatibility with current Mac 3Dconnexion driver 2023-12-18 00:15:52 -06:00
Zheng, Lei
b27625a639 Gui: deduce object path when setting active object 2023-12-17 21:27:25 +08:00
hlorus
f0f9e81f88 Simplify dragging of App::AnnotationLabel (#11602)
* ViewProviderAnnotationn: Always allow dragging

Removes the editmode

* ViewProviderAnnotation: Use the label as transformation handle

* ViewProviderAnnotationn: Always allow dragging

Removes the editmode

* ViewProviderAnnotation: Use the label as transformation handle

* ViewProviderAnnotation: Hide dragger feedback during translation

---------

Co-authored-by: WandererFan <WandererFan@gmail.com>
2023-12-11 14:18:27 -05:00
Roy-043
53ff79215c Gui: MarkerBitmaps fix DIAMOND_FILLED_20_20
Also made DIAMOND_FILLED_25_25 sharper.

See: https://github.com/FreeCAD/FreeCAD/pull/11524#issuecomment-1847906082
2023-12-11 18:23:41 +01:00
sliptonic
6ed5d3bc8b Merge pull request #11670 from mwganson/macroexecute
[Core][MacroExecuteDialog]File chooser should be folder chooser for s…
2023-12-11 11:10:28 -06:00
André Caldas
89dbab9b0e Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Abdullah Tahiri
56377cd09e NotificationArea: Fix Lints 2023-12-09 11:06:04 +01:00
Abdullah Tahiri
a63540e845 Notification Area: Group same message under a single line
=========================================================

issue #11183

Feature request.

Instead of repeating over and over again the same message, indicate the number of consecutive repetitions in a single message.
2023-12-09 11:06:04 +01:00
Syres916
94b201309e [TechDraw] Collect doc info to fill template fields 2023-12-07 19:55:01 -05:00
mwganson
2ee3138233 [Core][MacroExecuteDialog]File chooser should be folder chooser for selecting user macro directory 2023-12-06 12:34:13 -06:00
David Carter
3dd6a67804 Material: Material editor enhancements
Continues the work of the material subsystem improvements.

This merge covers the continued development of the material editor. The
primary improvements are the addition of new data types, a new
appearance preview UI, and changes in the array data types.

New data types were added to support more advanced workflows, such as
the Render Workbench.The Image datatype allows the material to embed
the image in the card instead of pointing to an image in an external
file. Multi-buyte strings span multiple lines as the name implies.
It preserves formatting accross those lines. Also several list types
are now supported, with the primary difference being the editors.
List is a list of strings, FileList is a list of file path names, and
ImageList is a list of embedded images.

For the appearance preview, the UI now uses the same Coin library as
is used in the documents, meaning the preview will look exactly the
same as the material will be shown in the documents.

The array data types are now more complete. The default value wasn't
being used as originially envisioned and was tehrefore removed. For
3D arrays, the Python API was implemented.

There were a lot of code clean ups. This involved removing logging
statements used for debugging during development, reduction of lint
warnings, and code refactoring.

The editor can automatically convert from previous format files to the
current format. This has been extended to material files generated by
the Render WB. Old format files are displayed in the editor with a
warning icon. Selecting one will require saving the file in the new
format before it can be used.
2023-12-06 08:48:34 -06:00
bgbsww
c2bab7a2fa Move the unit schema into Project Information and remove all Project Unit System code (#11266)
* Add unit system to Project Information and store with document.

* Remove the project unit system

* Restore correct document activation signalling to fix test fail

* Remove commented out dead lines

* Restore ignore option for project unit schemas

* Whitespace fix

* Refresh after changing units

* Remove field label

* Property editor changes applied to unit system
2023-12-04 13:04:53 -06:00
Kacper Donat
5f97079a33 Gui: Cap starting height of Preferences dialog
This commit ensures that preference windows does not start taller than available geometry.
2023-12-04 11:03:35 -06:00
wmayer
f8c3e5505a Gui: fix several lint warnings 2023-12-04 10:53:51 -06:00
wmayer
e8d6955908 Gui: refactor FCSphereSheetProjector 2023-12-04 10:53:51 -06:00
Bas Ruigrok
ea8b5b4b39 Gui: Add a separate checkbox for enabling spinning animations (#11534)
* Gui: Create group box for animation preferences

* Gui: Add spinning animation checkbox

* Gui: Implement isAnimating() for NavigationAnimator

* Gui: No need to enable animations in DemoMode

The spin animation is played regardless of the user preference and does not need to be enabled before starting the spin animation

* Gui: Change comment
2023-12-04 10:50:29 -06:00
Chris Hennes
b70eb6a173 Merge pull request #11507 from Ondsel-Development/constr_primitives
[Sketcher] Improve angle & radius constraint rendering
2023-12-04 10:48:20 -06:00
MisterMaker
48d4a74923 [Stylesheets] Fix for new settings menu (#11609)
It can probably use some more tweaks but this way it is bug free.
2023-12-04 11:44:05 -03:00
bdieterm
2c5e1a9382 Gui: fix partially initialized default transparency 2023-12-01 12:36:31 +01:00
Kacper Donat
afd72f3585 Gui: Add ability to easily lock Toolbars from UI
This adds the Std_ToggleToolBarLock action mentioned in #4992. It is
exposed in the context menu of toolbar and also in the view -> toolbars
app menu.
2023-12-01 12:13:43 +01:00
wmayer
0b86976bf4 Gui: simplify Application::sGetMarkerIndex 2023-11-30 15:26:43 +01:00
luzpaz
5c21351608 Fix various typos 2023-11-30 14:58:06 +01:00
wmayer
3214ca644f Gui: fix several lint warnings 2023-11-29 21:10:49 +01:00
Syres916
b00cca788d [Gui] Add HourGlass markers including larger sizes 2023-11-28 23:55:10 +01:00
Paddle
aa9708b46e Core: Hide macro toolbar by default. 2023-11-28 23:46:29 +01:00
wmayer
19dfea4783 MSYS: fix broken Qt6 build using MinGW & clang 2023-11-28 19:11:58 +01:00