fosKeyMan
Loading...
Searching...
No Matches
src.frontend.metadataeditor.MetadataEditor Class Reference

Class to edit the metadata.json contents for a keyfile. More...

Inheritance diagram for src.frontend.metadataeditor.MetadataEditor:

Public Member Functions

 __init__ (self, serial_number, metadata, parent)
 Initialize the MetadataEditor dialog.
 
 add_new_row (self)
 Add a new metadata entry from the input fields to the main table.
 
 confirm_and_close (self)
 Confirm the changes and close the editor dialog.
 
 delete_current_row (self)
 Find the row where the clicked button is located and delete it.
 
 insert_json_row (self, key, value)
 Insert a new key-value pair as a row into the main metadata table.
 
 setup_add_table (self)
 Set up a small input table for adding new metadata key-value pairs.
 
 setup_main_table (self)
 Set up the main table to display and edit existing metadata entries.
 

Public Attributes

 add_new_row
 
 confirm_and_close
 
 delete_current_row
 
 original_metadata = metadata
 
 reject
 
 result_metadata = None
 
 serial_number = serial_number
 
 ui = Ui_Edit()
 

Detailed Description

Class to edit the metadata.json contents for a keyfile.

Definition at line 9 of file metadataeditor.py.

Constructor & Destructor Documentation

◆ __init__()

src.frontend.metadataeditor.MetadataEditor.__init__ ( self,
serial_number,
metadata,
parent )

Initialize the MetadataEditor dialog.

Parameters
serial_number(str): Serial number of the keyfile.
metadata(dict): Existing metadata dictionary.
parent(QWidget, optional): Parent widget for this dialog.

Definition at line 13 of file metadataeditor.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ add_new_row()

src.frontend.metadataeditor.MetadataEditor.add_new_row ( self)

Add a new metadata entry from the input fields to the main table.

Definition at line 115 of file metadataeditor.py.

Here is the call graph for this function:

◆ confirm_and_close()

src.frontend.metadataeditor.MetadataEditor.confirm_and_close ( self)

Confirm the changes and close the editor dialog.

Definition at line 132 of file metadataeditor.py.

◆ delete_current_row()

src.frontend.metadataeditor.MetadataEditor.delete_current_row ( self)

Find the row where the clicked button is located and delete it.

Definition at line 102 of file metadataeditor.py.

◆ insert_json_row()

src.frontend.metadataeditor.MetadataEditor.insert_json_row ( self,
key,
value )

Insert a new key-value pair as a row into the main metadata table.

Definition at line 83 of file metadataeditor.py.

Here is the caller graph for this function:

◆ setup_add_table()

src.frontend.metadataeditor.MetadataEditor.setup_add_table ( self)

Set up a small input table for adding new metadata key-value pairs.

Definition at line 52 of file metadataeditor.py.

◆ setup_main_table()

src.frontend.metadataeditor.MetadataEditor.setup_main_table ( self)

Set up the main table to display and edit existing metadata entries.

Definition at line 37 of file metadataeditor.py.

Here is the call graph for this function:

Member Data Documentation

◆ add_new_row

src.frontend.metadataeditor.MetadataEditor.add_new_row

Definition at line 81 of file metadataeditor.py.

◆ confirm_and_close

src.frontend.metadataeditor.MetadataEditor.confirm_and_close

Definition at line 33 of file metadataeditor.py.

◆ delete_current_row

src.frontend.metadataeditor.MetadataEditor.delete_current_row

Definition at line 99 of file metadataeditor.py.

◆ original_metadata

src.frontend.metadataeditor.MetadataEditor.original_metadata = metadata

Definition at line 24 of file metadataeditor.py.

◆ reject

src.frontend.metadataeditor.MetadataEditor.reject

Definition at line 32 of file metadataeditor.py.

◆ result_metadata

src.frontend.metadataeditor.MetadataEditor.result_metadata = None

Definition at line 35 of file metadataeditor.py.

◆ serial_number

src.frontend.metadataeditor.MetadataEditor.serial_number = serial_number

Definition at line 23 of file metadataeditor.py.

◆ ui

src.frontend.metadataeditor.MetadataEditor.ui = Ui_Edit()

Definition at line 26 of file metadataeditor.py.


The documentation for this class was generated from the following file: