summaryrefslogtreecommitdiff
path: root/cad/src/commands/ChunkProperties/ChunkPropDialog.py
blob: 84ddbebf3f5625c3218b64cfd529a1164c9be035 (plain)
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
# Copyright 2005-2007 Nanorex, Inc.  See LICENSE file for details. 
"""
$Id$
"""

from PyQt4 import QtCore, QtGui

class Ui_ChunkPropDialog(object):
    def setupUi(self, ChunkPropDialog):
        ChunkPropDialog.setObjectName("ChunkPropDialog")
        ChunkPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,243,354).size()).expandedTo(ChunkPropDialog.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(ChunkPropDialog)
        self.vboxlayout.setMargin(11)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setMargin(0)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.atomsTextBrowser = QtGui.QTextBrowser(ChunkPropDialog)
        self.atomsTextBrowser.setObjectName("atomsTextBrowser")
        self.gridlayout.addWidget(self.atomsTextBrowser,1,1,1,1)

        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.textLabel2 = QtGui.QLabel(ChunkPropDialog)
        self.textLabel2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel2.setObjectName("textLabel2")
        self.vboxlayout1.addWidget(self.textLabel2)

        spacerItem = QtGui.QSpacerItem(20,113,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout1.addItem(spacerItem)
        self.gridlayout.addLayout(self.vboxlayout1,1,0,1,1)

        self.nameLineEdit = QtGui.QLineEdit(ChunkPropDialog)
        self.nameLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.nameLineEdit.setObjectName("nameLineEdit")
        self.gridlayout.addWidget(self.nameLineEdit,0,1,1,1)

        self.textLabel1 = QtGui.QLabel(ChunkPropDialog)
        self.textLabel1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.textLabel1.setObjectName("textLabel1")
        self.gridlayout.addWidget(self.textLabel1,0,0,1,1)
        self.vboxlayout.addLayout(self.gridlayout)

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")

        self.colorTextLabel = QtGui.QLabel(ChunkPropDialog)
        self.colorTextLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.colorTextLabel.setObjectName("colorTextLabel")
        self.hboxlayout.addWidget(self.colorTextLabel)

        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")

        self.chunk_color_frame = QtGui.QLabel(ChunkPropDialog)
        self.chunk_color_frame.setAutoFillBackground(True)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(5),QtGui.QSizePolicy.Policy(5))
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.chunk_color_frame.sizePolicy().hasHeightForWidth())
        self.chunk_color_frame.setSizePolicy(sizePolicy)
        self.chunk_color_frame.setMinimumSize(QtCore.QSize(40,0))
        self.chunk_color_frame.setFrameShape(QtGui.QFrame.Box)
        self.chunk_color_frame.setFrameShadow(QtGui.QFrame.Plain)
        self.chunk_color_frame.setScaledContents(True)
        self.chunk_color_frame.setObjectName("chunk_color_frame")
        self.hboxlayout1.addWidget(self.chunk_color_frame)

        self.choose_color_btn = QtGui.QPushButton(ChunkPropDialog)
        self.choose_color_btn.setEnabled(True)
        self.choose_color_btn.setAutoDefault(False)
        self.choose_color_btn.setObjectName("choose_color_btn")
        self.hboxlayout1.addWidget(self.choose_color_btn)

        spacerItem1 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout1.addItem(spacerItem1)
        self.hboxlayout.addLayout(self.hboxlayout1)
        self.vboxlayout.addLayout(self.hboxlayout)

        self.reset_color_btn = QtGui.QPushButton(ChunkPropDialog)
        self.reset_color_btn.setEnabled(True)
        self.reset_color_btn.setAutoDefault(False)
        self.reset_color_btn.setObjectName("reset_color_btn")
        self.vboxlayout.addWidget(self.reset_color_btn)

        self.make_atoms_visible_btn = QtGui.QPushButton(ChunkPropDialog)
        self.make_atoms_visible_btn.setEnabled(True)
        self.make_atoms_visible_btn.setAutoDefault(False)
        self.make_atoms_visible_btn.setObjectName("make_atoms_visible_btn")
        self.vboxlayout.addWidget(self.make_atoms_visible_btn)

        spacerItem2 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem2)

        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setMargin(0)
        self.hboxlayout2.setSpacing(6)
        self.hboxlayout2.setObjectName("hboxlayout2")

        spacerItem3 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem3)

        self.ok_btn = QtGui.QPushButton(ChunkPropDialog)
        self.ok_btn.setMinimumSize(QtCore.QSize(0,0))
        self.ok_btn.setDefault(True)
        self.ok_btn.setObjectName("ok_btn")
        self.hboxlayout2.addWidget(self.ok_btn)

        self.cancel_btn = QtGui.QPushButton(ChunkPropDialog)
        self.cancel_btn.setMinimumSize(QtCore.QSize(0,0))
        self.cancel_btn.setDefault(False)
        self.cancel_btn.setObjectName("cancel_btn")
        self.hboxlayout2.addWidget(self.cancel_btn)
        self.vboxlayout.addLayout(self.hboxlayout2)

        self.retranslateUi(ChunkPropDialog)
        
        ChunkPropDialog.setTabOrder(self.nameLineEdit,self.atomsTextBrowser)
        ChunkPropDialog.setTabOrder(self.atomsTextBrowser,self.choose_color_btn)
        ChunkPropDialog.setTabOrder(self.choose_color_btn,self.reset_color_btn)
        ChunkPropDialog.setTabOrder(self.reset_color_btn,self.make_atoms_visible_btn)
        ChunkPropDialog.setTabOrder(self.make_atoms_visible_btn,self.ok_btn)
        ChunkPropDialog.setTabOrder(self.ok_btn,self.cancel_btn)

    def retranslateUi(self, ChunkPropDialog):
        ChunkPropDialog.setWindowTitle(QtGui.QApplication.translate("ChunkPropDialog", "Chunk Properties", None, QtGui.QApplication.UnicodeUTF8))
        ChunkPropDialog.setWindowIcon(QtGui.QIcon("ui/border/Chunk"))
        self.textLabel2.setText(QtGui.QApplication.translate("ChunkPropDialog", "Atoms:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1.setText(QtGui.QApplication.translate("ChunkPropDialog", "Name:", None, QtGui.QApplication.UnicodeUTF8))
        self.colorTextLabel.setText(QtGui.QApplication.translate("ChunkPropDialog", "Chunk Color:", None, QtGui.QApplication.UnicodeUTF8))
        self.choose_color_btn.setToolTip(QtGui.QApplication.translate("ChunkPropDialog", "Change chunk color", None, QtGui.QApplication.UnicodeUTF8))
        self.choose_color_btn.setText(QtGui.QApplication.translate("ChunkPropDialog", "Choose...", None, QtGui.QApplication.UnicodeUTF8))
        self.reset_color_btn.setText(QtGui.QApplication.translate("ChunkPropDialog", "Reset Chunk Color to Default", None, QtGui.QApplication.UnicodeUTF8))
        self.make_atoms_visible_btn.setText(QtGui.QApplication.translate("ChunkPropDialog", "Make Invisible Atoms Visible", None, QtGui.QApplication.UnicodeUTF8))
        self.ok_btn.setText(QtGui.QApplication.translate("ChunkPropDialog", "&OK", None, QtGui.QApplication.UnicodeUTF8))
        self.ok_btn.setShortcut(QtGui.QApplication.translate("ChunkPropDialog", "Alt+O", None, QtGui.QApplication.UnicodeUTF8))
        self.cancel_btn.setText(QtGui.QApplication.translate("ChunkPropDialog", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
        self.cancel_btn.setShortcut(QtGui.QApplication.translate("ChunkPropDialog", "Alt+C", None, QtGui.QApplication.UnicodeUTF8))