OpenSecurity/bin/ui/ui_ConfigureDialog.py
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Wed, 02 Apr 2014 12:52:22 +0200
changeset 120 52c1face04d3
parent 109 eed302e7be4d
child 122 d14cb9350dd4
permissions -rw-r--r--
log tab on configue dialog
     1 # -*- coding: utf-8 -*-
     2 
     3 # Form implementation generated from reading ui file 'ConfigureDialog.ui'
     4 #
     5 # Created: Wed Apr  2 12:52:07 2014
     6 #      by: PyQt4 UI code generator 4.10.3
     7 #
     8 # WARNING! All changes made in this file will be lost!
     9 
    10 from PyQt4 import QtCore, QtGui
    11 
    12 try:
    13     _fromUtf8 = QtCore.QString.fromUtf8
    14 except AttributeError:
    15     def _fromUtf8(s):
    16         return s
    17 
    18 try:
    19     _encoding = QtGui.QApplication.UnicodeUTF8
    20     def _translate(context, text, disambig):
    21         return QtGui.QApplication.translate(context, text, disambig, _encoding)
    22 except AttributeError:
    23     def _translate(context, text, disambig):
    24         return QtGui.QApplication.translate(context, text, disambig)
    25 
    26 class Ui_ConfigureDialog(object):
    27     def setupUi(self, ConfigureDialog):
    28         ConfigureDialog.setObjectName(_fromUtf8("ConfigureDialog"))
    29         ConfigureDialog.resize(400, 455)
    30         icon = QtGui.QIcon()
    31         icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
    32         ConfigureDialog.setWindowIcon(icon)
    33         ConfigureDialog.setSizeGripEnabled(True)
    34         self.verticalLayout_3 = QtGui.QVBoxLayout(ConfigureDialog)
    35         self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
    36         self.lyHeading = QtGui.QHBoxLayout()
    37         self.lyHeading.setSpacing(8)
    38         self.lyHeading.setContentsMargins(8, -1, -1, 8)
    39         self.lyHeading.setObjectName(_fromUtf8("lyHeading"))
    40         self.lblIcon = QtGui.QLabel(ConfigureDialog)
    41         self.lblIcon.setText(_fromUtf8(""))
    42         self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_configure_64.png")))
    43         self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
    44         self.lyHeading.addWidget(self.lblIcon)
    45         self.lyStatus = QtGui.QGridLayout()
    46         self.lyStatus.setObjectName(_fromUtf8("lyStatus"))
    47         self.edtStatus = QtGui.QLineEdit(ConfigureDialog)
    48         self.edtStatus.setReadOnly(True)
    49         self.edtStatus.setObjectName(_fromUtf8("edtStatus"))
    50         self.lyStatus.addWidget(self.edtStatus, 0, 1, 1, 1)
    51         self.lblVersion = QtGui.QLabel(ConfigureDialog)
    52         self.lblVersion.setObjectName(_fromUtf8("lblVersion"))
    53         self.lyStatus.addWidget(self.lblVersion, 1, 0, 1, 1)
    54         self.edtVersion = QtGui.QLineEdit(ConfigureDialog)
    55         self.edtVersion.setReadOnly(True)
    56         self.edtVersion.setObjectName(_fromUtf8("edtVersion"))
    57         self.lyStatus.addWidget(self.edtVersion, 1, 1, 1, 1)
    58         self.lblStatus = QtGui.QLabel(ConfigureDialog)
    59         self.lblStatus.setObjectName(_fromUtf8("lblStatus"))
    60         self.lyStatus.addWidget(self.lblStatus, 0, 0, 1, 1)
    61         self.wdStatus = QtGui.QWidget(ConfigureDialog)
    62         self.wdStatus.setObjectName(_fromUtf8("wdStatus"))
    63         self.lyStatus.addWidget(self.wdStatus, 2, 0, 1, 2)
    64         self.lyHeading.addLayout(self.lyStatus)
    65         self.verticalLayout_3.addLayout(self.lyHeading)
    66         self.tabConfig = QtGui.QTabWidget(ConfigureDialog)
    67         self.tabConfig.setObjectName(_fromUtf8("tabConfig"))
    68         self.tbConfig = QtGui.QWidget()
    69         self.tbConfig.setObjectName(_fromUtf8("tbConfig"))
    70         self.lyConfig = QtGui.QVBoxLayout(self.tbConfig)
    71         self.lyConfig.setObjectName(_fromUtf8("lyConfig"))
    72         self.lblTemplate = QtGui.QLabel(self.tbConfig)
    73         self.lblTemplate.setObjectName(_fromUtf8("lblTemplate"))
    74         self.lyConfig.addWidget(self.lblTemplate)
    75         self.tvTemplate = QtGui.QTreeWidget(self.tbConfig)
    76         self.tvTemplate.setMaximumSize(QtCore.QSize(16777215, 64))
    77         self.tvTemplate.setRootIsDecorated(False)
    78         self.tvTemplate.setItemsExpandable(False)
    79         self.tvTemplate.setAllColumnsShowFocus(True)
    80         self.tvTemplate.setObjectName(_fromUtf8("tvTemplate"))
    81         self.lyConfig.addWidget(self.tvTemplate)
    82         self.lyDownload = QtGui.QHBoxLayout()
    83         self.lyDownload.setObjectName(_fromUtf8("lyDownload"))
    84         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
    85         self.lyDownload.addItem(spacerItem)
    86         self.btnDownload = QtGui.QPushButton(self.tbConfig)
    87         self.btnDownload.setMinimumSize(QtCore.QSize(100, 0))
    88         self.btnDownload.setObjectName(_fromUtf8("btnDownload"))
    89         self.lyDownload.addWidget(self.btnDownload)
    90         self.btnImport = QtGui.QPushButton(self.tbConfig)
    91         self.btnImport.setMinimumSize(QtCore.QSize(100, 0))
    92         self.btnImport.setObjectName(_fromUtf8("btnImport"))
    93         self.lyDownload.addWidget(self.btnImport)
    94         self.lyConfig.addLayout(self.lyDownload)
    95         self.lblMachines = QtGui.QLabel(self.tbConfig)
    96         self.lblMachines.setObjectName(_fromUtf8("lblMachines"))
    97         self.lyConfig.addWidget(self.lblMachines)
    98         self.tvMachines = QtGui.QTreeWidget(self.tbConfig)
    99         self.tvMachines.setMaximumSize(QtCore.QSize(16777215, 128))
   100         self.tvMachines.setRootIsDecorated(False)
   101         self.tvMachines.setItemsExpandable(False)
   102         self.tvMachines.setAllColumnsShowFocus(True)
   103         self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
   104         self.lyConfig.addWidget(self.tvMachines)
   105         self.lblProgress = QtGui.QLabel(self.tbConfig)
   106         self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
   107         self.lyConfig.addWidget(self.lblProgress)
   108         self.edtProgress = QtGui.QPlainTextEdit(self.tbConfig)
   109         font = QtGui.QFont()
   110         font.setFamily(_fromUtf8("Monospace"))
   111         font.setPointSize(10)
   112         self.edtProgress.setFont(font)
   113         self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
   114         self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
   115         self.edtProgress.setReadOnly(True)
   116         self.edtProgress.setPlainText(_fromUtf8(""))
   117         self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
   118         self.lyConfig.addWidget(self.edtProgress)
   119         self.tabConfig.addTab(self.tbConfig, _fromUtf8(""))
   120         self.tbLog = QtGui.QWidget()
   121         self.tbLog.setObjectName(_fromUtf8("tbLog"))
   122         self.lyLog = QtGui.QVBoxLayout(self.tbLog)
   123         self.lyLog.setObjectName(_fromUtf8("lyLog"))
   124         self.edtLog = QtGui.QPlainTextEdit(self.tbLog)
   125         self.edtLog.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
   126         self.edtLog.setReadOnly(True)
   127         self.edtLog.setObjectName(_fromUtf8("edtLog"))
   128         self.lyLog.addWidget(self.edtLog)
   129         self.tabConfig.addTab(self.tbLog, _fromUtf8(""))
   130         self.verticalLayout_3.addWidget(self.tabConfig)
   131         self.lyButton = QtGui.QHBoxLayout()
   132         self.lyButton.setObjectName(_fromUtf8("lyButton"))
   133         spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
   134         self.lyButton.addItem(spacerItem1)
   135         self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
   136         self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
   137         self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
   138         self.lyButton.addWidget(self.btnRefresh)
   139         self.btnAbout = QtGui.QPushButton(ConfigureDialog)
   140         self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
   141         self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
   142         self.lyButton.addWidget(self.btnAbout)
   143         self.btnClose = QtGui.QPushButton(ConfigureDialog)
   144         self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
   145         self.btnClose.setDefault(True)
   146         self.btnClose.setObjectName(_fromUtf8("btnClose"))
   147         self.lyButton.addWidget(self.btnClose)
   148         self.verticalLayout_3.addLayout(self.lyButton)
   149 
   150         self.retranslateUi(ConfigureDialog)
   151         self.tabConfig.setCurrentIndex(0)
   152         QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
   153         ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
   154         ConfigureDialog.setTabOrder(self.edtVersion, self.tvTemplate)
   155         ConfigureDialog.setTabOrder(self.tvTemplate, self.btnDownload)
   156         ConfigureDialog.setTabOrder(self.btnDownload, self.btnImport)
   157         ConfigureDialog.setTabOrder(self.btnImport, self.tvMachines)
   158         ConfigureDialog.setTabOrder(self.tvMachines, self.edtProgress)
   159         ConfigureDialog.setTabOrder(self.edtProgress, self.btnRefresh)
   160         ConfigureDialog.setTabOrder(self.btnRefresh, self.btnAbout)
   161         ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
   162 
   163     def retranslateUi(self, ConfigureDialog):
   164         ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
   165         self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
   166         self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
   167         self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
   168         self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
   169         self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
   170         self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
   171         self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
   172         self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
   173         self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
   174         self.lblMachines.setText(_translate("ConfigureDialog", "Machines:", None))
   175         self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
   176         self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
   177         self.tabConfig.setTabText(self.tabConfig.indexOf(self.tbConfig), _translate("ConfigureDialog", "Configuration", None))
   178         self.tabConfig.setTabText(self.tabConfig.indexOf(self.tbLog), _translate("ConfigureDialog", "Log", None))
   179         self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
   180         self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
   181         self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
   182 
   183 import opensecurity_rc