#NEWLINE# def setValidateTooltipText( self ) : #NEWLINE# #INDENT# if ( self . modelManager . modelXbrl and ( not self . modelManager . modelXbrl . isClosed ) and ( self . modelManager . modelXbrl . modelDocument is not None ) ) : #NEWLINE# #INDENT# valType = self . modelManager . modelXbrl . modelDocument . type #NEWLINE# if ( valType in ( ModelDocument . Type . SCHEMA , ModelDocument . Type . LINKBASE ) ) : #NEWLINE# #INDENT# valName = 'DTS' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# valName = ModelDocument . Type . typeName [ valType ] #NEWLINE# #UNINDENT# if ( valType == ModelDocument . Type . VERSIONINGREPORT ) : #NEWLINE# #INDENT# v = _ ( 'Validate versioning report' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . modelManager . validateCalcLB : #NEWLINE# #INDENT# if self . modelManager . validateInferDecimals : #NEWLINE# #INDENT# c = _ ( '\nCheck calculations (infer decimals)' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# c = _ ( '\nCheck calculations (infer precision)' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# c = '' #NEWLINE# #UNINDENT# if self . modelManager . validateUtr : #NEWLINE# #INDENT# u = _ ( '\nCheck unit type registry' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# u = '' #NEWLINE# #UNINDENT# if self . modelManager . validateDisclosureSystem : #NEWLINE# #INDENT# v = _ ( 'Validate {0}\nCheck disclosure system rules\n{1}{2}{3}' ) . format ( valName , self . modelManager . disclosureSystem . selection , c , u ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# v = _ ( 'Validate {0}{1}{2}' ) . format ( valName , c , u ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# v = _ ( 'Validate' ) #NEWLINE# #UNINDENT# self . validateTooltipText . set ( v )