Commit graph

24 commits

Author SHA1 Message Date
Yann Lanthony
7eab289d30 [core] Graph: initial refactoring of graph loading API and logic
* API
Instead of having a single `load` function that exposes in its API
some elements only applicable to initializing a graph from a templates,
split it into 2 distinct functions: `load` and `initFromTemplate`.
Apply those changes to users of the API (UI, CLI), and simplify Graph
wrapper classes to better align with those concepts.

* Deserialization
Reduce the cognitive complexity of the deserizalization process
by splitting it into more atomic functions, while maintaining the
current behavior.
2025-02-06 16:46:04 +01:00
Candice Bentéjac
edfe872227 [ui] Homepage: Only request thumbnails update if Homepage is active view 2025-01-22 14:50:26 +01:00
Candice Bentéjac
73de823eb4 [ui] app: Add a slot to refresh the thumbnails of recent project files
When the list of recent project files is updated, there is no attempt
to retrieve its thumbnail as the update is said to be "minimal".

This minimal update is justified by the lack of use for the thumbnails
in the Application part of Meshroom. Thumbnails are only useful when
displaying the Homepage, hence their retrieval during Meshroom's
initialization. There is only a need to update them once we want to
display the Homepage again.

The Homepage thus requests an update of the thumbnails before setting
its model. If there have been some updates to the list of recent project
files, the reading of the QSettings is performed again and thumbnails
are retrieved whenever it is possible. Otherwise, nothing happens to
prevent useless readings.
2025-01-22 14:50:25 +01:00
Candice Bentéjac
f5be0aadb0 [ui] Homepage: Use correct Material font for list of projects 2024-11-25 14:32:14 +01:00
Candice Bentéjac
4873a98768 [ui] Homepage: Fix icon for "Support AliceVision" button 2024-11-25 11:50:29 +00:00
Candice Bentéjac
8eebe5ecb9 [qt6][qml] Homepage: Improve minimum width 2024-11-07 18:13:30 +01:00
Candice Bentéjac
54b59d0c5e [qt6][qml] Push Application on the stack before loading the project
This prevents crashes when the project is done loading but
`Application` is not yet ready.
2024-11-07 18:13:29 +01:00
Candice Bentéjac
0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Candice Bentéjac
0cddff19ed [ui] Homepage: Adjust the minimum width to correctly fit logos 2024-10-15 16:05:39 +02:00
Fabien Castan
88b3c52291 [ui] logos alignment 2024-09-20 22:48:21 +02:00
Fabien Castan
af3a5f7986 [ui] simplify homepage 2024-09-20 22:26:53 +02:00
Fabien Castan
2852a4cf19 [ui] Custom SplitView to have a larger handle 2024-09-19 20:39:43 +02:00
Aurore LAFAURIE
ccd88c4646 [ui] Replacement of Controls1 SplitView to Controls2 SplitView 2024-09-17 18:32:59 +02:00
Aurore LAFAURIE
eb3ac6cd50 [ui] Correct case for Open Project 2024-09-11 17:31:46 +02:00
Aurore LAFAURIE
ac5b02d0fe [ui/img] Add academic sponsors to homepage 2024-09-09 17:51:54 +02:00
Aurore LAFAURIE
f78efe69fb [ui] Open project from browser in homepage & quick adjustments
Modification of tooltips, ensure computing is false before going back to homepage...
2024-09-09 15:06:51 +02:00
Aurore LAFAURIE
1f28b5851d [Homepage] Change fontsizes and remove ratio for images
Small adjustments to have a better homepage
2024-09-02 15:06:27 +02:00
Candice Bentéjac
e8eeccded1 [ui] Homepage: Add QML elide to projects' labels and align them correctly 2024-08-29 18:39:33 +02:00
Aurore LAFAURIE
52c6bb7c46 [ui] Asynchronous load of thumbnails for Homepage 2024-08-29 18:39:33 +02:00
Fabien Castan
fe0d1f20f0 [ui] homepage: minor margins simplification 2024-08-26 21:41:26 +02:00
Candice Bentéjac
74271019b3 [ui] Homepage: Provide a URL for thumbnails instead of a string
This avoids getting some "Unknown 'c' protocol error".
2024-08-26 16:21:28 +02:00
Candice Bentéjac
2a8359939b [ui] Homepage: Handle padding computations during init phases
When the elements are being initialized, their sizes is not yet correctly
set. Since the paddings for the `MaterialToolLabelButtons` is computed
dynamically depending on other elements' size, we need to add safeguard
to ensure that the padding can never be larger than the container's size.
2024-08-26 16:21:28 +02:00
Aurore LAFAURIE
f326d45024 [ui] Better handling of thumbnails for Homepage
We need to check and create the thumbnail if it does not exist.
2024-08-26 16:21:27 +02:00
Aurore LAFAURIE
5b92df328f Implementation of Homepage 2024-08-26 16:21:26 +02:00