/usr/share/pyshared/Epigrass/Ui_cpanel4new.py is in epigrass 2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/fccoelho/Documents/Projects_software/epigrass/epigrassqt4/cpanel4new.ui'
#
# Created: Tue Aug 11 14:10:16 2009
# by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(807, 479)
MainWindow.setMaximumSize(QtCore.QSize(16777215, 479))
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.tabWidget.setObjectName("tabWidget")
self.Widget8 = QtGui.QWidget()
self.Widget8.setObjectName("Widget8")
self.verticalLayout = QtGui.QVBoxLayout(self.Widget8)
self.verticalLayout.setObjectName("verticalLayout")
self.splitter6 = QtGui.QSplitter(self.Widget8)
self.splitter6.setOrientation(QtCore.Qt.Vertical)
self.splitter6.setObjectName("splitter6")
self.modSpec = QtGui.QGroupBox(self.splitter6)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.modSpec.sizePolicy().hasHeightForWidth())
self.modSpec.setSizePolicy(sizePolicy)
self.modSpec.setMinimumSize(QtCore.QSize(518, 80))
self.modSpec.setObjectName("modSpec")
self.gridLayout = QtGui.QGridLayout(self.modSpec)
self.gridLayout.setObjectName("gridLayout")
self._2 = QtGui.QGridLayout()
self._2.setObjectName("_2")
self.chooseButton = QtGui.QPushButton(self.modSpec)
self.chooseButton.setObjectName("chooseButton")
self._2.addWidget(self.chooseButton, 1, 2, 1, 1)
self.textLabel1 = QtGui.QLabel(self.modSpec)
self.textLabel1.setWordWrap(False)
self.textLabel1.setObjectName("textLabel1")
self._2.addWidget(self.textLabel1, 0, 0, 1, 1)
spacerItem = QtGui.QSpacerItem(370, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self._2.addItem(spacerItem, 0, 1, 1, 3)
self.scriptNameEdit = QtGui.QLineEdit(self.modSpec)
self.scriptNameEdit.setObjectName("scriptNameEdit")
self._2.addWidget(self.scriptNameEdit, 1, 0, 1, 2)
self.editButton = QtGui.QPushButton(self.modSpec)
self.editButton.setObjectName("editButton")
self._2.addWidget(self.editButton, 1, 3, 1, 1)
self.gridLayout.addLayout(self._2, 0, 0, 1, 1)
self.Database_layout = QtGui.QWidget(self.splitter6)
self.Database_layout.setObjectName("Database_layout")
self._3 = QtGui.QGridLayout(self.Database_layout)
self._3.setObjectName("_3")
spacerItem1 = QtGui.QSpacerItem(20, 100, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self._3.addItem(spacerItem1, 1, 0, 1, 1)
self.dbSpecGroupBox = QtGui.QGroupBox(self.Database_layout)
self.dbSpecGroupBox.setEnabled(False)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dbSpecGroupBox.sizePolicy().hasHeightForWidth())
self.dbSpecGroupBox.setSizePolicy(sizePolicy)
self.dbSpecGroupBox.setObjectName("dbSpecGroupBox")
self.layout7_2 = QtGui.QWidget(self.dbSpecGroupBox)
self.layout7_2.setGeometry(QtCore.QRect(10, 20, 360, 140))
self.layout7_2.setObjectName("layout7_2")
self._4 = QtGui.QGridLayout(self.layout7_2)
self._4.setObjectName("_4")
self.textLabel2 = QtGui.QLabel(self.layout7_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel2.sizePolicy().hasHeightForWidth())
self.textLabel2.setSizePolicy(sizePolicy)
self.textLabel2.setWordWrap(False)
self.textLabel2.setObjectName("textLabel2")
self._4.addWidget(self.textLabel2, 0, 0, 1, 1)
self.portEdit = QtGui.QLineEdit(self.layout7_2)
self.portEdit.setObjectName("portEdit")
self._4.addWidget(self.portEdit, 1, 1, 1, 1)
self.textLabel3 = QtGui.QLabel(self.layout7_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel3.sizePolicy().hasHeightForWidth())
self.textLabel3.setSizePolicy(sizePolicy)
self.textLabel3.setWordWrap(False)
self.textLabel3.setObjectName("textLabel3")
self._4.addWidget(self.textLabel3, 0, 1, 1, 1)
self.pwEdit = QtGui.QLineEdit(self.layout7_2)
self.pwEdit.setEchoMode(QtGui.QLineEdit.Password)
self.pwEdit.setObjectName("pwEdit")
self._4.addWidget(self.pwEdit, 3, 1, 1, 1)
self.textLabel1_2 = QtGui.QLabel(self.layout7_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_2.sizePolicy().hasHeightForWidth())
self.textLabel1_2.setSizePolicy(sizePolicy)
self.textLabel1_2.setWordWrap(False)
self.textLabel1_2.setObjectName("textLabel1_2")
self._4.addWidget(self.textLabel1_2, 2, 1, 1, 1)
self.textLabel4 = QtGui.QLabel(self.layout7_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel4.sizePolicy().hasHeightForWidth())
self.textLabel4.setSizePolicy(sizePolicy)
self.textLabel4.setWordWrap(False)
self.textLabel4.setObjectName("textLabel4")
self._4.addWidget(self.textLabel4, 2, 0, 1, 1)
self.hostnEdit = QtGui.QLineEdit(self.layout7_2)
self.hostnEdit.setObjectName("hostnEdit")
self._4.addWidget(self.hostnEdit, 1, 0, 1, 1)
self.uidEdit = QtGui.QLineEdit(self.layout7_2)
self.uidEdit.setObjectName("uidEdit")
self._4.addWidget(self.uidEdit, 3, 0, 1, 1)
self._3.addWidget(self.dbSpecGroupBox, 0, 1, 2, 1)
self._5 = QtGui.QVBoxLayout()
self._5.setObjectName("_5")
self.textLabel1_11 = QtGui.QLabel(self.Database_layout)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_11.sizePolicy().hasHeightForWidth())
self.textLabel1_11.setSizePolicy(sizePolicy)
self.textLabel1_11.setWordWrap(False)
self.textLabel1_11.setObjectName("textLabel1_11")
self._5.addWidget(self.textLabel1_11)
self.dbType = QtGui.QComboBox(self.Database_layout)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dbType.sizePolicy().hasHeightForWidth())
self.dbType.setSizePolicy(sizePolicy)
self.dbType.setObjectName("dbType")
self.dbType.addItem(QtCore.QString())
self.dbType.addItem(QtCore.QString())
self.dbType.addItem(QtCore.QString())
self._5.addWidget(self.dbType)
self._3.addLayout(self._5, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.splitter6)
self.tabWidget.addTab(self.Widget8, "")
self.Widget9 = QtGui.QWidget()
self.Widget9.setObjectName("Widget9")
self.layout9 = QtGui.QWidget(self.Widget9)
self.layout9.setGeometry(QtCore.QRect(9, 19, 304, 153))
self.layout9.setObjectName("layout9")
self._6 = QtGui.QGridLayout(self.layout9)
self._6.setObjectName("_6")
self.unameEdit = QtGui.QLineEdit(self.layout9)
self.unameEdit.setObjectName("unameEdit")
self._6.addWidget(self.unameEdit, 0, 1, 1, 3)
self.textLabel1_5 = QtGui.QLabel(self.layout9)
self.textLabel1_5.setWordWrap(False)
self.textLabel1_5.setObjectName("textLabel1_5")
self._6.addWidget(self.textLabel1_5, 3, 0, 1, 2)
self.langCombo = QtGui.QComboBox(self.layout9)
self.langCombo.setObjectName("langCombo")
self.langCombo.addItem(QtCore.QString())
self.langCombo.addItem(QtCore.QString())
self.langCombo.addItem(QtCore.QString())
self.langCombo.addItem(QtCore.QString())
self.langCombo.addItem(QtCore.QString())
self._6.addWidget(self.langCombo, 3, 2, 1, 2)
self.textLabel5 = QtGui.QLabel(self.layout9)
self.textLabel5.setWordWrap(False)
self.textLabel5.setObjectName("textLabel5")
self._6.addWidget(self.textLabel5, 1, 0, 1, 1)
self.textLabel2_3 = QtGui.QLabel(self.layout9)
self.textLabel2_3.setWordWrap(False)
self.textLabel2_3.setObjectName("textLabel2_3")
self._6.addWidget(self.textLabel2_3, 2, 0, 1, 3)
self.textLabel2_2 = QtGui.QLabel(self.layout9)
self.textLabel2_2.setWordWrap(False)
self.textLabel2_2.setObjectName("textLabel2_2")
self._6.addWidget(self.textLabel2_2, 0, 0, 1, 1)
self.editorEdit = QtGui.QLineEdit(self.layout9)
self.editorEdit.setObjectName("editorEdit")
self._6.addWidget(self.editorEdit, 1, 1, 1, 3)
self.pdfEdit = QtGui.QLineEdit(self.layout9)
self.pdfEdit.setObjectName("pdfEdit")
self._6.addWidget(self.pdfEdit, 2, 3, 1, 1)
self.tabWidget.addTab(self.Widget9, "")
self.TabPage = QtGui.QWidget()
self.TabPage.setObjectName("TabPage")
self.horizontalLayout = QtGui.QHBoxLayout(self.TabPage)
self.horizontalLayout.setObjectName("horizontalLayout")
self._7 = QtGui.QVBoxLayout()
self._7.setObjectName("_7")
self.textLabel5_2 = QtGui.QLabel(self.TabPage)
self.textLabel5_2.setWordWrap(False)
self.textLabel5_2.setObjectName("textLabel5_2")
self._7.addWidget(self.textLabel5_2)
self.textEdit1 = QtGui.QTextEdit(self.TabPage)
self.textEdit1.setObjectName("textEdit1")
self._7.addWidget(self.textEdit1)
self.horizontalLayout.addLayout(self._7)
self.line1 = QtGui.QFrame(self.TabPage)
self.line1.setFrameShape(QtGui.QFrame.VLine)
self.line1.setFrameShadow(QtGui.QFrame.Sunken)
self.line1.setLineWidth(3)
self.line1.setObjectName("line1")
self.horizontalLayout.addWidget(self.line1)
self._8 = QtGui.QVBoxLayout()
self._8.setObjectName("_8")
self._9 = QtGui.QVBoxLayout()
self._9.setObjectName("_9")
self._10 = QtGui.QVBoxLayout()
self._10.setObjectName("_10")
self.textLabel1_3 = QtGui.QLabel(self.TabPage)
self.textLabel1_3.setAlignment(QtCore.Qt.AlignCenter)
self.textLabel1_3.setWordWrap(False)
self.textLabel1_3.setObjectName("textLabel1_3")
self._10.addWidget(self.textLabel1_3)
self.dbBackup = QtGui.QPushButton(self.TabPage)
self.dbBackup.setEnabled(False)
self.dbBackup.setObjectName("dbBackup")
self._10.addWidget(self.dbBackup)
self.dbInfo = QtGui.QPushButton(self.TabPage)
self.dbInfo.setEnabled(False)
self.dbInfo.setObjectName("dbInfo")
self._10.addWidget(self.dbInfo)
self._9.addLayout(self._10)
self.line2 = QtGui.QFrame(self.TabPage)
self.line2.setFrameShape(QtGui.QFrame.HLine)
self.line2.setFrameShadow(QtGui.QFrame.Sunken)
self.line2.setLineWidth(2)
self.line2.setObjectName("line2")
self._9.addWidget(self.line2)
self._11 = QtGui.QVBoxLayout()
self._11.setObjectName("_11")
self.textLabel1_4 = QtGui.QLabel(self.TabPage)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_4.sizePolicy().hasHeightForWidth())
self.textLabel1_4.setSizePolicy(sizePolicy)
self.textLabel1_4.setAlignment(QtCore.Qt.AlignCenter)
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setMargin(0)
self.textLabel1_4.setObjectName("textLabel1_4")
self._11.addWidget(self.textLabel1_4)
self.repOpen = QtGui.QPushButton(self.TabPage)
self.repOpen.setObjectName("repOpen")
self._11.addWidget(self.repOpen)
self._9.addLayout(self._11)
self._8.addLayout(self._9)
spacerItem2 = QtGui.QSpacerItem(20, 170, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self._8.addItem(spacerItem2)
self.horizontalLayout.addLayout(self._8)
self.tabWidget.addTab(self.TabPage, "")
self.visPage = QtGui.QWidget()
self.visPage.setObjectName("visPage")
self.gridLayout_3 = QtGui.QGridLayout(self.visPage)
self.gridLayout_3.setObjectName("gridLayout_3")
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self._13 = QtGui.QVBoxLayout()
self._13.setObjectName("_13")
self.textLabel1_9 = QtGui.QLabel(self.visPage)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_9.sizePolicy().hasHeightForWidth())
self.textLabel1_9.setSizePolicy(sizePolicy)
self.textLabel1_9.setWordWrap(False)
self.textLabel1_9.setObjectName("textLabel1_9")
self._13.addWidget(self.textLabel1_9)
self.consensusButton = QtGui.QPushButton(self.visPage)
self.consensusButton.setEnabled(False)
self.consensusButton.setObjectName("consensusButton")
self._13.addWidget(self.consensusButton)
self.horizontalLayout_2.addLayout(self._13)
spacerItem3 = QtGui.QSpacerItem(260, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem3)
self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
self.splitter = QtGui.QSplitter(self.visPage)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.layout20 = QtGui.QWidget(self.splitter)
self.layout20.setObjectName("layout20")
self._14 = QtGui.QVBoxLayout(self.layout20)
self._14.setObjectName("_14")
self.textLabel1_7 = QtGui.QLabel(self.layout20)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_7.sizePolicy().hasHeightForWidth())
self.textLabel1_7.setSizePolicy(sizePolicy)
self.textLabel1_7.setWordWrap(False)
self.textLabel1_7.setObjectName("textLabel1_7")
self._14.addWidget(self.textLabel1_7)
self.tableList = QtGui.QComboBox(self.layout20)
self.tableList.setObjectName("tableList")
self._14.addWidget(self.tableList)
self.textLabel1_10 = QtGui.QLabel(self.layout20)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_10.sizePolicy().hasHeightForWidth())
self.textLabel1_10.setSizePolicy(sizePolicy)
self.textLabel1_10.setWordWrap(False)
self.textLabel1_10.setObjectName("textLabel1_10")
self._14.addWidget(self.textLabel1_10)
self.variableList = QtGui.QComboBox(self.layout20)
self.variableList.setObjectName("variableList")
self._14.addWidget(self.variableList)
self.textLabel2_4 = QtGui.QLabel(self.layout20)
self.textLabel2_4.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel2_4.sizePolicy().hasHeightForWidth())
self.textLabel2_4.setSizePolicy(sizePolicy)
self.textLabel2_4.setWordWrap(False)
self.textLabel2_4.setObjectName("textLabel2_4")
self._14.addWidget(self.textLabel2_4)
self.mapList = QtGui.QComboBox(self.layout20)
self.mapList.setEnabled(True)
self.mapList.setObjectName("mapList")
self.mapList.addItem(QtCore.QString())
self._14.addWidget(self.mapList)
self.layout19 = QtGui.QWidget(self.splitter)
self.layout19.setObjectName("layout19")
self._15 = QtGui.QVBoxLayout(self.layout19)
self._15.setObjectName("_15")
self.dbscanButton = QtGui.QPushButton(self.layout19)
self.dbscanButton.setObjectName("dbscanButton")
self._15.addWidget(self.dbscanButton)
self.textLabel1_8 = QtGui.QLabel(self.layout19)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_8.sizePolicy().hasHeightForWidth())
self.textLabel1_8.setSizePolicy(sizePolicy)
self.textLabel1_8.setWordWrap(False)
self.textLabel1_8.setObjectName("textLabel1_8")
self._15.addWidget(self.textLabel1_8)
self.rateSpinBox = QtGui.QSpinBox(self.layout19)
self.rateSpinBox.setMinimum(1)
self.rateSpinBox.setMaximum(5)
self.rateSpinBox.setObjectName("rateSpinBox")
self._15.addWidget(self.rateSpinBox)
spacerItem4 = QtGui.QSpacerItem(20, 90, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self._15.addItem(spacerItem4)
self.playButton = QtGui.QPushButton(self.layout19)
self.playButton.setObjectName("playButton")
self._15.addWidget(self.playButton)
self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1)
self.tabWidget.addTab(self.visPage, "")
self.verticalLayout_2.addWidget(self.tabWidget)
self._17 = QtGui.QHBoxLayout()
self._17.setObjectName("_17")
self.textLabel1_6 = QtGui.QLabel(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textLabel1_6.sizePolicy().hasHeightForWidth())
self.textLabel1_6.setSizePolicy(sizePolicy)
self.textLabel1_6.setWordWrap(False)
self.textLabel1_6.setObjectName("textLabel1_6")
self._17.addWidget(self.textLabel1_6)
self.stepLCD = QtGui.QLCDNumber(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stepLCD.sizePolicy().hasHeightForWidth())
self.stepLCD.setSizePolicy(sizePolicy)
self.stepLCD.setObjectName("stepLCD")
self._17.addWidget(self.stepLCD)
self.verticalLayout_2.addLayout(self._17)
self._18 = QtGui.QHBoxLayout()
self._18.setSpacing(6)
self._18.setMargin(0)
self._18.setObjectName("_18")
self.buttonHelp = QtGui.QPushButton(self.centralwidget)
self.buttonHelp.setAutoDefault(True)
self.buttonHelp.setObjectName("buttonHelp")
self._18.addWidget(self.buttonHelp)
spacerItem5 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self._18.addItem(spacerItem5)
self.buttonRun = QtGui.QPushButton(self.centralwidget)
self.buttonRun.setAutoDefault(True)
self.buttonRun.setDefault(True)
self.buttonRun.setObjectName("buttonRun")
self._18.addWidget(self.buttonRun)
self.buttonExit = QtGui.QPushButton(self.centralwidget)
self.buttonExit.setAutoDefault(True)
self.buttonExit.setObjectName("buttonExit")
self._18.addWidget(self.buttonExit)
self.verticalLayout_2.addLayout(self._18)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 807, 27))
self.menubar.setObjectName("menubar")
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(1)
self.dbType.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Epigrass", None, QtGui.QApplication.UnicodeUTF8))
self.modSpec.setTitle(QtGui.QApplication.translate("MainWindow", "Model Specification", None, QtGui.QApplication.UnicodeUTF8))
self.chooseButton.setText(QtGui.QApplication.translate("MainWindow", "Choose", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1.setText(QtGui.QApplication.translate("MainWindow", "Script Name:", None, QtGui.QApplication.UnicodeUTF8))
self.scriptNameEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "write the name of the your script or press the choose button on the right to select one.", None, QtGui.QApplication.UnicodeUTF8))
self.editButton.setText(QtGui.QApplication.translate("MainWindow", "Edit", None, QtGui.QApplication.UnicodeUTF8))
self.dbSpecGroupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Database Specification", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel2.setText(QtGui.QApplication.translate("MainWindow", "Host:", None, QtGui.QApplication.UnicodeUTF8))
self.portEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Enter the port the server listens to.", None, QtGui.QApplication.UnicodeUTF8))
self.portEdit.setText(QtGui.QApplication.translate("MainWindow", "3306", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel3.setText(QtGui.QApplication.translate("MainWindow", "Port:", None, QtGui.QApplication.UnicodeUTF8))
self.pwEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Database password for the userid entered", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_2.setText(QtGui.QApplication.translate("MainWindow", "Password:", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel4.setText(QtGui.QApplication.translate("MainWindow", "Userid:", None, QtGui.QApplication.UnicodeUTF8))
self.hostnEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "This is the url of your database server.", None, QtGui.QApplication.UnicodeUTF8))
self.hostnEdit.setText(QtGui.QApplication.translate("MainWindow", "localhost", None, QtGui.QApplication.UnicodeUTF8))
self.uidEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "This is the userid for accessing the database server", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_11.setText(QtGui.QApplication.translate("MainWindow", "Database type:", None, QtGui.QApplication.UnicodeUTF8))
self.dbType.setToolTip(QtGui.QApplication.translate("MainWindow", "Select your database type", None, QtGui.QApplication.UnicodeUTF8))
self.dbType.setItemText(0, QtGui.QApplication.translate("MainWindow", "MySQL", None, QtGui.QApplication.UnicodeUTF8))
self.dbType.setItemText(1, QtGui.QApplication.translate("MainWindow", "SQLite", None, QtGui.QApplication.UnicodeUTF8))
self.dbType.setItemText(2, QtGui.QApplication.translate("MainWindow", "CSV", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Widget8), QtGui.QApplication.translate("MainWindow", "Run Options", None, QtGui.QApplication.UnicodeUTF8))
self.unameEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Enter your full name. This will be added to the report.", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_5.setText(QtGui.QApplication.translate("MainWindow", "Language", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setToolTip(QtGui.QApplication.translate("MainWindow", "Select the language for the GUI", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setItemText(0, QtGui.QApplication.translate("MainWindow", "English", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setItemText(1, QtGui.QApplication.translate("MainWindow", "Brazilian portuguese", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setItemText(2, QtGui.QApplication.translate("MainWindow", "French", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setItemText(3, QtGui.QApplication.translate("MainWindow", "Russian", None, QtGui.QApplication.UnicodeUTF8))
self.langCombo.setItemText(4, QtGui.QApplication.translate("MainWindow", "Spanish", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel5.setText(QtGui.QApplication.translate("MainWindow", "Editor", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel2_3.setText(QtGui.QApplication.translate("MainWindow", "PDF Viewer", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel2_2.setText(QtGui.QApplication.translate("MainWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
self.editorEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Enter your preferred text editor", None, QtGui.QApplication.UnicodeUTF8))
self.pdfEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Enter the name of your preferred PDF viewer", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Widget9), QtGui.QApplication.translate("MainWindow", "Settings", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel5_2.setText(QtGui.QApplication.translate("MainWindow", "Simulation Status", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_3.setText(QtGui.QApplication.translate("MainWindow", "Database", None, QtGui.QApplication.UnicodeUTF8))
self.dbBackup.setToolTip(QtGui.QApplication.translate("MainWindow", "Click here to backup the epigrass database ", None, QtGui.QApplication.UnicodeUTF8))
self.dbBackup.setText(QtGui.QApplication.translate("MainWindow", "Backup", None, QtGui.QApplication.UnicodeUTF8))
self.dbInfo.setToolTip(QtGui.QApplication.translate("MainWindow", "Click here for a short description of the epigrass database", None, QtGui.QApplication.UnicodeUTF8))
self.dbInfo.setText(QtGui.QApplication.translate("MainWindow", "Info", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("MainWindow", "Report", None, QtGui.QApplication.UnicodeUTF8))
self.repOpen.setText(QtGui.QApplication.translate("MainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.TabPage), QtGui.QApplication.translate("MainWindow", "Utilities", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_9.setText(QtGui.QApplication.translate("MainWindow", "Spread Trees", None, QtGui.QApplication.UnicodeUTF8))
self.consensusButton.setToolTip(QtGui.QApplication.translate("MainWindow", "Select a directory with tree-files to build consensus on.", None, QtGui.QApplication.UnicodeUTF8))
self.consensusButton.setText(QtGui.QApplication.translate("MainWindow", "Consensus Tree", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_7.setText(QtGui.QApplication.translate("MainWindow", "Simulations stored:", None, QtGui.QApplication.UnicodeUTF8))
self.tableList.setToolTip(QtGui.QApplication.translate("MainWindow", "Select a database stored simulation", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_10.setText(QtGui.QApplication.translate("MainWindow", "Variable to display:", None, QtGui.QApplication.UnicodeUTF8))
self.variableList.setToolTip(QtGui.QApplication.translate("MainWindow", "Select a variable to display in the animation", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel2_4.setText(QtGui.QApplication.translate("MainWindow", "Maps available:", None, QtGui.QApplication.UnicodeUTF8))
self.mapList.setToolTip(QtGui.QApplication.translate("MainWindow", "Select a map", None, QtGui.QApplication.UnicodeUTF8))
self.mapList.setItemText(0, QtGui.QApplication.translate("MainWindow", "No map", None, QtGui.QApplication.UnicodeUTF8))
self.dbscanButton.setText(QtGui.QApplication.translate("MainWindow", "Scan DB", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_8.setText(QtGui.QApplication.translate("MainWindow", "Animation rate", None, QtGui.QApplication.UnicodeUTF8))
self.rateSpinBox.setToolTip(QtGui.QApplication.translate("MainWindow", "Time steps per second", None, QtGui.QApplication.UnicodeUTF8))
self.playButton.setText(QtGui.QApplication.translate("MainWindow", "Start animation", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.visPage), QtGui.QApplication.translate("MainWindow", "Visualization", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_6.setText(QtGui.QApplication.translate("MainWindow", "Progress:", None, QtGui.QApplication.UnicodeUTF8))
self.stepLCD.setToolTip(QtGui.QApplication.translate("MainWindow", "Simulation step", None, QtGui.QApplication.UnicodeUTF8))
self.buttonHelp.setToolTip(QtGui.QApplication.translate("MainWindow", "Click here to open the userguide in the web browser", None, QtGui.QApplication.UnicodeUTF8))
self.buttonHelp.setText(QtGui.QApplication.translate("MainWindow", "&Help", None, QtGui.QApplication.UnicodeUTF8))
self.buttonHelp.setShortcut(QtGui.QApplication.translate("MainWindow", "F1", None, QtGui.QApplication.UnicodeUTF8))
self.buttonRun.setToolTip(QtGui.QApplication.translate("MainWindow", "Click here to start your simulation", None, QtGui.QApplication.UnicodeUTF8))
self.buttonRun.setText(QtGui.QApplication.translate("MainWindow", "&Run", None, QtGui.QApplication.UnicodeUTF8))
self.buttonRun.setShortcut(QtGui.QApplication.translate("MainWindow", "Alt+R", None, QtGui.QApplication.UnicodeUTF8))
self.buttonExit.setToolTip(QtGui.QApplication.translate("MainWindow", "Click here to leave Epigrass", None, QtGui.QApplication.UnicodeUTF8))
self.buttonExit.setText(QtGui.QApplication.translate("MainWindow", "&Exit", None, QtGui.QApplication.UnicodeUTF8))
self.buttonExit.setShortcut(QtGui.QApplication.translate("MainWindow", "Alt+E", None, QtGui.QApplication.UnicodeUTF8))
self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
|