# -*- coding: utf-8 -*-
"""
/***************************************************************************
 G2DDialog
                                 A QGIS plugin
  
 Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
                             -------------------
        begin                : 2019-05-13
        git sha              : $Format:%H$
        copyright            : (C) 2019 by KICT, Hermesys
        email                : shpark@hermesys.co.kr
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""
import os
from PyQt5 import uic
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QDockWidget
from .lib.File_Class import *
from .lib.Util import *

FORM_CLASS, _ = uic.loadUiType(os.path.join(os.path.dirname(__file__), 'about.ui'))
class AboutDialog(QtWidgets.QDialog, FORM_CLASS):
    def __init__(self, parent=None):
        super(AboutDialog, self).__init__(parent)
        self.setupUi(self)
        self.iniControl()

    def iniControl(self):
        self.btn_Open_Manual.clicked.connect(self.click_manual)

    # 메뉴얼 실행
    def click_manual(self):
        psd = GetScriptDirectory_Path() + 'Manual/QGIS_G2D_User_Manual.pdf' 
        os.startfile(psd) 
