|
RTC Toolkit 6.1.0-pre1
|
Dialog for creating or editing a symlinks. More...
Public Member Functions | |
| __init__ (self, parent, set[DataPointPath] existing_paths, DataPointPath path=None, DataPointPath symlink_target=None) | |
| validate_and_accept (self) | |
| Validate the entered data point and symlink target paths, display an error for invalid input, and accept the dialog when all values are valid. | |
| tuple[DataPointPath, DataPointPath] | get_values (self) |
| Return the path and target values entered in the LineEdits. | |
Public Attributes | |
| existing_paths = existing_paths | |
| ui = Ui_SymlinkDialog() | |
| validate_and_accept | |
| reject | |
Protected Member Functions | |
| _show_error (self, str message) | |
| Display the given error message in the error label. | |
| _parse_path (self, str value, QLineEdit line_edit, str error_message) | |
Static Protected Member Functions | |
| _set_line_edit_error (QLineEdit line_edit) | |
| Highlight the line edit as invalid and give it focus. | |
Dialog for creating or editing a symlinks.
The dialog allows the user to specify a path for the symbolic link and the target data point path it should reference. Existing paths are kept so that the dialog can validate the requested link path and prevent conflicts.
The dialog can be initialized with path and symlink target values. Field's of the form will then be prefilled with these provided values.
| gui.symlink_dialog.SymlinkDialog.__init__ | ( | self, | |
| parent, | |||
| set[DataPointPath] | existing_paths, | ||
| DataPointPath | path = None, | ||
| DataPointPath | symlink_target = None ) |
|
protected |
|
staticprotected |
Highlight the line edit as invalid and give it focus.
|
protected |
Display the given error message in the error label.
| tuple[DataPointPath, DataPointPath] gui.symlink_dialog.SymlinkDialog.get_values | ( | self | ) |
Return the path and target values entered in the LineEdits.
| gui.symlink_dialog.SymlinkDialog.validate_and_accept | ( | self | ) |
Validate the entered data point and symlink target paths, display an error for invalid input, and accept the dialog when all values are valid.
| gui.symlink_dialog.SymlinkDialog.existing_paths = existing_paths |
| gui.symlink_dialog.SymlinkDialog.reject |
| gui.symlink_dialog.SymlinkDialog.ui = Ui_SymlinkDialog() |
| gui.symlink_dialog.SymlinkDialog.validate_and_accept |