Commit Graph

133 Commits

Author SHA1 Message Date
0d3eff772e fixes and update on animated icon contexmanager gitea and menu_bar 2025-08-13 22:21:03 +02:00
864ad63bf8 new Gitea handling 2025-08-13 21:15:22 +02:00
eb893d197a Fix: Resolve TclError by managing animated icon clickability via bindings
- Replaced direct 'state' configuration on ttk.Frame (animated_icon_frame)
  with dynamic binding/unbinding of the '<Button-1>' event.
- This resolves the '_tkinter.TclError: unknown option "-state"' as ttk.Frame
  does not support the 'state' option.
- Ensures the animated icon is only clickable when an update is available,
  improving UI behavior and error handling.
2025-08-13 19:56:55 +02:00
b44c7b96d3 Fix: Improve update button and animation behavior in MenuBar
- Ensured the update toggle button remains active regardless of update status.
- Implemented state management for the animated update icon, making it clickable
  only when a new version is available.
- Corrected tooltip synchronization with the animated icon's state.
- Removed redundant update status check in the updater method, as UI state
  now controls interaction.
2025-08-13 19:52:51 +02:00
13f5f1f4fd Docs: Update MenuBar docstrings and remove unused comments
- Updated docstrings for __init__ and update_ui_for_update to reflect
  recent changes in arguments and logic, improving code documentation.
- Removed an unused commented-out line in the __init__ method signature.
2025-08-13 18:36:14 +02:00
fb794538d8 Refactor: Streamline MenuBar arguments and remove redundancy
- Replaced 'app_config' with 'app_version' to directly pass the application version,
  removing the need for 'app_config' as a whole.
- Reverted 'tooltips' argument and instead use 'msg_config' directly,
  aligning with existing project structure where 'Msg' class encapsulates
  both general strings (STR) and tooltips (TTIP).
- Updated all internal references to use 'self.app_version' and 'self.msg_config.TTIP'.
- This refactoring reduces argument redundancy and improves consistency with
  the project's configuration management.
2025-08-13 18:31:17 +02:00
3cf91ba58f Refactor: Externalize remaining MenuBar tooltips
- Replaced hardcoded tooltips for the log and about buttons with references
  to the 'tooltips' dictionary passed during MenuBar initialization.
- This further enhances the flexibility and translatability of the MenuBar.
2025-08-13 17:44:35 +02:00
ab14b4ffa3 Fix: Resolve NameError for Optional in MenuBar
- Added 'Optional' to the import list from the 'typing' module in menu_bar.py
  to resolve a NameError when using Optional as a type hint.
2025-08-13 17:26:07 +02:00
6fe090e9e5 Refactor: Update MenuBar for new GiteaUpdater and flexible tooltips
- Updated MenuBar to use the new GiteaUpdater class for update checks.
- Modified __init__ to accept gitea_api_url and a dictionary of tooltips,
  making the MenuBar more project-independent and translatable.
- Refactored check_for_updates and update_ui_for_update to handle the
  new GiteaUpdater's return values (new version string or None) and
  new states (DISABLED, ERROR).
- Improved updater logic to prevent execution when no updates are available
  or an error occurred.
- Corrected about dialog icon parameter.
2025-08-13 17:18:28 +02:00
8b4068fdc7 add icons in kontex menüs 2025-08-13 01:24:55 +02:00
ba6ef7385a replace tooltip animation with exist tooltip, redundancy reduced, search optimized, add new icons copy and stair (for path folllow) 2025-08-13 01:05:57 +02:00
dc51bf6f2c Reduced redundancy, logviewer fulll removed , add log_window and menu_bar 2025-08-12 22:44:49 +02:00
80aebe3bab Struktur: Integriere CustomFileDialog und AnimatedIcon
Die
      Komponenten des CustomFileDialog wurden aus einem separaten Repository importiert
      und in ein eigenes Verzeichnis verschoben. Die Test-Datei 'mainwindow.py' wurde
      entfernt. 'animated_icon.py' wurde als gemeinsam genutzte Komponente im
      Stammverzeichnis platziert.
2025-08-10 13:31:53 +02:00
941ac4334b Merge remote-tracking branch 'customfiledialog-repo/main' into 4-06-2025 2025-08-10 13:29:26 +02:00
d124c24533 fix fstrings and syntax error 2025-08-10 12:25:10 +02:00
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