Commit Graph

577 Commits

Author SHA1 Message Date
Syres916
a38689b6fb [Start] add Tooltip to show full path when the ShortCustomFolder is true 2025-06-08 22:11:05 +02:00
Syres916
0622e5014f [Start] show the actual custom folder name...
...instead of 'Custom Folder'
2025-06-08 16:19:19 +02:00
Chris Hennes
6a5db43eb5 Merge pull request #21706 from 3x380V/fix_start
Start: Fix crash
2025-06-02 09:45:09 -05:00
Yorik van Havre
94144ecd99 Translations: Merged crowdin translations 2025-06-02 11:48:26 +02:00
Yorik van Havre
bba4a7b990 Translations: updated ts files 2025-06-02 11:07:28 +02:00
wmayer
2fa65a5539 Start: Fix possible crash when opening Start page
Procedure to trigger the crash:
* Create a document
* Create a spreadsheet and open it
* Close the 3D view
* Open the Start page
* It may or may not crash but the program is in an undefined state

The reason of the crash is caused by an inappropriate use of static_cast.
This bug is caused by PR 17152.

To fix the crash use dynamic_cast instead. If the cast fails it returns
a null pointer instead of a dangling pointer.
2025-06-02 08:22:28 +02:00
Alfredo Monclus
0624d67fe0 Start: fix thumbnails not keeping aspect ratio 2025-05-29 15:00:37 +02:00
Ladislav Michl
d680de81c0 Start: fix restoring of user saved Unit schema
This is partially reverting change done in 1155f0d752.

Fixes: 1155f0d752 ("Base: simplify UnitsSchemas management")
2025-05-20 19:46:02 +02:00
bofdahof
998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
bofdahof
1155f0d752 Base: simplify UnitsSchemas management
Fixes: Maintaining schemas is difficult and error-prone

