utils ¶
Classes:
-
LazyMapPluginVideoOutputs
– -
MappedNodesPlugin
– -
MappedNodesViewPlugin
– -
PluginGraphicsView
– -
PluginVideoOutputs
–
LazyMapPluginVideoOutputs ¶
LazyMapPluginVideoOutputs(
main: MainWindow | None, func: Callable[[VideoNode], VideoNode]
)
Bases: PluginVideoOutputs
Attributes:
Source code in vspreview/plugins/utils.py
50 51 52 |
|
MappedNodesPlugin ¶
MappedNodesPlugin(main: MainWindow)
Bases: AbstractPlugin
Methods:
-
add_shortcut
– -
add_shortcuts
– -
first_load
– -
get_node
– -
get_notches
– -
get_separator
– -
init_notches
– -
init_outputs
– -
on_current_frame_changed
– -
on_current_output_changed
– -
reset
– -
set_qobject_names
– -
setup_shortcuts
– -
setup_ui
–
Attributes:
-
hlayout
(HBoxLayout
) – -
index
(int
) – -
is_notches_visible
(bool
) – -
main
– -
notches_changed
– -
on_first_load
– -
outputs
– -
settings
(PluginSettings
) – -
shortcuts
(list[PluginShortcut]
) – -
storable_attrs
(tuple[str, ...]
) – -
vlayout
(VBoxLayout
) –
Source code in vspreview/plugins/utils.py
62 63 64 65 |
|
add_shortcut ¶
add_shortcut(
name_or_key: Any,
parent_or_handler: Any,
/,
handler: Callable[[], None] | str = "",
key: QKeySequence | None = None,
description: str | None = None,
) -> None
Source code in vspreview/plugins/abstract.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
|
add_shortcuts ¶
add_shortcuts() -> None
Source code in vspreview/plugins/abstract.py
193 194 |
|
first_load ¶
first_load() -> bool
Source code in vspreview/plugins/abstract.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
get_node ¶
get_node(node: VideoNode) -> VideoNode
get_node(node: VideoNode) -> VideoOutputNode
get_node(node: VideoNode) -> VideoNode | VideoOutputNode
get_node(node: VideoNode) -> VideoNode | VideoOutputNode
Source code in vspreview/plugins/utils.py
79 80 |
|
get_notches ¶
get_notches() -> Notches
Source code in vspreview/core/abstracts.py
405 406 407 |
|
get_separator ¶
get_separator(horizontal: bool = False) -> QFrame
Source code in vspreview/core/abstracts.py
318 319 320 321 322 |
|
init_notches ¶
init_notches(main: MainWindow = ...) -> None
Source code in vspreview/core/abstracts.py
402 403 |
|
init_outputs ¶
init_outputs() -> None
Source code in vspreview/plugins/utils.py
82 83 84 85 |
|
on_current_frame_changed ¶
on_current_frame_changed(frame: Frame) -> None
Source code in vspreview/plugins/utils.py
92 93 |
|
on_current_output_changed ¶
Source code in vspreview/plugins/abstract.py
199 200 |
|
reset ¶
reset() -> None
Source code in vspreview/plugins/utils.py
87 88 89 90 |
|
set_qobject_names ¶
set_qobject_names() -> None
Source code in vspreview/core/abstracts.py
279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
setup_shortcuts ¶
setup_shortcuts() -> None
Source code in vspreview/plugins/abstract.py
149 150 |
|
setup_ui ¶
setup_ui() -> None
Source code in vspreview/core/abstracts.py
314 315 316 |
|
MappedNodesViewPlugin ¶
MappedNodesViewPlugin(main: MainWindow)
Bases: MappedNodesPlugin
, PluginGraphicsView
Methods:
-
add_shortcut
– -
add_shortcuts
– -
afterReload
– -
auto_fit_button_clicked
– -
beforeReload
– -
bind_to
– -
event
– -
first_load
– -
get_node
– -
get_notches
– -
get_separator
– -
init_notches
– -
init_outputs
– -
mouseMoveEvent
– -
mousePressEvent
– -
mouseReleaseEvent
– -
on_current_frame_changed
– -
on_current_output_changed
– -
on_wheel_scrolled
– -
propagate_move_event
– -
reset
– -
resizeEvent
– -
setZoom
– -
set_qobject_names
– -
setup_shortcuts
– -
setup_ui
– -
setup_view
– -
wheelEvent
–
Attributes:
-
WHEEL_STEP
– -
angleRemainder
– -
app
– -
auto_fit_button
– -
autofit
(bool
) – -
content_height
(int
) – -
content_width
(int
) – -
controls
– -
currentZoom
– -
current_scene
(GraphicsImageItem
) – -
dragEvent
– -
drag_mode
(DragMode
) – -
graphics_scene
– -
hlayout
(HBoxLayout
) – -
index
(int
) – -
is_notches_visible
(bool
) – -
last_positions
– -
main
– -
mouseMoved
– -
mousePressed
– -
mouseReleased
– -
notches_changed
– -
on_first_load
– -
outputs
– -
plugin
(MappedNodesPlugin
) – -
settings
(PluginSettings
) – -
shortcuts
(list[PluginShortcut]
) – -
storable_attrs
(tuple[str, ...]
) – -
underReload
– -
vlayout
(VBoxLayout
) – -
wheelScrolled
– -
zoomValue
– -
zoom_combobox
–
Source code in vspreview/plugins/utils.py
62 63 64 65 |
|
auto_fit_button instance-attribute
¶
auto_fit_button = CheckBox('Auto-fit', self, clicked=auto_fit_button_clicked)
add_shortcut ¶
add_shortcut(
name_or_key: Any,
parent_or_handler: Any,
/,
handler: Callable[[], None] | str = "",
key: QKeySequence | None = None,
description: str | None = None,
) -> None
Source code in vspreview/plugins/abstract.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
|
add_shortcuts ¶
add_shortcuts() -> None
Source code in vspreview/plugins/abstract.py
193 194 |
|
afterReload ¶
afterReload() -> None
Source code in vspreview/core/custom/graphicsview.py
367 368 369 370 371 |
|
auto_fit_button_clicked ¶
auto_fit_button_clicked(checked: bool) -> None
Source code in vspreview/core/custom/graphicsview.py
213 214 |
|
beforeReload ¶
beforeReload() -> None
Source code in vspreview/core/custom/graphicsview.py
362 363 364 365 |
|
bind_to ¶
bind_to(other_view: GraphicsView, *, mutual: bool = True) -> None
Source code in vspreview/core/custom/graphicsview.py
242 243 244 245 246 |
|
event ¶
event(event: QEvent) -> bool
Source code in vspreview/core/custom/graphicsview.py
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
|
first_load ¶
first_load() -> bool
Source code in vspreview/plugins/abstract.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
get_node ¶
get_node(node: VideoNode) -> VideoNode
get_node(node: VideoNode) -> VideoOutputNode
get_node(node: VideoNode) -> VideoNode | VideoOutputNode
get_node(node: VideoNode) -> VideoNode | VideoOutputNode
Source code in vspreview/plugins/utils.py
79 80 |
|
get_notches ¶
get_notches() -> Notches
Source code in vspreview/core/abstracts.py
405 406 407 |
|
get_separator ¶
get_separator(horizontal: bool = False) -> QFrame
Source code in vspreview/core/abstracts.py
318 319 320 321 322 |
|
init_notches ¶
init_notches(main: MainWindow = ...) -> None
Source code in vspreview/core/abstracts.py
402 403 |
|
init_outputs ¶
init_outputs() -> None
Source code in vspreview/plugins/utils.py
82 83 84 85 |
|
mouseMoveEvent ¶
mouseMoveEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
326 327 328 329 330 331 332 333 334 335 |
|
mousePressEvent ¶
mousePressEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
337 338 339 340 341 342 343 344 345 346 347 348 |
|
mouseReleaseEvent ¶
mouseReleaseEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
350 351 352 353 354 355 356 357 358 359 360 |
|
on_current_frame_changed ¶
on_current_frame_changed(frame: Frame) -> None
Source code in vspreview/plugins/utils.py
136 137 |
|
on_current_output_changed ¶
Source code in vspreview/plugins/abstract.py
199 200 |
|
on_wheel_scrolled ¶
on_wheel_scrolled(steps: int) -> None
Source code in vspreview/core/custom/graphicsview.py
248 249 250 251 |
|
propagate_move_event ¶
propagate_move_event(_: Any = None) -> None
Source code in vspreview/core/custom/graphicsview.py
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
|
reset ¶
reset() -> None
Source code in vspreview/plugins/utils.py
87 88 89 90 |
|
resizeEvent ¶
resizeEvent(event: QResizeEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
373 374 375 |
|
setZoom ¶
setZoom(value: float | None) -> None
Source code in vspreview/core/custom/graphicsview.py
253 254 255 |
|
set_qobject_names ¶
set_qobject_names() -> None
Source code in vspreview/core/abstracts.py
279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
setup_shortcuts ¶
setup_shortcuts() -> None
Source code in vspreview/plugins/abstract.py
149 150 |
|
setup_ui ¶
setup_ui() -> None
Source code in vspreview/core/abstracts.py
314 315 316 |
|
setup_view ¶
setup_view() -> None
Source code in vspreview/core/custom/graphicsview.py
235 236 237 238 239 240 |
|
wheelEvent ¶
wheelEvent(event: QWheelEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
|
PluginGraphicsView ¶
PluginGraphicsView(
main: MainWindow | MappedNodesPlugin,
plugin: MappedNodesPlugin | None = None,
parent: QWidget | None = None,
)
Bases: GraphicsView
Methods:
-
afterReload
– -
auto_fit_button_clicked
– -
beforeReload
– -
bind_to
– -
event
– -
first_load
– -
mouseMoveEvent
– -
mousePressEvent
– -
mouseReleaseEvent
– -
on_wheel_scrolled
– -
propagate_move_event
– -
resizeEvent
– -
setZoom
– -
setup_view
– -
wheelEvent
–
Attributes:
-
WHEEL_STEP
– -
angleRemainder
– -
app
– -
auto_fit_button
– -
autofit
(bool
) – -
content_height
(int
) – -
content_width
(int
) – -
controls
– -
currentZoom
– -
current_scene
(GraphicsImageItem
) – -
dragEvent
– -
drag_mode
(DragMode
) – -
graphics_scene
– -
last_positions
– -
main
(MainWindow
) – -
mouseMoved
– -
mousePressed
– -
mouseReleased
– -
plugin
(MappedNodesPlugin
) – -
underReload
– -
wheelScrolled
– -
zoomValue
– -
zoom_combobox
–
Source code in vspreview/plugins/utils.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
auto_fit_button instance-attribute
¶
auto_fit_button = CheckBox('Auto-fit', self, clicked=auto_fit_button_clicked)
afterReload ¶
afterReload() -> None
Source code in vspreview/core/custom/graphicsview.py
367 368 369 370 371 |
|
auto_fit_button_clicked ¶
auto_fit_button_clicked(checked: bool) -> None
Source code in vspreview/core/custom/graphicsview.py
213 214 |
|
beforeReload ¶
beforeReload() -> None
Source code in vspreview/core/custom/graphicsview.py
362 363 364 365 |
|
bind_to ¶
bind_to(other_view: GraphicsView, *, mutual: bool = True) -> None
Source code in vspreview/core/custom/graphicsview.py
242 243 244 245 246 |
|
event ¶
event(event: QEvent) -> bool
Source code in vspreview/core/custom/graphicsview.py
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
|
first_load ¶
first_load() -> None
Source code in vspreview/plugins/utils.py
122 123 124 |
|
mouseMoveEvent ¶
mouseMoveEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
326 327 328 329 330 331 332 333 334 335 |
|
mousePressEvent ¶
mousePressEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
337 338 339 340 341 342 343 344 345 346 347 348 |
|
mouseReleaseEvent ¶
mouseReleaseEvent(event: QMouseEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
350 351 352 353 354 355 356 357 358 359 360 |
|
on_wheel_scrolled ¶
on_wheel_scrolled(steps: int) -> None
Source code in vspreview/core/custom/graphicsview.py
248 249 250 251 |
|
propagate_move_event ¶
propagate_move_event(_: Any = None) -> None
Source code in vspreview/core/custom/graphicsview.py
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
|
resizeEvent ¶
resizeEvent(event: QResizeEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
373 374 375 |
|
setZoom ¶
setZoom(value: float | None) -> None
Source code in vspreview/core/custom/graphicsview.py
253 254 255 |
|
setup_view ¶
setup_view() -> None
Source code in vspreview/core/custom/graphicsview.py
235 236 237 238 239 240 |
|
wheelEvent ¶
wheelEvent(event: QWheelEvent) -> None
Source code in vspreview/core/custom/graphicsview.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
|
PluginVideoOutputs ¶
PluginVideoOutputs(main: MainWindow | None = None)
Bases: vs_object
, dict[VideoOutput, VideoOutput]
Attributes:
-
current
(VideoOutput
) – -
main
– -
prepared
(VideoNode
) – -
source
(VideoNode
) –
Source code in vspreview/plugins/utils.py
24 25 |
|