"""
    validate_protein_gui.py
    Copyright (C) 2015 The University of York
    Author: Jon Agirre

"""

from PyQt4 import QtGui,QtCore
from CCP4TaskWidget import CTaskWidget

class validate_protein_gui(CTaskWidget):

    TASKNAME = 'validate_protein'
    TASKVERSION = 0.1
    TASKMODULE='validation'
    TASKTITLE='Analyse model geometry'
    SHORTTASKTITLE='Analyse geometry'
    DESCRIPTION = 'Calculate mean B-factors, Ramachandran plots and other metrics to aid in validation (Clipper)'

    def __init__(self,parent):
        CTaskWidget.__init__(self,parent)

    def drawContents(self):
        self.setProgramHelpFile ( 'validate_protein' )
        
        self.openFolder ( folderFunction='inputData' )
        
        self.createLine ( [ 'subtitle', 'Input data', 'Enter the coordinates you want to validate, and the original data from which to calculate maps' ] )
        self.openSubFrame ( frame=[True] )
        self.createLine ( [ 'widget', 'XYZIN' ] )
        self.createLine ( [ 'widget', 'F_SIGF' ] )
        self.closeSubFrame ( )
        
        self.closeFolder ( )


