Commit Graph

461 Commits

Author SHA1 Message Date
Chris Mayo
b509511f44 Start: Allow system Microsoft GSL to be used 2024-04-24 14:23:21 -05:00
Chris Hennes
c20d4b31c1 Merge pull request #13604 from wwmayer/fix_new_start_page
Start: Fix new start page
2024-04-24 13:57:36 -05:00
wmayer
839c1bd801 Start: Fix memory leak
* Set parent object to FileCardDelegate so that it will be destroyed if the list view is destroyed
* Inside FileCardDelegate::paint() delete the widget
2024-04-24 15:00:15 +02:00
wmayer
bfe81650c2 Start: make compound widget in FileCardDelegate::paint() more flexible for Qt style sheets 2024-04-24 10:29:12 +02:00
wmayer
54f6d00833 Start: Add QApplication to PreCompiled.h 2024-04-24 08:22:35 +02:00
Bas Ruigrok
24657494c9 Start: Fix migration script 2024-04-23 19:03:22 -05:00
wmayer
ed1dbd4b95 Start: replace QGridLayout with FlowLayout 2024-04-23 23:53:52 +02:00
wmayer
4860462936 Start: add dynamic layout FlowLayout 2024-04-23 23:53:03 +02:00
wmayer
ce11192445 Start: Make the new StartPage look more like the old one
Use style sheets to give visual feedback about hovered or clicked buttons & labels
2024-04-23 16:00:10 +02:00
wmayer
1c5d10ff71 Start: Add command Start_Start only once
This fixes an error message that the command is duplicated. And it fixes a memory leak
2024-04-23 12:04:21 +02:00
wmayer
003cbb2020 Start: do not try to open empty file name 2024-04-23 11:53:52 +02:00
Chris Hennes
e0debb03ca Start: Cleanup and minor bugfixes
Start: Remove QML include
Start: Eliminate errors on unreadable images
Start: Ensure command succeeded
Start: Correct startup WB
Also re-enable the migrator, which was not the culprit.
Gui: Roll back unneeded NoneWorkbench changes
2024-04-21 22:27:50 -05:00
Chris Hennes
bbf9192fc7 Start: UX refinements
Start: Automatically run command when event loop starts
Also sets PartDesign as the default startup Workbench.
Start: Add checkbox for starting or not starting Start
Start: Correct default card size parameter access
Start: General cleanup
2024-04-21 22:27:50 -05:00
Chris Hennes
7742832df3 Start: Migrate settings from Workbench to Command 2024-04-21 22:27:50 -05:00
Chris Hennes
cfb0873d38 Start: Migrate to simple command 2024-04-21 22:27:50 -05:00
Chris Hennes
d0a87d3e0c Start: Remove old WB and replace with new 2024-04-21 22:27:50 -05:00
Chris Hennes
6d504a0351 Update translations. 2024-04-17 16:50:38 -05:00
Chris Hennes
b93c02e07d Precommit: formatting fixes after Black update 2024-04-04 23:24:37 -05:00
Chris Hennes
af131413c5 Update translations 2024-03-25 18:08:22 -05:00
Chris Hennes
47df83c4db Translation update: move Path to CAM 2024-03-25 17:32:59 -05:00
qewer33
e839733d59 closes #12989; Re-arrange Start Page template buttons 2024-03-16 10:43:57 +03:00
Yorik van Havre
1e164f24c0 Translations (#12748)
* Updated ts files

* Merged crowdin 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-03-05 08:54:36 -06:00
Chris Hennes
b6c8f8d460 Update translations 2024-02-29 17:25:46 -06:00
Chris Hennes
1e487c3346 Merge pull request #12506 from Ondsel-Development/assemblyExample
Assembly: add example file and new file template
2024-02-26 11:02:24 -06:00
Chris Hennes
7f8d6e2bb1 Update translations (#12557)
* 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-02-24 21:38:37 -06:00
Adrián Insaurralde Avalos
21bcb052ad Add assembly template to startpage 2024-02-21 01:43:16 -03:00
Yorik van Havre
638e398bec Crowdin translations (#12313)
* updated ts files

* merged crowdin 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-02-12 11:59:08 -06:00
Chris Hennes
1d2186b7d6 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
pre-commit-ci[bot]
66f172ab4b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-20 09:27:37 +01:00
Yorik van Havre
a679c8b818 merged crowdin translations 2023-12-20 09:27:37 +01:00
Yorik van Havre
f78959fab3 Updated ts files 2023-12-20 09:27:37 +01:00
Syres916
fc38f35220 [Start] Fix regression from d565796f96
for runtime error see https://github.com/FreeCAD/FreeCAD/pull/11513#issuecomment-1837300296
2023-12-04 10:43:37 +01:00
Yorik van Havre
3ade39ccf1 Translations (#11551)
* Updated ts files

* merged crowdin 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>
2023-11-27 11:29:38 -06:00
Yorik van Havre
d565796f96 Start: Allow dynamic translation of start page (#11513)
* Allow dynamic translation of start page - fixes #9996
* [pre-commit.ci] auto fixes from pre-commit.com hooks
2023-11-27 11:06:27 -06:00
Chris Hennes
90dc4aeb13 Update translations 2023-11-20 13:46:22 -06:00
tmksw
b8d529466d [Start WB] extend file info in MRU tooltip (#11450) 2023-11-20 14:21:12 -03:00
Yorik van Havre
0e939872f4 Start: Fixed default time format - fixes #10793 2023-11-10 14:10:43 +01:00
Chris Hennes
954c2fa03f Update translations 2023-11-09 12:23:56 -06:00
DeflateAwning
8de6db3e97 Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
DeflateAwning
c847a3d516 Change http to https in SVGs
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Include: *.svg
2023-10-29 22:32:59 -06:00
wmayer
2bd89e5771 Start: fixes #10221: /tmp/FreeCADStartThumbnails* directories are not removed when FreeCAD terminates
The commit adds some new functions:

* getThumbnailDir()
  Returns the path to the thumbnail directory which is a sub-directory of the Cache directory.
  There is no need to always create a unique directory after each restart because it doesn't harm
  if the thumbnail directoy contains deprecated files.

* createThumbnailDir()
  Creates the thumbnail directoy if it doesn't exist yet.

* getSha1Hash
  Helper function to compute a SHA-1 hash of a given path. If the same path is passed
  then the hash value will be the same.
  This way it can be avoided to create a different image file from a project file
  after each restart.

* getUniquePNG
  Computes the path of a PNG image file for a given project file. It's also possible
  to pass an arbitrary string as argument.

* useCachedPNG
  If the PNG image exists and if it's newer than the project file True is returned
  and False otherwise.

The changes in detail are:
1. For a given project file it is checked if the thumbnail directory already contains
   a cached image. If it's newer than the project file it will used, otherwise it will
   be re-created.

2. For the system icon to a given file format it is only checked if the icon already exists.
   If yes, it will be used.
2023-10-09 13:54:11 +02:00
wmayer
0398716487 Gui: fixes #10807: By default keep the old tabulated layout of ComboView and TaskView 2023-09-30 17:33:33 +02:00
Chris Hennes
5dfd4d5190 Update translations 2023-09-29 22:57:37 -05:00
Roy-043
2257f3291c Start: use Gui::FileChooser::Directory where applicable 2023-09-22 20:14:57 +02:00
Chris Hennes
730d471fb1 Update translations 2023-09-19 22:25:14 -05:00
Yorik van Havre
1b5565ea9f Merge pull request #10535 from Syres916/Py_311_Unicode_Fix
[Start] Fix Python 3.11 Unicode Errors
2023-09-13 11:41:53 +02:00
pre-commit-ci[bot]
222a2520b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
Chris Hennes
857ddacb6e Update translations (#10613)
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
Roy-043
22ea529925 Start: Improve "Switch workbench after loading" tooltip
Make it clearer that this property is different from the "Start up workbench".
2023-09-07 09:39:08 -05:00
pre-commit-ci[bot]
a849f752bc [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-04 17:32:18 +00:00