<reponame>WebberHuang/DeformationLearningSolver<gh_stars>100-1000
__author__ = "<NAME>"
__contact__ = "<EMAIL>"
__website__ = "http://riggingtd.com"

try:
    from PySide import QtGui, QtCore
    from PySide.QtGui import *
    from PySide.QtCore import *
except ImportError:
    from PySide2 import QtGui, QtCore, QtWidgets
    from PySide2.QtGui import *
    from PySide2.QtCore import *
    from PySide2.QtWidgets import *


########################################################################
class BaseOptionWindow(QMainWindow):
    """"""
    _TITLE = ''

    #----------------------------------------------------------------------
    def __init__(self, parent = None):
        """Constructor"""
        super(BaseOptionWindow, self).__init__(parent)
        #QMainWindow.__init__(self, parent)
        #self.initWidgets()
            
    #----------------------------------------------------------------------
    def initWidgets(self):
        NotImplemented      

    #----------------------------------------------------------------------
    def resetSettings(self):
        NotImplemented

    #----------------------------------------------------------------------
    def readSettings(self):
        NotImplemented

    #----------------------------------------------------------------------
    def writeSettings(self):
        NotImplemented
    
    #----------------------------------------------------------------------
    @Slot()
    def on_save_btn_clicked(self):
        self.writeSettings()        
        self.close()

    #----------------------------------------------------------------------
    @Slot()
    def on_cancel_btn_clicked(self):
        self.close()

    #----------------------------------------------------------------------
    def showUI(self):
        """"""
        self.readSettings()
        self.show()