ui_atlas.py

Modified Dialog def for overview combobox selection - Hien TRAN-QUANG, 04/22/2012 01:52 am

Download (11.3 kB)

 
1
# -*- coding: utf-8 -*-
2
3
# Form implementation generated from reading ui file 'ui_atlas.ui'
4
#
5
# Created: Tue Feb 28 19:40:37 2012
6
#      by: PyQt4 UI code generator 4.8.3
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
    _fromUtf8 = lambda s: s
16
17
class Ui_atlas(object):
18
    def setupUi(self, atlas):
19
        atlas.setObjectName(_fromUtf8("atlas"))
20
        atlas.resize(496, 343)
21
        self.gridLayout_2 = QtGui.QGridLayout(atlas)
22
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
23
        self.groupBox = QtGui.QGroupBox(atlas)
24
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
25
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
26
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
27
        self.gridLayout = QtGui.QGridLayout()
28
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
29
        self.sLayerLabel = QtGui.QLabel(self.groupBox)
30
        self.sLayerLabel.setObjectName(_fromUtf8("sLayerLabel"))
31
        self.gridLayout.addWidget(self.sLayerLabel, 0, 0, 1, 1)
32
        self.sLayerBox = QtGui.QComboBox(self.groupBox)
33
        self.sLayerBox.setObjectName(_fromUtf8("sLayerBox"))
34
        self.gridLayout.addWidget(self.sLayerBox, 0, 1, 1, 1)
35
        self.compoLabel = QtGui.QLabel(self.groupBox)
36
        self.compoLabel.setObjectName(_fromUtf8("compoLabel"))
37
        self.gridLayout.addWidget(self.compoLabel, 1, 0, 1, 1)
38
        self.compoBox = QtGui.QComboBox(self.groupBox)
39
        self.compoBox.setObjectName(_fromUtf8("compoBox"))
40
        self.gridLayout.addWidget(self.compoBox, 1, 1, 1, 1)
41
        self.mapLabel = QtGui.QLabel(self.groupBox)
42
        self.mapLabel.setObjectName(_fromUtf8("mapLabel"))
43
        self.gridLayout.addWidget(self.mapLabel, 2, 0, 1, 1)
44
        self.mapBox = QtGui.QComboBox(self.groupBox)
45
        self.mapBox.setObjectName(_fromUtf8("mapBox"))
46
        self.gridLayout.addWidget(self.mapBox, 2, 1, 1, 1)
47
        self.overviewLabel = QtGui.QLabel(self.groupBox)
48
        self.overviewLabel.setObjectName(_fromUtf8("overviewLabel"))
49
        self.gridLayout.addWidget(self.overviewLabel, 7, 0, 1, 1)
50
        self.overviewBox = QtGui.QComboBox(self.groupBox)
51
        self.overviewBox.setObjectName(_fromUtf8("overviewBox"))
52
        self.gridLayout.addWidget(self.overviewBox, 7, 1, 1, 1)
53
        self.marginLabel = QtGui.QLabel(self.groupBox)
54
        self.marginLabel.setObjectName(_fromUtf8("marginLabel"))
55
        self.gridLayout.addWidget(self.marginLabel, 3, 0, 1, 1)
56
        self.margin = QtGui.QSpinBox(self.groupBox)
57
        self.margin.setProperty(_fromUtf8("value"), 10)
58
        self.margin.setObjectName(_fromUtf8("margin"))
59
        self.gridLayout.addWidget(self.margin, 3, 1, 1, 1)
60
        self.outputDirLabel = QtGui.QLabel(self.groupBox)
61
        self.outputDirLabel.setObjectName(_fromUtf8("outputDirLabel"))
62
        self.gridLayout.addWidget(self.outputDirLabel, 4, 0, 1, 1)
63
        self.outputDir = QtGui.QLineEdit(self.groupBox)
64
        self.outputDir.setObjectName(_fromUtf8("outputDir"))
65
        self.gridLayout.addWidget(self.outputDir, 4, 1, 1, 1)
66
        self.filenamePattern = QtGui.QLineEdit(self.groupBox)
67
        self.filenamePattern.setObjectName(_fromUtf8("filenamePattern"))
68
        self.gridLayout.addWidget(self.filenamePattern, 6, 1, 1, 1)
69
        self.FilenamePatternLabel = QtGui.QLabel(self.groupBox)
70
        self.FilenamePatternLabel.setObjectName(_fromUtf8("FilenamePatternLabel"))
71
        self.gridLayout.addWidget(self.FilenamePatternLabel, 6, 0, 1, 1)
