Module implementing a dialog showing the code formatting progress and the result.
None |
BlackFormattingDialog | Class implementing a dialog showing the code formatting progress and the result. |
BlackReport | Class extending the black Report to work with our dialog. |
None |
Class implementing a dialog showing the code formatting progress and the result.
DataRole |
DataTypeRole |
FileNameColumn |
StatusColumn |
None |
BlackFormattingDialog | Constructor |
__diffFormatFile | Private method to check, if the given files need to be reformatted, and generate a unified diff. |
__filterFiles | Private method to filter the given list of files according the configuration parameters. |
__finish | Private method to perform some actions after the run was performed or canceled. |
__formatFiles | Private method to format the list of files according the configuration. |
__populateStatusFilterCombo | Private method to populate the status filter combo box with allowed selections. |
__resizeColumns | Private method to resize the columns of the result list. |
__resort | Private method to resort the result list. |
__updateStatistics | Private method to update the statistics about the recent formatting run and make them visible. |
addResultEntry | Public method to add an entry to the result list. |
closeEvent | Protected slot implementing a close event handler. |
on_buttonBox_clicked | Private slot to handle button presses of the dialog buttons. |
on_resultsList_itemDoubleClicked | Private slot handling a double click of a result item. |
on_statusFilterComboBox_currentTextChanged | Private slot handling the selection of a status for items to be shown. |
None |
Constructor
Private method to check, if the given files need to be reformatted, and generate a unified diff.
Private method to filter the given list of files according the configuration parameters.
Private method to perform some actions after the run was performed or canceled.
Private method to format the list of files according the configuration.
Private method to populate the status filter combo box with allowed selections.
Private method to resize the columns of the result list.
Private method to resort the result list.
Private method to update the statistics about the recent formatting run and make them visible.
Public method to add an entry to the result list.
Protected slot implementing a close event handler.
Private slot to handle button presses of the dialog buttons.
Private slot handling a double click of a result item.
Private slot handling the selection of a status for items to be shown.
Class extending the black Report to work with our dialog.
None |
None |
BlackReport | Constructor |
done | Public method to handle the end of a reformat. |
failed | Public method to handle a reformat failure. |
path_ignored | Public method handling an ignored path. |
None |
Constructor
Public method to handle the end of a reformat.
Public method to handle a reformat failure.
Public method handling an ignored path.