class AboutDialog(QDialog):
    '''
    About dialog to display program about information.
    '''


    def __init__(self, parent=None):
        '''
        Constructor
        '''
        QDialog.__init__(self, parent)
        self._ui = Ui_AboutDialog()
        self._ui.setupUi(self)
        text = self._ui.aboutTextLabel.text()
        self._ui.aboutTextLabel.setText(text.replace('##version##', info.VERSION_STRING))
        self._makeConnections()

    def _makeConnections(self):
        self._ui.btn_Credits.clicked.connect(self.showCreditsDialog)
        self._ui.btn_License.clicked.connect(self.showLicenseDialog)

    def showCreditsDialog(self):
        from mapclient.widgets.creditsdialog import CreditsDialog
        dlg = CreditsDialog(self)
        dlg.setModal(True)
        dlg.exec_()

    def showLicenseDialog(self):
        from mapclient.widgets.licensedialog import LicenseDialog
        dlg = LicenseDialog(self)
        dlg.setModal(True)
        dlg.exec_()
 def __init__(self, parent=None):
     '''
     Constructor
     '''
     QDialog.__init__(self, parent)
     self._ui = Ui_AboutDialog()
     self._ui.setupUi(self)
     text = self._ui.aboutTextLabel.text()
     self._ui.aboutTextLabel.setText(text.replace('##version##', info.VERSION_STRING))
     self._makeConnections()