#NEWLINE# def __init__( self , parent ) : #NEWLINE# #INDENT# super ( CaseReportsWindow , self ) . __init__ ( ) #NEWLINE# self . mainLayout = qt . QVBoxLayout ( self ) #NEWLINE# self . setLayout ( parent . mainLayout ) #NEWLINE# self . resize ( 400 , 300 ) #NEWLINE# self . label = qt . QLabel ( 'Data stored in the module: ' ) #NEWLINE# self . label . setStyleSheet ( 'margin: 10px 0 15px 0' ) #NEWLINE# self . mainLayout . addWidget ( self . label ) #NEWLINE# self . tableView = qt . QTableView ( ) #NEWLINE# self . tableView . setColumnWidth ( 0 , 125 ) #NEWLINE# self . tableView . setSizePolicy ( qt . QSizePolicy . Expanding , qt . QSizePolicy . Expanding ) #NEWLINE# self . mainLayout . addWidget ( self . tableView ) #NEWLINE# self . exportButton = ctk . ctkPushButton ( ) #NEWLINE# self . exportButton . text = 'Export' #NEWLINE# self . exportButton . setFixedWidth ( 150 ) #NEWLINE# self . exportButton . setIcon ( qt . QIcon ( '{0}/export-csv.png' . format ( SlicerUtil . CIP_ICON_DIR ) ) ) #NEWLINE# self . exportButton . setIconSize ( qt . QSize ( 24 , 24 ) ) #NEWLINE# self . mainLayout . addWidget ( self . exportButton ) #NEWLINE# self . removeButton = ctk . ctkPushButton ( ) #NEWLINE# self . removeButton . text = 'Clean cache' #NEWLINE# self . removeButton . setIcon ( qt . QIcon ( '{0}/delete.png' . format ( SlicerUtil . CIP_ICON_DIR ) ) ) #NEWLINE# self . removeButton . setIconSize ( qt . QSize ( 24 , 24 ) ) #NEWLINE# self . removeButton . setFixedWidth ( 150 ) #NEWLINE# self . mainLayout . addWidget ( self . removeButton ) #NEWLINE# self . exportButton . connect ( 'clicked()' , parent . onExport ) #NEWLINE# self . removeButton . connect ( 'clicked()' , parent . onRemoveStoredData )