# Path: source/gui/panconvert_diag_help.py
# class Ui_Information_Dialog(object):
#     def setupUi(self, Information_Dialog):
#         Information_Dialog.setObjectName("Information_Dialog")
#         Information_Dialog.resize(492, 575)
#         self.gridLayout = QtWidgets.QGridLayout(Information_Dialog)
#         self.gridLayout.setObjectName("gridLayout")
#         self.horizontalLayout = QtWidgets.QHBoxLayout()
#         self.horizontalLayout.setObjectName("horizontalLayout")
#         self.ButtonCancel = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonCancel.setObjectName("ButtonCancel")
#         self.horizontalLayout.addWidget(self.ButtonCancel)
#         self.ButtonHelpPanconvert = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonHelpPanconvert.setObjectName("ButtonHelpPanconvert")
#         self.horizontalLayout.addWidget(self.ButtonHelpPanconvert)
#         self.ButtonHelpPandoc = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonHelpPandoc.setObjectName("ButtonHelpPandoc")
#         self.horizontalLayout.addWidget(self.ButtonHelpPandoc)
#         self.ButtonBackward = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonBackward.setObjectName("ButtonBackward")
#         self.horizontalLayout.addWidget(self.ButtonBackward)
#         self.ButtonForward = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonForward.setObjectName("ButtonForward")
#         self.horizontalLayout.addWidget(self.ButtonForward)
#         self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
#         self.textBrowser = QtWebEngineWidgets.QWebEngineView(Information_Dialog)
#         self.textBrowser.setObjectName("textBrowser")
#         self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 1)
# 
#         self.retranslateUi(Information_Dialog)
#         QtCore.QMetaObject.connectSlotsByName(Information_Dialog)
# 
#     def retranslateUi(self, Information_Dialog):
#         _translate = QtCore.QCoreApplication.translate
#         Information_Dialog.setWindowTitle(_translate("Information_Dialog", "Help"))
#         self.ButtonCancel.setText(_translate("Information_Dialog", "Cancel"))
#         self.ButtonHelpPanconvert.setText(_translate("Information_Dialog", "Panconvert-Help"))
#         self.ButtonHelpPandoc.setText(_translate("Information_Dialog", "Pandoc-Help"))
#         self.ButtonBackward.setText(_translate("Information_Dialog", "<"))
#         self.ButtonForward.setText(_translate("Information_Dialog", ">"))


from PyQt5 import QtWidgets
from PyQt5 import QtCore
from PyQt5.QtCore import QSettings
from PyQt5.QtCore import QPoint, QSize
from source.gui.panconvert_diag_help import Ui_Information_Dialog

     def closeEvent(self, event):

        settings = QSettings('Pandoc', 'PanConvert')
        Dialog_Size = settings.value('Dialog_Size')
        if Dialog_Size is True or Dialog_Size == 'true':
            settings.setValue("Help_size", self.size())
            settings.setValue("Help_pos", self.pos())


        settings.sync()
        settings.status()

        HelpDialog.close(self)

     def helpPanconvert(self):
        website = 'http://panconvert.readthedocs.io'
        self.ui.textBrowser.load(QtCore.QUrl(website))

     def helpPandoc(self):
        website = 'http://pandoc.org/README.html'
        self.ui.textBrowser.load(QtCore.QUrl(website))

     def back(self):
         page = self.ui.textBrowser.page()
         history = page.history()
         history.back()


     def forward(self):

# Path: source/gui/panconvert_diag_help.py
# class Ui_Information_Dialog(object):
#     def setupUi(self, Information_Dialog):
#         Information_Dialog.setObjectName("Information_Dialog")
#         Information_Dialog.resize(492, 575)
#         self.gridLayout = QtWidgets.QGridLayout(Information_Dialog)
#         self.gridLayout.setObjectName("gridLayout")
#         self.horizontalLayout = QtWidgets.QHBoxLayout()
#         self.horizontalLayout.setObjectName("horizontalLayout")
#         self.ButtonCancel = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonCancel.setObjectName("ButtonCancel")
#         self.horizontalLayout.addWidget(self.ButtonCancel)
#         self.ButtonHelpPanconvert = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonHelpPanconvert.setObjectName("ButtonHelpPanconvert")
#         self.horizontalLayout.addWidget(self.ButtonHelpPanconvert)
#         self.ButtonHelpPandoc = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonHelpPandoc.setObjectName("ButtonHelpPandoc")
#         self.horizontalLayout.addWidget(self.ButtonHelpPandoc)
#         self.ButtonBackward = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonBackward.setObjectName("ButtonBackward")
#         self.horizontalLayout.addWidget(self.ButtonBackward)
#         self.ButtonForward = QtWidgets.QPushButton(Information_Dialog)
#         self.ButtonForward.setObjectName("ButtonForward")
#         self.horizontalLayout.addWidget(self.ButtonForward)
#         self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
#         self.textBrowser = QtWebEngineWidgets.QWebEngineView(Information_Dialog)
#         self.textBrowser.setObjectName("textBrowser")
#         self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 1)
# 
#         self.retranslateUi(Information_Dialog)
#         QtCore.QMetaObject.connectSlotsByName(Information_Dialog)
# 
#     def retranslateUi(self, Information_Dialog):
#         _translate = QtCore.QCoreApplication.translate
#         Information_Dialog.setWindowTitle(_translate("Information_Dialog", "Help"))
#         self.ButtonCancel.setText(_translate("Information_Dialog", "Cancel"))
#         self.ButtonHelpPanconvert.setText(_translate("Information_Dialog", "Panconvert-Help"))
#         self.ButtonHelpPandoc.setText(_translate("Information_Dialog", "Pandoc-Help"))
#         self.ButtonBackward.setText(_translate("Information_Dialog", "<"))
#         self.ButtonForward.setText(_translate("Information_Dialog", ">"))


# Path: source/dialogs/dialog_help.py
from PyQt5 import QtWidgets
from PyQt5 import QtCore
from PyQt5.QtCore import QSettings
from PyQt5.QtCore import QPoint, QSize
from source.gui.panconvert_diag_help import Ui_Information_Dialog


     def closeEvent(self, event):

        settings = QSettings('Pandoc', 'PanConvert')
        Dialog_Size = settings.value('Dialog_Size')
        if Dialog_Size is True or Dialog_Size == 'true':
            settings.setValue("Help_size", self.size())
            settings.setValue("Help_pos", self.pos())


        settings.sync()
        settings.status()

        HelpDialog.close(self)

     def helpPanconvert(self):
        website = 'http://panconvert.readthedocs.io'
        self.ui.textBrowser.load(QtCore.QUrl(website))

     def helpPandoc(self):
        website = 'http://pandoc.org/README.html'
        self.ui.textBrowser.load(QtCore.QUrl(website))

     def back(self):
         page = self.ui.textBrowser.page()
         history = page.history()
         history.back()


     def forward(self):

         page = self.ui.textBrowser.page()