- Facilitate easy schemas add, remove, change, etc.
- Remove 14 files containing approx 2,190 lines of if/else code and data
- Place data in one file (UnitsSchemasData.h) using a normalized structure (including special functions)
- Isolate and simplify data operations (code)
- Remove schemas enum to keep data independent of code
- Separate responsibilities: Specifications, data, schemas, schema
- Add schema data 'isDefault'
- Add schema data name
- Prefer algorithms to raw loops
- Add schemas unit tests
- Tweak quantity unit tests
2025-04-27 00:45:54 +02:00
Chris Hennes
4428ba3bf2 Start: Apply reviewer suggestion
Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>
2025-04-21 21:21:52 +02:00
Chris Hennes
42cd4d76f2 Start: Refactor f3d to use worker threads 2025-04-21 21:21:52 +02:00
Adrian Insaurralde Avalos
da35868b96 Start: refactor f3d previews, use caching and configurable f3d path 2025-04-21 21:21:52 +02:00
MaxiV
c8411bdbba Start: Switch to using QProcess, not std::system 2025-04-21 21:21:52 +02:00
MaxiV
a2055d7b90 Start: add f3d previews 2025-04-21 21:21:52 +02:00
Furgo
4bb372ef87 Start: set specific zoom level for new BIM projects (#20271)
* Gui: allow viewDefaultOrientation function to accept the None value, as per the docstring

* Start, BIM: set specific zoom level for new BIM projects
2025-03-25 09:36:43 +01:00
Kacper Donat
2a81e9d18d Merge pull request #20216 from alfrix/start_fixes_5
Start: fix newbuttons vertical sizing
2025-03-23 17:10:19 +01:00
Alfredo Monclus
45ddcf8317 start: fix file cards not respecting styling 2025-03-22 18:59:11 +00:00
Alfredo Monclus
2513c056d6 start: fix newfilebuttons sizehint and split it into it's own widget 2025-03-22 15:52:55 -03:00
Alfredo Monclus
1ba9e693bd start: modify the flowlayout to have homogeneous rows 2025-03-22 15:39:46 -03:00
tritao
6c2c6847eb CMake: Cleanup targets with transitive dependencies 2025-03-17 12:12:06 +00:00
Alfredo Monclus
eb7d85605a start: fix listview height alwasys being too small 2025-03-07 00:07:11 -03:00
Chris Hennes
e12dd64d06 Merge pull request #19901 from alfrix/start_fixes_1
Start: fix text visbility
2025-03-06 17:32:31 +00:00
Furgo
59ddb94aba Start: enable multiple custom folder paths
* Update tooltip to indicate support for multiple custom folder paths
* Remove migration step that worked around lack of multiple folder support
* Remove obsolete migration method
* Address linter warnings: build/include_what_you_use
* Add QStringList as requested on https://github.com/FreeCAD/FreeCAD/pull/19948/files#r1982267583
2025-03-06 10:13:40 +01:00
Alfredo Monclus
ed8e8ae774 start: simplify cardspacing 2025-03-05 13:24:07 -03:00
Alfredo Monclus
635839029f start: fix filecard text visibility on classic theme also fixes hover and pressed states 2025-03-05 13:23:39 -03:00
Alfredo Monclus
ce2cae5bc3 start: fix new file button layout size
fixes #15758
2025-03-05 13:23:28 -03:00
Alfredo Monclus
cfb1197fc0 start: fix visibility by removing hardcoded styling from newfile buttons
this allows the new file buttons to change from light to dark dynamically
2025-03-05 13:23:00 -03:00
Chris Hennes
90e0b21422 Merge pull request #19932 from alfrix/start_fixes_2
Start: fix fileview use scrollbars as needed
2025-03-05 00:01:57 +00:00
Chris Hennes
d4b97db9ab Merge pull request #19928 from furgo16/startpage-option-showonlyfcstd
Start: add option to show only FreeCAD native files in custom folder
2025-03-04 23:59:50 +00: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
Alfredo Monclus
1b755ab29d start: fileview use scrollbars as needed
if for whatever reason the viewport failed to resize let qt add the scrollbars
2025-03-02 05:49:08 -03:00
Furgo
cf2e0e06b9 Start: add option to show only FCStd files to the preferences dialog 2025-03-02 07:41:28 +01:00
Furgo
779e1efa55 Start: add option to show only FreeCAD native files in custom folder 2025-03-02 06:44:54 +01:00
Chris Hennes
18ea2bf9d5 Merge pull request #19918 from furgo16/startpage-prefs
Start: add initial preferences page
2025-03-02 01:04:49 +00:00
Furgo
7a0fba1294 Move CustomFolder parameter migration to more appropriate location 2025-03-02 01:04:19 +00:00
Furgo
e23249ff45 Remove dead code 2025-03-01 20:11:59 +01:00
Furgo
4abbbe2adb Use the correct file chooser mode for folders, update tooltip 2025-03-01 01:31:07 +01:00
Furgo
a1f01bfd3b Add icon for Start page preferences tab 2025-03-01 01:10:36 +01:00
Furgo
77e75fec01 Add initial preferences page for Start 2025-02-28 19:10:46 +01:00
Benjamin Bræstrup Sayoc
755229df23 Build: suppress warnings from 3rd party libraries
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.

https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00
Joao Matos
cc6ffb44de Core: Move PyCXX library to src/3rdParty. 2025-02-24 16:36:06 +00:00
Benjamin Bræstrup Sayoc
dda05369c4 Base: remove unneeded includes 2025-02-18 11:07:57 -06: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
Furgo
2e07d3be95 Start: add optional custom folder view (#19473)
* Start: add optional additional folder view

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

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

* Added logic to migrate ShowCustomFolder parameter

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

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

* Rename Additional to Custom folder

* Change Start page text to sentence case for consistency

* Fix breakage created by pre-commit.ci

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

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

* Rearrange migration logic to make it more explicit

* Revert "Change Start page text to sentence case for consistency"

This reverts commit 8a31a1238c0380ddbe13e6e5838a3be6b13400a5.

* Make parameterGroup local

* Apply suggestions and linter improvements

* Adapted suggestion to simplify migration logic

* Start: Warning -> Message for rename of ShowCustomFolder

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-02-17 10:18:35 -06:00
Joao Matos
27ebc68a11 CMake: Modernize build files using outdated Python variables. 2025-02-16 10:21:26 -06:00
tritao
9636068460 Base: Move zipios library to 3rdParty folder. 2025-02-14 13:08:28 -06:00
Benjamin Bræstrup Sayoc
b5517aa9f4 Start: Use QStringLiteral 2025-02-10 18:32:45 +01:00
tritao
48f0f07176 Gui: Reorganize the navigation files into a top Navigation folder. 2025-02-05 20:21:00 -06:00
Mark Ganson TheMarkster
48c1d309dd [Start page] Implement ShowExamples parameter (#19376)
* [Start page] Implement ShowExamples parameter
2025-02-05 20:01:54 -06:00