# Path: PyContact/core/LoadConfiguration.py
# class Configuration(object):
#     """Sets the current configuration."""
#     def __init__(self, psf, dcd, cutoff, hbondcutoff, hbondcutangle, sel1text, sel2text):
#         super(Configuration, self).__init__()
#         self.psf = psf
#         self.dcd = dcd
#         self.cutoff = cutoff
#         self.hbondcutoff = hbondcutoff
#         self.hbondcutangle = hbondcutangle
#         self.sel1text = sel1text
#         self.sel2text = sel2text
# 
# Path: PyContact/gui/HelpButton.py
# class HelpButton(PicButton):
#     def __init__(self, parent=None):
#         helpImage = QImage("/home/max/help.png")
#         helpPixmap = QPixmap.fromImage(helpImage)
#         super(HelpButton, self).__init__(helpPixmap, parent)


from PyQt5.QtWidgets import QDialog, QGridLayout, QPushButton, QLabel, QLineEdit, QDialogButtonBox, QFileDialog, QCheckBox
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QDoubleValidator
from ..core.LoadConfiguration import Configuration
from .HelpButton import HelpButton



class TopoTrajLoaderDialog(QDialog):
    """Dialog to load the topology and trajectory file."""
    def __init__(self, parent=None):
        super(TopoTrajLoaderDialog, self).__init__(parent)
        self.setWindowTitle("Load Data")
        self.psf = ""
        self.dcd = ""

        grid = QGridLayout(self)

        buttonPsf = QPushButton("Topology")
        buttonPsf.clicked.connect(self.pick_psf)

        buttonDcd = QPushButton("Trajectory")
        buttonDcd.clicked.connect(self.pick_dcd)


# Path: PyContact/core/LoadConfiguration.py
# class Configuration(object):
#     """Sets the current configuration."""
#     def __init__(self, psf, dcd, cutoff, hbondcutoff, hbondcutangle, sel1text, sel2text):
#         super(Configuration, self).__init__()
#         self.psf = psf
#         self.dcd = dcd
#         self.cutoff = cutoff
#         self.hbondcutoff = hbondcutoff
#         self.hbondcutangle = hbondcutangle
#         self.sel1text = sel1text
#         self.sel2text = sel2text
# 
# Path: PyContact/gui/HelpButton.py
# class HelpButton(PicButton):
#     def __init__(self, parent=None):
#         helpImage = QImage("/home/max/help.png")
#         helpPixmap = QPixmap.fromImage(helpImage)
#         super(HelpButton, self).__init__(helpPixmap, parent)


# Path: PyContact/gui/Dialogues.py
from PyQt5.QtWidgets import QDialog, QGridLayout, QPushButton, QLabel, QLineEdit, QDialogButtonBox, QFileDialog, QCheckBox
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QDoubleValidator
from ..core.LoadConfiguration import Configuration
from .HelpButton import HelpButton




class TopoTrajLoaderDialog(QDialog):
    """Dialog to load the topology and trajectory file."""
    def __init__(self, parent=None):
        super(TopoTrajLoaderDialog, self).__init__(parent)
        self.setWindowTitle("Load Data")
        self.psf = ""
        self.dcd = ""

        grid = QGridLayout(self)

        buttonPsf = QPushButton("Topology")
        buttonPsf.clicked.connect(self.pick_psf)

        buttonDcd = QPushButton("Trajectory")
        buttonDcd.clicked.connect(self.pick_dcd)


        helpButton = HelpButton()