eric4.DataViews.CodeMetricsDialog

Module implementing a code metrics dialog.

Classes

CodeMetricsDialog Class implementing a dialog to display the code metrics.

Functions

None


CodeMetricsDialog

Class implementing a dialog to display the code metrics.

Derived from

QDialog, Ui_CodeMetricsDialog

Methods

CodeMetricsDialog Constructor
__createResultItem Private slot to create a new item in the result list.
__createSummaryItem Private slot to create a new item in the summary list.
__finish Private slot called when the action finished or the user pressed the button.
__resizeResultColumns Private method to resize the list columns.
__resizeSummaryColumns Private method to resize the list columns.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
start Public slot to start the code metrics determination.

CodeMetricsDialog (Constructor)

CodeMetricsDialog(parent = None)

Constructor

parent
parent widget (QWidget)

CodeMetricsDialog.__createResultItem

__createResultItem(parent, strings)

Private slot to create a new item in the result list.

parent
parent of the new item (QTreeWidget or QTreeWidgetItem)
strings
strings to be displayed (QStringList)
Returns:
the generated item

CodeMetricsDialog.__createSummaryItem

__createSummaryItem(col0, col1)

Private slot to create a new item in the summary list.

col0
string for column 0 (string or QString)
col1
string for column 1 (string or QString)

CodeMetricsDialog.__finish

__finish()

Private slot called when the action finished or the user pressed the button.

CodeMetricsDialog.__resizeResultColumns

__resizeResultColumns()

Private method to resize the list columns.

CodeMetricsDialog.__resizeSummaryColumns

__resizeSummaryColumns()

Private method to resize the list columns.

CodeMetricsDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button
button that was clicked (QAbstractButton)

CodeMetricsDialog.start

start(fn)

Public slot to start the code metrics determination.

fn
file or list of files or directory to be show the code metrics for (string or list of strings)
Up