~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/Graphics/Ui_UMLSceneSizeDialog.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/Graphics/UMLSceneSizeDialog.ui'
 
4
#
 
5
# Created: Sat Feb 10 11:08:38 2007
 
6
#      by: PyQt4 UI code generator 4-snapshot-20070125
 
7
#
 
8
# WARNING! All changes made in this file will be lost!
 
9
 
 
10
from PyQt4 import QtCore, QtGui
 
11
 
 
12
class Ui_UMLSceneSizeDialog(object):
 
13
    def setupUi(self, UMLSceneSizeDialog):
 
14
        UMLSceneSizeDialog.setObjectName("UMLSceneSizeDialog")
 
15
        UMLSceneSizeDialog.resize(QtCore.QSize(QtCore.QRect(0,0,314,95).size()).expandedTo(UMLSceneSizeDialog.minimumSizeHint()))
 
16
        UMLSceneSizeDialog.setSizeGripEnabled(True)
 
17
 
 
18
        self.gridlayout = QtGui.QGridLayout(UMLSceneSizeDialog)
 
19
        self.gridlayout.setMargin(6)
 
20
        self.gridlayout.setSpacing(6)
 
21
        self.gridlayout.setObjectName("gridlayout")
 
22
 
 
23
        self.buttonBox = QtGui.QDialogButtonBox(UMLSceneSizeDialog)
 
24
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
 
25
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
 
26
        self.buttonBox.setObjectName("buttonBox")
 
27
        self.gridlayout.addWidget(self.buttonBox,2,0,1,2)
 
28
 
 
29
        self.textLabel2 = QtGui.QLabel(UMLSceneSizeDialog)
 
30
        self.textLabel2.setObjectName("textLabel2")
 
31
        self.gridlayout.addWidget(self.textLabel2,1,0,1,1)
 
32
 
 
33
        self.textLabel1 = QtGui.QLabel(UMLSceneSizeDialog)
 
34
        self.textLabel1.setObjectName("textLabel1")
 
35
        self.gridlayout.addWidget(self.textLabel1,0,0,1,1)
 
36
 
 
37
        self.heightSpinBox = QtGui.QSpinBox(UMLSceneSizeDialog)
 
38
        self.heightSpinBox.setMaximum(100000)
 
39
        self.heightSpinBox.setMinimum(100)
 
40
        self.heightSpinBox.setObjectName("heightSpinBox")
 
41
        self.gridlayout.addWidget(self.heightSpinBox,1,1,1,1)
 
42
 
 
43
        self.widthSpinBox = QtGui.QSpinBox(UMLSceneSizeDialog)
 
44
        self.widthSpinBox.setMaximum(100000)
 
45
        self.widthSpinBox.setMinimum(100)
 
46
        self.widthSpinBox.setObjectName("widthSpinBox")
 
47
        self.gridlayout.addWidget(self.widthSpinBox,0,1,1,1)
 
48
 
 
49
        self.retranslateUi(UMLSceneSizeDialog)
 
50
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),UMLSceneSizeDialog.accept)
 
51
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),UMLSceneSizeDialog.reject)
 
52
        QtCore.QMetaObject.connectSlotsByName(UMLSceneSizeDialog)
 
53
 
 
54
    def retranslateUi(self, UMLSceneSizeDialog):
 
55
        UMLSceneSizeDialog.setWindowTitle(QtGui.QApplication.translate("UMLSceneSizeDialog", "Set Size", None, QtGui.QApplication.UnicodeUTF8))
 
56
        self.textLabel2.setText(QtGui.QApplication.translate("UMLSceneSizeDialog", "Height (in pixels):", None, QtGui.QApplication.UnicodeUTF8))
 
57
        self.textLabel1.setText(QtGui.QApplication.translate("UMLSceneSizeDialog", "Width (in pixels):", None, QtGui.QApplication.UnicodeUTF8))
 
58
        self.heightSpinBox.setToolTip(QtGui.QApplication.translate("UMLSceneSizeDialog", "Select the height of the diagram", None, QtGui.QApplication.UnicodeUTF8))
 
59
        self.widthSpinBox.setToolTip(QtGui.QApplication.translate("UMLSceneSizeDialog", "Select the width of the diagram", None, QtGui.QApplication.UnicodeUTF8))
 
60
 
 
61
 
 
62
 
 
63
if __name__ == "__main__":
 
64
    import sys
 
65
    app = QtGui.QApplication(sys.argv)
 
66
    UMLSceneSizeDialog = QtGui.QDialog()
 
67
    ui = Ui_UMLSceneSizeDialog()
 
68
    ui.setupUi(UMLSceneSizeDialog)
 
69
    UMLSceneSizeDialog.show()
 
70
    sys.exit(app.exec_())