Coverage for paintmaskanimator/_main_window_members.py: 100%
4 statements
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-02 04:50 +0000
« prev ^ index » next coverage.py v7.17.0, created at 2026-11-02 04:50 +0000
1"""Type-only member declarations shared across the main window mixins.
3This module exists purely to give pyright/pylance the attributes, methods and
4signals really provided at runtime by the composed ``MainWindow`` class (and its Qt
5base). Each mixin lives in its own file, so a checker inspecting one mixin in
6isolation cannot see members defined on its siblings or set in
7``MainWindow.__init__``; without these stubs every such access was reported as
8``reportAttributeAccessIssue``.
10At runtime ``MainWindowMembers`` is an empty ``object`` subclass, so mixing it in
11is harmless. Under ``TYPE_CHECKING`` it inherits the real Qt base, so Qt
12methods resolve too. A genuinely undefined name -- a typo or a removed
13attribute -- still surfaces, because it never appears in this list.
15Entries are being migrated from ``Any`` to their real types; every one that
16moves off ``Any`` starts type-checking its own call sites, so prefer adding a
17precise type here over widening one. ``Any`` remains the default for the many
18method stubs, whose signatures live with the mixin that defines them.
19"""
20from __future__ import annotations
22from typing import TYPE_CHECKING, Any
24if TYPE_CHECKING:
25 from PySide6.QtCore import QTimer
26 from PySide6.QtWidgets import QMainWindow
27 from .actionpanel import ActionPanel
28 from .canvas import PaintCanvas
29 from .main_window_export import ExportController
30 from .main_window_workspace import WorkspaceController
31 from .main_window_autosave import AutosaveController
32 from .main_window_color_interaction import ColorInteractionController
33 from .main_window_used_color import UsedColorController
34 from .main_window_line_ops import LineOpsController
35 from .main_window_view_preview import ViewPreviewController
36 from .main_window_tool_hold import ToolHoldController
37 from .main_window_update_notice import UpdateNoticeController
38 from .main_window_timeline_ops import TimelineOpsController
39 from .main_window_layer_ops import LayerOpsController
40 from .main_window_color_chart import ColorChartController
41 from .main_window_onion import OnionSkinController
42 from .main_window_tween import TweenController
43 from .main_window_time_remap import TimeRemapController
44 from .main_window_scope_ops import ScopeOpsController
45 from .main_window_reference_check import ReferenceCheckController
46 from .main_window_auto_paint import AutoPaintController
47 from .main_window_initial_state import InitialStateController
48 from .main_window_project_io import ProjectIOController
49 from .main_window_import import ImportController
50 from .color_panel import UsedColorPanel
51 from .color_chart import ColorChartPanel
52 from .history_panel import HistoryPanel
53 from .subview import SubViewWidget
54 from .theme import StatusBar
55 from .toolpanel import ToolPanel, ToolSelectorPanel
56 from .timeline import TimelineWidget
57 _MembersBase = QMainWindow
58else:
59 _MembersBase = object
61class MainWindowMembers(_MembersBase):
62 if TYPE_CHECKING:
63 _active_dragged_dock: Any
64 _add_dock_hamburger: Any
65 _add_dock_hamburger_old: Any
66 _apply_time_remap_states_to_layer: Any
67 _apply_tool_selector_snap: Any
68 _attach_area_hamburger: Any
69 _attach_dock_hamburger: Any
70 _autosave_timer: Any
71 _auxiliary_cursor_targets: Any
72 _build_action_panel_menu: Any
73 _build_color_slider_menu: Any
74 _build_color_wheel_menu: Any
75 _build_default_dock_menu: Any
76 _close_tween_command_popup: Any
77 _closing: Any
78 _commit_split_drop: Any
79 _configure_floating_window: Any
80 _copy_layer_display_properties: Any
81 _customize_docking_hover: Any
82 _dock_menu_builders: Any
83 _download_and_run_installer: Any
84 _event_key_token: Any
85 _expand_docking_hit_zones: Any
86 _finalize_startup_dock_ui: Any
87 _finish_auxiliary_hold_drag: Any
88 _finish_manual_tab_drop: Any
89 _hamburger_icon: Any
90 _hamburger_icon_cache: Any
91 _hand_scroll_area_for_widget: Any
92 _handle_auxiliary_hold_event: Any
93 _held_canvas_shortcut_tokens: Any
94 _space_tap_started: Any
95 _hide_split_drop_feedback: Any
96 _layer_indices_from_rows: Any
97 _manual_tab_drag_timer: QTimer
98 _mouse_global_position: Any
99 _navigate_sequence_number: Any
100 _normalize_shortcut_token: Any
101 _on_canvas_cell_changed: Any
102 _onion_settings_browser: Any
103 _onion_settings_browser_destroyed: Any
104 _onion_settings_window: Any
105 _parse_after_effects_time_remap: Any
106 _pending_default_dock_layout: bool
107 _pending_tool_selector_snap: Any
108 _pending_visible_colors: Any
109 _playback_emitted_steps: Any
110 _playback_started_at: Any
111 _previous_draw_color_mode: Any
112 _rebuild_area_dock_menu: Any
113 _rebuild_dock_menu: Any
114 _refresh_theme_dependent_ui: Any
115 _refresh_timeline_tween_marker: Any
116 _resize_tool_selector_area: Any
117 _restore_timeline_selection: Any
118 _set_color_chart_visible: Any
119 _setup_split_drop_overlay: Any
120 _sheet_duration: Any
121 _shortcut_tokens: Any
122 _show_split_skeleton: Any
123 _show_tween_command_popup: Any
124 _snap_tool_selector_width: Any
125 _split_drop_candidate: Any
126 _split_drop_dragged_dock: Any
127 _split_drop_overlay: Any
128 _split_drop_press_pos: Any
129 _split_drop_skeletons: Any
130 _split_drop_source_area: Any
131 _split_drop_timer: Any
132 _start_manual_tab_drag_polling: Any
133 _start_split_drop_monitor: Any
134 _suppress_used_color_refresh_once: Any
135 _sync_all_area_hamburgers: Any
136 _sync_area_hamburger: Any
137 _sync_floating_title: Any
138 _sync_modifier_tokens: Any
139 _time_remap_source_bank: Any
140 _tool_selector_resize_drag_active: Any
141 _tool_selector_snap_timer: QTimer
142 _tween_command_popup: Any
143 _ui_hold_drag_mode: Any
144 _ui_hold_grab_widget: Any
145 _ui_hold_last_global: Any
146 _ui_hold_scroll_area: Any
147 _ui_hold_start_global: Any
148 _ui_hold_start_scroll: Any
149 _update_auxiliary_hold_cursors: Any
150 _update_canvas_hold_operation: Any
151 _update_manual_tab_drop: Any
152 _update_split_drop_target: Any
153 _used_color_cache: Any
154 _used_color_layer_cache: Any
155 _used_color_request: Any
156 _used_color_timer: QTimer
157 _visible_color_timer: QTimer
158 _widget_in_timeline: Any
159 a_bucket_close_gap: Any
160 a_bucket_include_sub: Any
161 a_focus_used_color: Any
162 _timeline_cell_clipboard: Any
163 a_choose_background: Any
164 a_clear_color_filter: Any
165 a_copy: Any
166 a_cut: Any
167 a_dust_all_frames: Any
168 a_dust_apply: Any
169 a_export_cut_folder: Any
170 a_export_shadow: Any
171 a_export_mp4: Any
172 a_export_png_seq: Any
173 a_export_psd: Any
174 a_export_tga_seq: Any
175 a_export_xdts: Any
176 a_hold_eyedropper: Any
177 a_hold_hand: Any
178 a_hold_rotate: Any
179 a_hold_zoom: Any
180 a_import_folder: Any
181 a_import_images: Any
182 a_import_images_raw: Any
183 a_import_psd: Any
184 a_import_clip: Any
185 a_open_cut_folder: Any
186 a_isolate_color: Any
187 a_mainline_repaint: Any
188 a_new: Any
189 a_next: Any
190 a_open_project: Any
191 a_paste: Any
192 a_pressure: Any
193 a_color_chart: Any
194 a_prev: Any
195 a_redo: Any
196 a_remove_dust: Any
197 a_reference_check: Any
198 a_auto_paint: Any
199 a_keep_initial_state: Any
200 a_import_initial_state: Any
201 a_import_clip_initial_state: Any
202 a_clear_initial_state: Any
203 a_resize: Any
204 a_save: Any
205 a_save_project: Any
206 a_save_project_as: Any
207 a_save_tga: Any
208 a_select_main: Any
209 a_select_sub: Any
210 a_select_transparent: Any
211 a_selection_all_frames: Any
212 a_selection_all: Any
213 a_brush_larger: Any
214 a_brush_smaller: Any
215 a_selection_clear: Any
216 a_selection_delete: Any
217 a_view_fit: Any
218 a_view_zoom_in: Any
219 a_view_zoom_out: Any
220 a_selection_invert: Any
221 a_selection_mesh: Any
222 a_selection_scale: Any
223 a_selection_transform: Any
224 a_preferences: Any
225 apply_pressure_settings: Any
226 insert_layout_paper: Any
227 preferences_dialog: Any
228 a_shortcuts: Any
229 a_silhouette: Any
230 a_preview_map: Any
231 a_exposure_toggle: Any
232 a_channel_red: Any
233 a_channel_green: Any
234 a_channel_blue: Any
235 a_channel_alpha: Any
236 black_check_button: Any
237 map_colors_button: Any
238 channel_combo: Any
239 exposure_button: Any
240 exposure_spin: Any
241 exposure_control: Any
242 a_swap_main_sub: Any
243 a_tl_add_exposure: Any
244 a_tl_delete_frame: Any
245 a_tl_layer_add: Any
246 a_tl_layer_delete: Any
247 a_tl_layer_rename: Any
248 a_tl_next: Any
249 a_tl_next_key: Any
250 a_tl_onion: Any
251 a_tl_paste_time_remap: Any
252 a_tl_copy_time_remap: Any
253 a_memo: Any
254 project_memo: Any
256 def show_memo_window(self) -> Any: ...
257 def set_project_memo(self, text) -> Any: ...
258 _memo_window: Any
259 a_tl_play: Any
260 a_tl_previous: Any
261 a_tl_previous_key: Any
262 a_toggle_draw_background: Any
263 a_transform_cancel: Any
264 a_transform_commit: Any
265 a_transform_mesh_grid: Any
266 a_transform_rotate_left: Any
267 a_transform_rotate_right: Any
268 a_undo: Any
269 action_panel: ActionPanel
270 action_panel_dock: Any
271 action_panel_scroll: Any
272 advance: Any
273 area: Any
274 build_action_panel: Any
275 build_actions: Any
276 build_menu: Any
277 build_project_metadata: Any
278 build_ui: Any
279 canvas: PaintCanvas
280 canvas_operation_actions: Any
281 central_dock: Any
282 check_for_updates_interactive: Any
283 color_slider_dock: Any
284 color_slider_scroll: Any
285 color_wheel_dock: Any
286 color_wheel_scroll: Any
287 color_chart: ColorChartPanel
288 color_chart_data: Any
289 color_chart_window: Any
290 column_group: Any
291 component_list: Any
292 crop_image: Any
293 current_project_path: Any
294 dock_manager: Any
295 # Collaborator objects the window owns; unlike the mixin methods below,
296 # these carry their real type, so their call sites are fully checked.
297 export: ExportController
298 subview: SubViewWidget
299 subview_dock: Any
300 workspace: WorkspaceController
301 autosave: AutosaveController
302 colors: ColorInteractionController
303 used_color: UsedColorController
304 line_ops: LineOpsController
305 view_preview: ViewPreviewController
306 tool_hold: ToolHoldController
307 update_notice: UpdateNoticeController
308 timeline_ops: TimelineOpsController
309 layers: LayerOpsController
310 color_chart_ops: ColorChartController
311 onion: OnionSkinController
312 tween: TweenController
313 time_remap: TimeRemapController
314 scope: ScopeOpsController
315 reference_check: ReferenceCheckController
316 auto_paint: AutoPaintController
317 initial_state: InitialStateController
318 canvas_export_separator: Any
319 compare_initial_button: Any
320 copy_canvas_button: Any
321 save_canvas_button: Any
322 flip_horizontal_button: Any
323 flip_vertical_button: Any
324 project: ProjectIOController
325 importer: ImportController
326 exposure_images: Any
327 file_edit_actions: Any
328 fit_canvas: Any
329 general_actions: Any
330 history_panel: HistoryPanel
331 import_dropped_image: Any
332 import_dropped_images: Any
333 import_dropped_images_raw: Any
334 import_image_folder_dialog: Any
335 import_images_dialog: Any
336 import_images_raw_dialog: Any
337 make_shortcut_action: Any
338 new_doc: Any
339 normalized_onion_levels: Any
340 on_progress: Any
341 palette: UsedColorPanel
342 palette_dock: Any
343 palette_scroll: Any
344 play: Any
345 prepare_color_reduction: Any
346 prepare_image_import: Any
347 pressure: Any
348 refresh_selection: Any
349 refresh_ui: Any
350 relative_shift: Any
351 replace_doc: Any
352 resize_doc: Any
353 rot: Any
354 rot_label: Any
355 save_png: Any
356 save_tga: Any
357 save_tga_image: Any
358 set_rot: Any
359 set_theme: Any
360 set_zoom: Any
361 shortcuts: Any
362 show_canvas_at_100_percent: Any
363 show_preferences: Any
364 status: Any
365 step_canvas_zoom: Any
366 status_bar: StatusBar
367 sync_canvas_view_controls: Any
368 timeline: TimelineWidget
369 timeline_actions: Any
370 timeline_dock: Any
371 timer: QTimer
372 tool_action_list: Any
373 tool_actions: Any
374 tool_command_actions: Any
375 tool_selector: ToolSelectorPanel
376 tool_selector_dock: Any
377 tools: ToolPanel
378 tools_dock: Any
379 tools_scroll: Any
380 turn_priority: Any
381 workspace_menu: Any
382 zoom: Any
383 zoom_label: Any
384 recent_menu: Any
385 paste_from_clipboard: Any