72
        self.hideCoverage = QtGui.QCheckBox(self.groupBox)
73
        self.hideCoverage.setLayoutDirection(QtCore.Qt.LeftToRight)
74
        self.hideCoverage.setChecked(False)
75
        self.hideCoverage.setObjectName(_fromUtf8("hideCoverage"))
76
        self.gridLayout.addWidget(self.hideCoverage, 0, 2, 1, 2)
77
        self.browseOutputDir = QtGui.QPushButton(self.groupBox)
78
        self.browseOutputDir.setObjectName(_fromUtf8("browseOutputDir"))
79
        self.gridLayout.addWidget(self.browseOutputDir, 4, 2, 1, 2)
80
        self.showComposerButton = QtGui.QPushButton(self.groupBox)
81
        self.showComposerButton.setObjectName(_fromUtf8("showComposerButton"))
82
        self.gridLayout.addWidget(self.showComposerButton, 1, 3, 1, 1)
83
        self.refreshTemplateTool = QtGui.QToolButton(self.groupBox)
84
        icon = QtGui.QIcon()
85
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/atlas/refresh.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
86
        self.refreshTemplateTool.setIcon(icon)
87
        self.refreshTemplateTool.setObjectName(_fromUtf8("refreshTemplateTool"))
88
        self.gridLayout.addWidget(self.refreshTemplateTool, 1, 2, 1, 1)
89
        self.verticalLayout_2.addLayout(self.gridLayout)
90
        self.gridLayout_2.addWidget(self.groupBox, 1, 1, 1, 6)
91
        self.groupBox_2 = QtGui.QGroupBox(atlas)
92
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
93
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2)
94
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
95
        self.exportButton = QtGui.QToolButton(self.groupBox_2)
96
        self.exportButton.setEnabled(True)
97
        self.exportButton.setObjectName(_fromUtf8("exportButton"))
98
        self.gridLayout_3.addWidget(self.exportButton, 0, 0, 1, 1)
99
        self.exportComment = QtGui.QLabel(self.groupBox_2)
100
        self.exportComment.setText(_fromUtf8(""))
101
        self.exportComment.setAlignment(QtCore.Qt.AlignCenter)
102
        self.exportComment.setObjectName(_fromUtf8("exportComment"))
103
        self.gridLayout_3.addWidget(self.exportComment, 0, 1, 1, 1)
104
        self.gridLayout_2.addWidget(self.groupBox_2, 2, 1, 1, 6)
105
        self.buttonBox = QtGui.QDialogButtonBox(atlas)
106
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
107
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
108
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
109
        self.gridLayout_2.addWidget(self.buttonBox, 4, 1, 1, 6)
110
        self.helpButton = QtGui.QToolButton(atlas)
111
        self.helpButton.setMinimumSize(QtCore.QSize(32, 32))
112
        self.helpButton.setCursor(QtCore.Qt.PointingHandCursor)
113
        icon1 = QtGui.QIcon()
114
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/atlas/about.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
115
        self.helpButton.setIcon(icon1)
116
        self.helpButton.setIconSize(QtCore.QSize(32, 32))
117
        self.helpButton.setAutoRaise(True)
118
        self.helpButton.setObjectName(_fromUtf8("helpButton"))
119
        self.gridLayout_2.addWidget(self.helpButton, 0, 6, 1, 1)
120
        self.aboutButton = QtGui.QToolButton(atlas)
121
        self.aboutButton.setMinimumSize(QtCore.QSize(32, 32))
122
        self.aboutButton.setCursor(QtCore.Qt.PointingHandCursor)
123
        icon2 = QtGui.QIcon()
124
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/atlas/icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
125
        self.aboutButton.setIcon(icon2)
126
        self.aboutButton.setIconSize(QtCore.QSize(32, 32))
127
        self.aboutButton.setAutoRaise(True)
128
        self.aboutButton.setArrowType(QtCore.Qt.NoArrow)
129
        self.aboutButton.setObjectName(_fromUtf8("aboutButton"))
130
        self.gridLayout_2.addWidget(self.aboutButton, 0, 1, 1, 1)
131
        self.title = QtGui.QLabel(atlas)
132
        font = QtGui.QFont()
133
        font.setPointSize(14)
134
        font.setWeight(75)
135
        font.setBold(True)
136
        self.title.setFont(font)
137
        self.title.setScaledContents(False)
138
        self.title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
139
        self.title.setMargin(10)
140
        self.title.setObjectName(_fromUtf8("title"))
141
        self.gridLayout_2.addWidget(self.title, 0, 2, 1, 2)
