OpenSecurity/bin/ui/ui_ConfigureDialog.py
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Wed, 02 Apr 2014 13:22:04 +0200
changeset 123 5e944224e384
parent 122 d14cb9350dd4
child 186 e6c5d9ec9f6d
permissions -rw-r--r--
kicked log tab again ... no use :(
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@123
     5
# Created: Wed Apr  2 13:21:51 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@123
    29
        ConfigureDialog.resize(474, 416)
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@123
    34
        self.lyMain = QtGui.QVBoxLayout(ConfigureDialog)
oliver@123
    35
        self.lyMain.setObjectName(_fromUtf8("lyMain"))
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@123
    65
        self.lyMain.addLayout(self.lyHeading)
oliver@123
    66
        self.lblTemplate = QtGui.QLabel(ConfigureDialog)
oliver@106
    67
        self.lblTemplate.setObjectName(_fromUtf8("lblTemplate"))
oliver@123
    68
        self.lyMain.addWidget(self.lblTemplate)
oliver@123
    69
        self.tvTemplate = QtGui.QTreeWidget(ConfigureDialog)
oliver@100
    70
        self.tvTemplate.setMaximumSize(QtCore.QSize(16777215, 64))
oliver@108
    71
        self.tvTemplate.setRootIsDecorated(False)
oliver@108
    72
        self.tvTemplate.setItemsExpandable(False)
oliver@108
    73
        self.tvTemplate.setAllColumnsShowFocus(True)
oliver@100
    74
        self.tvTemplate.setObjectName(_fromUtf8("tvTemplate"))
oliver@123
    75
        self.lyMain.addWidget(self.tvTemplate)
oliver@100
    76
        self.lyDownload = QtGui.QHBoxLayout()
oliver@100
    77
        self.lyDownload.setObjectName(_fromUtf8("lyDownload"))
oliver@100
    78
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
oliver@100
    79
        self.lyDownload.addItem(spacerItem)
oliver@123
    80
        self.btnDownload = QtGui.QPushButton(ConfigureDialog)
oliver@100
    81
        self.btnDownload.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
    82
        self.btnDownload.setObjectName(_fromUtf8("btnDownload"))
oliver@100
    83
        self.lyDownload.addWidget(self.btnDownload)
oliver@123
    84
        self.btnImport = QtGui.QPushButton(ConfigureDialog)
oliver@100
    85
        self.btnImport.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
    86
        self.btnImport.setObjectName(_fromUtf8("btnImport"))
oliver@100
    87
        self.lyDownload.addWidget(self.btnImport)
oliver@123
    88
        self.lyMain.addLayout(self.lyDownload)
oliver@123
    89
        self.lblMachines = QtGui.QLabel(ConfigureDialog)
oliver@106
    90
        self.lblMachines.setObjectName(_fromUtf8("lblMachines"))
oliver@123
    91
        self.lyMain.addWidget(self.lblMachines)
oliver@123
    92
        self.tvMachines = QtGui.QTreeWidget(ConfigureDialog)
oliver@100
    93
        self.tvMachines.setMaximumSize(QtCore.QSize(16777215, 128))
oliver@108
    94
        self.tvMachines.setRootIsDecorated(False)
oliver@108
    95
        self.tvMachines.setItemsExpandable(False)
oliver@108
    96
        self.tvMachines.setAllColumnsShowFocus(True)
oliver@100
    97
        self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
oliver@123
    98
        self.lyMain.addWidget(self.tvMachines)
oliver@123
    99
        self.lblProgress = QtGui.QLabel(ConfigureDialog)
oliver@106
   100
        self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
oliver@123
   101
        self.lyMain.addWidget(self.lblProgress)
oliver@123
   102
        self.edtProgress = QtGui.QPlainTextEdit(ConfigureDialog)
oliver@100
   103
        font = QtGui.QFont()
oliver@100
   104
        font.setFamily(_fromUtf8("Monospace"))
oliver@100
   105
        font.setPointSize(10)
oliver@106
   106
        self.edtProgress.setFont(font)
oliver@106
   107
        self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
oliver@109
   108
        self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
oliver@106
   109
        self.edtProgress.setReadOnly(True)
oliver@108
   110
        self.edtProgress.setPlainText(_fromUtf8(""))
oliver@106
   111
        self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
oliver@123
   112
        self.lyMain.addWidget(self.edtProgress)
oliver@100
   113
        self.lyButton = QtGui.QHBoxLayout()
oliver@100
   114
        self.lyButton.setObjectName(_fromUtf8("lyButton"))
oliver@100
   115
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
oliver@100
   116
        self.lyButton.addItem(spacerItem1)
oliver@100
   117
        self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
oliver@100
   118
        self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   119
        self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
oliver@100
   120
        self.lyButton.addWidget(self.btnRefresh)
oliver@100
   121
        self.btnAbout = QtGui.QPushButton(ConfigureDialog)
oliver@100
   122
        self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   123
        self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
oliver@100
   124
        self.lyButton.addWidget(self.btnAbout)
oliver@100
   125
        self.btnClose = QtGui.QPushButton(ConfigureDialog)
oliver@100
   126
        self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   127
        self.btnClose.setDefault(True)
oliver@100
   128
        self.btnClose.setObjectName(_fromUtf8("btnClose"))
oliver@100
   129
        self.lyButton.addWidget(self.btnClose)
oliver@123
   130
        self.lyMain.addLayout(self.lyButton)
oliver@123
   131
        self.lblVersion.setBuddy(self.edtVersion)
oliver@123
   132
        self.lblStatus.setBuddy(self.edtStatus)
oliver@123
   133
        self.lblTemplate.setBuddy(self.tvTemplate)
oliver@123
   134
        self.lblMachines.setBuddy(self.tvMachines)
oliver@123
   135
        self.lblProgress.setBuddy(self.edtProgress)
oliver@100
   136
oliver@100
   137
        self.retranslateUi(ConfigureDialog)
oliver@100
   138
        QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
oliver@106
   139
        ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
oliver@106
   140
        ConfigureDialog.setTabOrder(self.edtVersion, self.tvTemplate)
oliver@100
   141
        ConfigureDialog.setTabOrder(self.tvTemplate, self.btnDownload)
oliver@100
   142
        ConfigureDialog.setTabOrder(self.btnDownload, self.btnImport)
oliver@100
   143
        ConfigureDialog.setTabOrder(self.btnImport, self.tvMachines)
oliver@106
   144
        ConfigureDialog.setTabOrder(self.tvMachines, self.edtProgress)
oliver@106
   145
        ConfigureDialog.setTabOrder(self.edtProgress, self.btnRefresh)
oliver@100
   146
        ConfigureDialog.setTabOrder(self.btnRefresh, self.btnAbout)
oliver@100
   147
        ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
oliver@100
   148
oliver@100
   149
    def retranslateUi(self, ConfigureDialog):
oliver@100
   150
        ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
oliver@106
   151
        self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
oliver@106
   152
        self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
oliver@106
   153
        self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
oliver@100
   154
        self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
oliver@100
   155
        self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
oliver@100
   156
        self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
oliver@108
   157
        self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
oliver@100
   158
        self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
oliver@100
   159
        self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
oliver@106
   160
        self.lblMachines.setText(_translate("ConfigureDialog", "Machines:", None))
oliver@100
   161
        self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
oliver@106
   162
        self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
oliver@100
   163
        self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
oliver@100
   164
        self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
oliver@100
   165
        self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
oliver@100
   166
oliver@100
   167
import opensecurity_rc