OpenSecurity/bin/ui/ui_ConfigureDialog.py
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Mon, 29 Sep 2014 12:42:58 +0200
changeset 224 dc7cee534574
parent 221 853af9cfab6a
permissions -rw-r--r--
fixed #19
     1 # -*- coding: utf-8 -*-
     2 
     3 # Form implementation generated from reading ui file 'ConfigureDialog.ui'
     4 #
     5 # Created: Mon Sep 29 12:42:08 2014
     6 #      by: PyQt4 UI code generator 4.11.2
     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(722, 521)
    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.lyMain = QtGui.QVBoxLayout(ConfigureDialog)
    35         self.lyMain.setObjectName(_fromUtf8("lyMain"))
    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.lyMain.addLayout(self.lyHeading)
    66         self.tabWidget = QtGui.QTabWidget(ConfigureDialog)
    67         self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
    68         self.tabConfiguration = QtGui.QWidget()
    69         self.tabConfiguration.setObjectName(_fromUtf8("tabConfiguration"))
    70         self.lyTabConfig = QtGui.QVBoxLayout(self.tabConfiguration)
    71         self.lyTabConfig.setObjectName(_fromUtf8("lyTabConfig"))
    72         self.lblTemplate = QtGui.QLabel(self.tabConfiguration)
    73         self.lblTemplate.setObjectName(_fromUtf8("lblTemplate"))
    74         self.lyTabConfig.addWidget(self.lblTemplate)
    75         self.tvTemplate = QtGui.QTreeWidget(self.tabConfiguration)
    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.lyTabConfig.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.tabConfiguration)
    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.tabConfiguration)
    91         self.btnImport.setMinimumSize(QtCore.QSize(100, 0))
    92         self.btnImport.setObjectName(_fromUtf8("btnImport"))
    93         self.lyDownload.addWidget(self.btnImport)
    94         self.btnUpdate = QtGui.QPushButton(self.tabConfiguration)
    95         self.btnUpdate.setMinimumSize(QtCore.QSize(100, 0))
    96         self.btnUpdate.setObjectName(_fromUtf8("btnUpdate"))
    97         self.lyDownload.addWidget(self.btnUpdate)
    98         self.lyTabConfig.addLayout(self.lyDownload)
    99         self.lblProgress = QtGui.QLabel(self.tabConfiguration)
   100         self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
   101         self.lyTabConfig.addWidget(self.lblProgress)
   102         self.edtProgress = QtGui.QPlainTextEdit(self.tabConfiguration)
   103         font = QtGui.QFont()
   104         font.setFamily(_fromUtf8("Monospace"))
   105         font.setPointSize(10)
   106         self.edtProgress.setFont(font)
   107         self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
   108         self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
   109         self.edtProgress.setReadOnly(True)
   110         self.edtProgress.setPlainText(_fromUtf8(""))
   111         self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
   112         self.lyTabConfig.addWidget(self.edtProgress)
   113         icon1 = QtGui.QIcon()
   114         icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/preferences-system.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   115         self.tabWidget.addTab(self.tabConfiguration, icon1, _fromUtf8(""))
   116         self.tabMachines = QtGui.QWidget()
   117         self.tabMachines.setObjectName(_fromUtf8("tabMachines"))
   118         self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabMachines)
   119         self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
   120         self.tvMachines = QtGui.QTreeWidget(self.tabMachines)
   121         self.tvMachines.setRootIsDecorated(True)
   122         self.tvMachines.setUniformRowHeights(True)
   123         self.tvMachines.setItemsExpandable(True)
   124         self.tvMachines.setAnimated(True)
   125         self.tvMachines.setAllColumnsShowFocus(True)
   126         self.tvMachines.setColumnCount(2)
   127         self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
   128         self.verticalLayout_2.addWidget(self.tvMachines)
   129         icon2 = QtGui.QIcon()
   130         icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/cpu.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   131         self.tabWidget.addTab(self.tabMachines, icon2, _fromUtf8(""))
   132         self.tabLog = QtGui.QWidget()
   133         self.tabLog.setObjectName(_fromUtf8("tabLog"))
   134         self.verticalLayout = QtGui.QVBoxLayout(self.tabLog)
   135         self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
   136         self.edtLog = QtGui.QPlainTextEdit(self.tabLog)
   137         font = QtGui.QFont()
   138         font.setFamily(_fromUtf8("Monospace"))
   139         font.setPointSize(10)
   140         self.edtLog.setFont(font)
   141         self.edtLog.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
   142         self.edtLog.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
   143         self.edtLog.setReadOnly(True)
   144         self.edtLog.setObjectName(_fromUtf8("edtLog"))
   145         self.verticalLayout.addWidget(self.edtLog)
   146         self.lyLog = QtGui.QHBoxLayout()
   147         self.lyLog.setObjectName(_fromUtf8("lyLog"))
   148         spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
   149         self.lyLog.addItem(spacerItem1)
   150         self.btnExplorer = QtGui.QPushButton(self.tabLog)
   151         self.btnExplorer.setMinimumSize(QtCore.QSize(100, 0))
   152         self.btnExplorer.setObjectName(_fromUtf8("btnExplorer"))
   153         self.lyLog.addWidget(self.btnExplorer)
   154         self.verticalLayout.addLayout(self.lyLog)
   155         icon3 = QtGui.QIcon()
   156         icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/text-x-log.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   157         self.tabWidget.addTab(self.tabLog, icon3, _fromUtf8(""))
   158         self.lyMain.addWidget(self.tabWidget)
   159         self.lyButton = QtGui.QHBoxLayout()
   160         self.lyButton.setObjectName(_fromUtf8("lyButton"))
   161         spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
   162         self.lyButton.addItem(spacerItem2)
   163         self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
   164         self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
   165         self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
   166         self.lyButton.addWidget(self.btnRefresh)
   167         self.btnAbout = QtGui.QPushButton(ConfigureDialog)
   168         self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
   169         self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
   170         self.lyButton.addWidget(self.btnAbout)
   171         self.btnClose = QtGui.QPushButton(ConfigureDialog)
   172         self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
   173         self.btnClose.setDefault(True)
   174         self.btnClose.setObjectName(_fromUtf8("btnClose"))
   175         self.lyButton.addWidget(self.btnClose)
   176         self.lyMain.addLayout(self.lyButton)
   177         self.lblVersion.setBuddy(self.edtVersion)
   178         self.lblStatus.setBuddy(self.edtStatus)
   179         self.lblTemplate.setBuddy(self.tvTemplate)
   180         self.lblProgress.setBuddy(self.edtProgress)
   181 
   182         self.retranslateUi(ConfigureDialog)
   183         self.tabWidget.setCurrentIndex(0)
   184         QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
   185         ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
   186         ConfigureDialog.setTabOrder(self.edtVersion, self.tabWidget)
   187         ConfigureDialog.setTabOrder(self.tabWidget, self.tvTemplate)
   188         ConfigureDialog.setTabOrder(self.tvTemplate, self.btnDownload)
   189         ConfigureDialog.setTabOrder(self.btnDownload, self.btnImport)
   190         ConfigureDialog.setTabOrder(self.btnImport, self.btnUpdate)
   191         ConfigureDialog.setTabOrder(self.btnUpdate, self.edtProgress)
   192         ConfigureDialog.setTabOrder(self.edtProgress, self.tvMachines)
   193         ConfigureDialog.setTabOrder(self.tvMachines, self.edtLog)
   194         ConfigureDialog.setTabOrder(self.edtLog, self.btnExplorer)
   195         ConfigureDialog.setTabOrder(self.btnExplorer, self.btnRefresh)
   196         ConfigureDialog.setTabOrder(self.btnRefresh, self.btnAbout)
   197         ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
   198 
   199     def retranslateUi(self, ConfigureDialog):
   200         ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
   201         self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
   202         self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
   203         self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
   204         self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
   205         self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
   206         self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
   207         self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
   208         self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
   209         self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
   210         self.btnUpdate.setText(_translate("ConfigureDialog", "&Update", None))
   211         self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
   212         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabConfiguration), _translate("ConfigureDialog", "Configuration", None))
   213         self.tvMachines.setSortingEnabled(True)
   214         self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
   215         self.tvMachines.headerItem().setText(1, _translate("ConfigureDialog", "Value", None))
   216         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabMachines), _translate("ConfigureDialog", "Machines", None))
   217         self.btnExplorer.setText(_translate("ConfigureDialog", "&Explorer", None))
   218         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabLog), _translate("ConfigureDialog", "Service Log", None))
   219         self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
   220         self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
   221         self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
   222 
   223 import opensecurity_rc