Commit Graph

578 Commits

Author SHA1 Message Date
Max Wilfinger
a1aaa15733 Start: Update UI strings for consistency 2025-06-29 11:27:43 -05:00
Syres916
3eb160ac87 [Start] add Tooltip to show full path when the ShortCustomFolder is true 2025-06-08 22:11:05 +02:00
Syres916
39f8d8ef64 [Start] show the actual custom folder name...
...instead of 'Custom Folder'
2025-06-08 16:19:19 +02:00
Chris Hennes
b83dfa2ae7 Merge pull request #21706 from 3x380V/fix_start
Start: Fix crash
2025-06-02 09:45:09 -05:00
Yorik van Havre
640642eed2 Translations: Merged crowdin translations 2025-06-02 11:48:26 +02:00
Yorik van Havre
26e16765b0 Translations: updated ts files 2025-06-02 11:07:28 +02:00
wmayer
a88623ff24 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
a46dfd3213 Start: fix thumbnails not keeping aspect ratio 2025-05-29 15:00:37 +02:00
Ladislav Michl
34768d41b2 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
ba2c2ca5ad Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
bofdahof
353acbb27b 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
b2e3659efe Start: Apply reviewer suggestion
Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>
2025-04-21 21:21:52 +02:00
Chris Hennes
71932ac724 Start: Refactor f3d to use worker threads 2025-04-21 21:21:52 +02:00
Adrian Insaurralde Avalos
5635c41ed5 Start: refactor f3d previews, use caching and configurable f3d path 2025-04-21 21:21:52 +02:00
MaxiV
5f3c1aa5e8 Start: Switch to using QProcess, not std::system 2025-04-21 21:21:52 +02:00
MaxiV
55dd1f875d Start: add f3d previews 2025-04-21 21:21:52 +02:00
Furgo
6864ac4e0d 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
3454a5938e Merge pull request #20216 from alfrix/start_fixes_5
Start: fix newbuttons vertical sizing
2025-03-23 17:10:19 +01:00
Alfredo Monclus
8fb23b9117 start: fix file cards not respecting styling 2025-03-22 18:59:11 +00:00
Alfredo Monclus
87b3052572 start: fix newfilebuttons sizehint and split it into it's own widget 2025-03-22 15:52:55 -03:00
Alfredo Monclus
b4afa87042 start: modify the flowlayout to have homogeneous rows 2025-03-22 15:39:46 -03:00
tritao
cdab9c7837 CMake: Cleanup targets with transitive dependencies 2025-03-17 12:12:06 +00:00
Alfredo Monclus
76f24d57ab start: fix listview height alwasys being too small 2025-03-07 00:07:11 -03:00
Chris Hennes
4eeca37bf3 Merge pull request #19901 from alfrix/start_fixes_1
Start: fix text visbility
2025-03-06 17:32:31 +00:00
Furgo
40fe023c26 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
48adc41817 start: simplify cardspacing 2025-03-05 13:24:07 -03:00
Alfredo Monclus
eae8aec93d start: fix filecard text visibility on classic theme also fixes hover and pressed states 2025-03-05 13:23:39 -03:00
Alfredo Monclus
e4a14871f5 start: fix new file button layout size
fixes #15758
2025-03-05 13:23:28 -03:00
Alfredo Monclus
be08a2fd45 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
e4e957f273 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
7fd0eff512 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
1a2070c36f 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
d9e101cdb4 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
6663e9aa67 Start: add option to show only FCStd files to the preferences dialog 2025-03-02 07:41:28 +01:00
Furgo
3f1204d212 Start: add option to show only FreeCAD native files in custom folder 2025-03-02 06:44:54 +01:00
Chris Hennes
b85dc0c2e7 Merge pull request #19918 from furgo16/startpage-prefs
Start: add initial preferences page
2025-03-02 01:04:49 +00:00
Furgo
6442ad581e Move CustomFolder parameter migration to more appropriate location 2025-03-02 01:04:19 +00:00
Furgo
a4bf8b5194 Remove dead code 2025-03-01 20:11:59 +01:00
Furgo
05e1f49370 Use the correct file chooser mode for folders, update tooltip 2025-03-01 01:31:07 +01:00
Furgo
463d2025ec Add icon for Start page preferences tab 2025-03-01 01:10:36 +01:00
Furgo
3942ec7794 Add initial preferences page for Start 2025-02-28 19:10:46 +01:00
Benjamin Bræstrup Sayoc
ee1c73cd04 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
15076cb504 Core: Move PyCXX library to src/3rdParty. 2025-02-24 16:36:06 +00:00
Benjamin Bræstrup Sayoc
6f619b5f1c Base: remove unneeded includes 2025-02-18 11:07:57 -06:00
Kacper Donat
13fbab9e42 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
226f67a1e8 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
aace8f7bee CMake: Modernize build files using outdated Python variables. 2025-02-16 10:21:26 -06:00
tritao
80b299bb88 Base: Move zipios library to 3rdParty folder. 2025-02-14 13:08:28 -06:00
Benjamin Bræstrup Sayoc
e2baa03d24 Start: Use QStringLiteral 2025-02-10 18:32:45 +01:00
tritao
02ab2deac7 Gui: Reorganize the navigation files into a top Navigation folder. 2025-02-05 20:21:00 -06:00