Commit Graph

104 Commits

Author SHA1 Message Date
30c2c3b901 add type-hints on cfd_file_operations, cfd_app_config, animated_icon 2025-08-10 12:04:34 +02:00
5a41d6b1fd add doctring and typhint in custom_file_dialog and add type-hints on cfd_view_manager, cfd_ui_setup, cfd_settings_dialog, cfd_search_manager, cfd_navigation_manager 2025-08-10 11:57:43 +02:00
4e7ef8d348 add docstring in cfd_ui_setup, cfd_view_manager 2025-08-10 11:33:19 +02:00
14a50616a3 add dochstring in cfd_file_operations, cfd_navigation_manager, cfd_search_manager, cfd_settings_dialog and fix entryfield on create new folder and new document in iconview 2025-08-10 11:16:48 +02:00
246addc34b add docstrings in animated_icon and cfd_app_config.py 2025-08-10 10:38:45 +02:00
b18bf7fe85 translate strings place in cfd_app_config and replace unhide with new size 2025-08-10 01:26:57 +02:00
b8d46fb547 Refactor: Decompose CustomFileDialog class
The `CustomFileDialog` class had become too large and complex, making it difficult to maintain.

This change refactors the monolithic class into several specialized manager classes, each responsible for a specific area of concern:

- `SettingsDialog`: Moved to its own file, `cfd_settings_dialog.py`.
- `FileOperationsManager`: Handles file/folder creation, deletion, and renaming.
- `SearchManager`: Encapsulates all search-related logic.
- `NavigationManager`: Manages directory navigation and history.
- `ViewManager`: Controls the rendering of file and folder views.

The main `CustomFileDialog` class has been streamlined and now acts as an orchestrator for these managers. This improves readability, separation of concerns, and the overall maintainability of the code.
2025-08-09 11:51:58 +02:00
d392e1e608 add blink animation 2025-08-09 10:39:59 +02:00
f06d1b6652 fix all search problems 2025-08-09 10:16:51 +02:00
f47f18d48c commit 83 2025-08-09 02:13:13 +02:00
497978ef95 commit 82 2025-08-09 01:50:41 +02:00
7956d4e393 commit 81 2025-08-09 01:36:30 +02:00
cb6c513622 commit 80 2025-08-09 01:22:50 +02:00
2f504658a3 commit 79 2025-08-09 00:40:45 +02:00
cef383ca74 commit 78 2025-08-09 00:32:57 +02:00
287ebfd1d0 commit 77 2025-08-09 00:23:25 +02:00
11bcf5cc7a commit 76 search works 2025-08-09 00:00:08 +02:00
9e495cc73c commit 75 2025-08-08 22:39:36 +02:00
482eaae591 commit 74 2025-08-08 19:36:42 +02:00
43ac132ec8 commit 73 2025-08-08 15:28:54 +02:00
de1cc4a03d commit 72 2025-08-08 14:56:53 +02:00
f6d86d7e42 commit 71 2025-08-08 13:59:23 +02:00
fda52d52d4 commit 70 2025-08-08 13:53:40 +02:00
2e934c62e4 69 2025-08-08 13:23:21 +02:00
3d2ffcc69e commit 68 2025-08-08 12:13:02 +02:00
053b0c22c5 commit 67 2025-08-08 00:55:32 +02:00
9c2b72345c commit 66 2025-08-07 19:06:06 +02:00
e5d10dded6 commit 65 2025-08-07 16:16:07 +02:00
b1bd928a76 commit 64 2025-08-07 11:37:03 +02:00
e059efc1cf commit 63 2025-08-07 11:28:50 +02:00
aae8f4431a commit 62 2025-08-07 02:36:01 +02:00
1d6137ed44 commit 61 2025-08-07 00:35:37 +02:00
b71e1cc79c commit 60 2025-08-07 00:30:14 +02:00
bbfdc3efac commit 59 2025-08-06 23:49:16 +02:00
84c5405df7 commit 58 2025-08-06 22:12:22 +02:00
1168ea8ecf feat(ui): Adjust button layout for open/save modes
Modified the button layout methods to place the primary action button (Open/Save) at the top and the Cancel button at the bottom of their respective containers.

This creates a more consistent and predictable user experience across all dialog modes and view settings.
2025-08-06 17:58:14 +02:00
a8a55574f5 refactor(ui): Decompose sidebar setup into smaller methods
Further refactored the _setup_sidebar method by breaking it down into smaller, more focused methods: _setup_sidebar_bookmarks, _setup_sidebar_devices, and _setup_sidebar_storage.

This completes the modularization of the UI setup, resulting in a highly organized and maintainable WidgetManager class.
2025-08-06 15:33:37 +02:00
9252b0d23f Revert "refactor(ui): Decompose sidebar setup into smaller methods"
This reverts commit 2e6eb57b55.
2025-08-06 15:16:37 +02:00
2e6eb57b55 refactor(ui): Decompose sidebar setup into smaller methods
Further refactored the _setup_sidebar method by breaking it down into smaller, more focused methods: _setup_sidebar_bookmarks, _setup_sidebar_devices, and _setup_sidebar_storage.

This completes the modularization of the UI setup, resulting in a highly organized and maintainable WidgetManager class.
2025-08-06 12:13:15 +02:00
b170b4094e refactor(ui): Modularize UI setup into distinct methods
Further refactored the WidgetManager class by extracting the setup logic for the top bar and the sidebar into their own dedicated methods: _setup_top_bar and _setup_sidebar.

This simplifies the main setup_widgets method into a high-level blueprint, significantly improving code organization and readability.
2025-08-06 12:07:14 +02:00
29480a0096 refactor(ui): Encapsulate bottom bar setup in its own method
To improve readability and reduce the size of the main setup_widgets method, the logic for creating and laying out all widgets in the bottom bar has been extracted into a new _setup_bottom_bar method.
2025-08-06 11:38:15 +02:00
f21d09c6a6 refactor(ui): Separate bottom bar layout logic into methods
Extract the layout logic for the different dialog modes (save/open) and button positions (left/right) into dedicated methods within the WidgetManager class.

This improves readability and maintainability, making future changes easier and less error-prone.
2025-08-06 11:20:34 +02:00
c8db431c06 commit 57 2025-08-05 18:29:58 +02:00
160d8acafb disable new folder, new document works in open mode 2025-08-05 13:01:30 +02:00
f2b6c330fa commit 55 2025-08-05 10:14:09 +02:00
3005d17f03 Fix on save mode bottom entry autosize 2025-08-04 13:16:12 +02:00
17fe3455b8 Bottom Buttons UI ok 2025-08-04 12:21:18 +02:00
d20a941c8c commit 54 2025-08-03 23:53:22 +02:00
0e280e30e2 commit 53 2025-08-03 23:35:48 +02:00
6f9a7c922c commit 52 2025-08-03 23:34:04 +02:00