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