142
143
        self.retranslateUi(atlas)
144
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), atlas.accept)
145
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), atlas.reject)
146
        QtCore.QMetaObject.connectSlotsByName(atlas)
147
        atlas.setTabOrder(self.sLayerBox, self.hideCoverage)
148
        atlas.setTabOrder(self.hideCoverage, self.compoBox)
149
        atlas.setTabOrder(self.compoBox, self.refreshTemplateTool)
150
        atlas.setTabOrder(self.refreshTemplateTool, self.showComposerButton)
151
        atlas.setTabOrder(self.showComposerButton, self.mapBox)
152
        atlas.setTabOrder(self.mapBox, self.margin)
153
        atlas.setTabOrder(self.overviewBox, self.margin)
154
        atlas.setTabOrder(self.margin, self.outputDir)
155
        atlas.setTabOrder(self.outputDir, self.browseOutputDir)
156
        atlas.setTabOrder(self.browseOutputDir, self.filenamePattern)
157
        atlas.setTabOrder(self.filenamePattern, self.exportButton)
158
        atlas.setTabOrder(self.exportButton, self.helpButton)
159
        atlas.setTabOrder(self.helpButton, self.buttonBox)
160
        atlas.setTabOrder(self.buttonBox, self.aboutButton)
161
162
    def retranslateUi(self, atlas):
163
        atlas.setWindowTitle(QtGui.QApplication.translate("atlas", "Atlas", None, QtGui.QApplication.UnicodeUTF8))
164
        self.groupBox.setTitle(QtGui.QApplication.translate("atlas", "Configure", None, QtGui.QApplication.UnicodeUTF8))
165
        self.sLayerLabel.setText(QtGui.QApplication.translate("atlas", "Coverage layer :", None, QtGui.QApplication.UnicodeUTF8))
166
        self.compoLabel.setText(QtGui.QApplication.translate("atlas", "Composer template :", None, QtGui.QApplication.UnicodeUTF8))
167
        self.mapLabel.setText(QtGui.QApplication.translate("atlas", "Composer map object :", None, QtGui.QApplication.UnicodeUTF8))
168
        self.overviewLabel.setText(QtGui.QApplication.translate("atlas", "Composer overview object :", None, QtGui.QApplication.UnicodeUTF8))
169
        self.marginLabel.setText(QtGui.QApplication.translate("atlas", "Margin around coverage :", None, QtGui.QApplication.UnicodeUTF8))
170
        self.margin.setSuffix(QtGui.QApplication.translate("atlas", " %", None, QtGui.QApplication.UnicodeUTF8))
171
        self.outputDirLabel.setText(QtGui.QApplication.translate("atlas", "Output directory :", None, QtGui.QApplication.UnicodeUTF8))
172
        self.outputDir.setText(QtGui.QApplication.translate("atlas", "/tmp/qgis", None, QtGui.QApplication.UnicodeUTF8))
173
        self.filenamePattern.setText(QtGui.QApplication.translate("atlas", "output.pdf", None, QtGui.QApplication.UnicodeUTF8))
174
        self.FilenamePatternLabel.setText(QtGui.QApplication.translate("atlas", "Filename pattern :", None, QtGui.QApplication.UnicodeUTF8))
175
        self.hideCoverage.setText(QtGui.QApplication.translate("atlas", "Hide coverage", None, QtGui.QApplication.UnicodeUTF8))
176
        self.browseOutputDir.setText(QtGui.QApplication.translate("atlas", "Browse...", None, QtGui.QApplication.UnicodeUTF8))
177
        self.showComposerButton.setText(QtGui.QApplication.translate("atlas", "Show", None, QtGui.QApplication.UnicodeUTF8))
178
        self.refreshTemplateTool.setText(QtGui.QApplication.translate("atlas", "...", None, QtGui.QApplication.UnicodeUTF8))
179
        self.groupBox_2.setTitle(QtGui.QApplication.translate("atlas", "Run", None, QtGui.QApplication.UnicodeUTF8))
180
        self.exportButton.setText(QtGui.QApplication.translate("atlas", "&Export", None, QtGui.QApplication.UnicodeUTF8))
181
        self.helpButton.setText(QtGui.QApplication.translate("atlas", "About", None, QtGui.QApplication.UnicodeUTF8))
182
        self.aboutButton.setText(QtGui.QApplication.translate("atlas", "Help", None, QtGui.QApplication.UnicodeUTF8))
183
        self.title.setText(QtGui.QApplication.translate("atlas", "Atlas", None, QtGui.QApplication.UnicodeUTF8))
184
185
import resources_rc