# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'LDMP/gui\DlgPlot.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_DlgPlot(object):
    def setupUi(self, DlgPlot):
        DlgPlot.setObjectName(_fromUtf8("DlgPlot"))
        DlgPlot.resize(632, 296)
        self.verticalLayout = QtGui.QVBoxLayout(DlgPlot)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.plot_window = PlotWidget(DlgPlot)
        self.plot_window.setObjectName(_fromUtf8("plot_window"))
        self.verticalLayout.addWidget(self.plot_window)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.save_image = QtGui.QPushButton(DlgPlot)
        self.save_image.setMinimumSize(QtCore.QSize(0, 30))
        self.save_image.setObjectName(_fromUtf8("save_image"))
        self.gridLayout.addWidget(self.save_image, 0, 0, 1, 1)
        self.save_data = QtGui.QPushButton(DlgPlot)
        self.save_data.setMinimumSize(QtCore.QSize(0, 30))
        self.save_data.setObjectName(_fromUtf8("save_data"))
        self.gridLayout.addWidget(self.save_data, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)

        self.retranslateUi(DlgPlot)
        QtCore.QMetaObject.connectSlotsByName(DlgPlot)

    def retranslateUi(self, DlgPlot):
        DlgPlot.setWindowTitle(_translate("DlgPlot", "trends.earth plot", None))
        self.save_image.setText(_translate("DlgPlot", "Save image", None))
        self.save_data.setText(_translate("DlgPlot", "Save data", None))

from pyqtgraph import PlotWidget

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    DlgPlot = QtGui.QDialog()
    ui = Ui_DlgPlot()
    ui.setupUi(DlgPlot)
    DlgPlot.show()
    sys.exit(app.exec_())

