Skip to content

Ui Components

UI components for the Logseq Analyzer GUI.

Classes:

Name Description
Checkboxes

Checkboxes for the GUI.

Buttons

Buttons for the GUI.

Inputs

Input fields for the GUI.

Progress

Progress indicators for the GUI.

Checkboxes(move_all: QCheckBox, move_assets: QCheckBox, move_bak: QCheckBox, move_recycle: QCheckBox, write_graph: QCheckBox, graph_cache: QCheckBox) dataclass

Bases: QWidget

Checkboxes for the GUI.

Methods:

Name Description
__post_init__

Post-initialization to set default values for checkboxes.

initialize_layout

Create and return the layout for checkboxes.

update_move_options

Update the state of move options checkboxes based on the main checkbox.

force_enable_graph_cache

Force enable and check the graph cache checkbox when the graph folder changes.

__post_init__() -> None

Post-initialization to set default values for checkboxes.

initialize_layout() -> None

Create and return the layout for checkboxes.

update_move_options() -> None

Update the state of move options checkboxes based on the main checkbox.

force_enable_graph_cache() -> None

Force enable and check the graph cache checkbox when the graph folder changes.

Buttons(run: QPushButton, exit: QPushButton) dataclass

Bases: QWidget

Buttons for the GUI.

Methods:

Name Description
__post_init__

Post-initialization to set default values for buttons.

initialize_layout

Create and return the layout for buttons.

__post_init__() -> None

Post-initialization to set default values for buttons.

initialize_layout() -> None

Create and return the layout for buttons.

Inputs(graph_folder: QLineEdit, global_config: QLineEdit, report_format: QComboBox) dataclass

Bases: QWidget

Input fields for the GUI.

Methods:

Name Description
__post_init__

Post-initialization to set default values for inputs.

initialize_layout

Create and return the layout for the report format input field.

__post_init__() -> None

Post-initialization to set default values for inputs.

initialize_layout() -> None

Create and return the layout for the report format input field.

Progress(progress_bar: QProgressBar, label: QLabel) dataclass

Bases: QWidget

Progress indicators for the GUI.

Methods:

Name Description
__post_init__

Post-initialization to set default values for progress indicators.

initialize_layout

Create and return the layout for progress indicators.

update_bar

Update the progress bar for a given phase.

update_label

Update the progress label with a given message.

__post_init__() -> None

Post-initialization to set default values for progress indicators.

initialize_layout() -> None

Create and return the layout for progress indicators.

update_bar(progress_value: int = 0) -> None

Update the progress bar for a given phase.

update_label(label: str) -> None

Update the progress label with a given message.