Modules |
Files |
Inheritance Tree |
Inheritance Graph |
Name Index |
Config
File: Synopsis/UI/Qt/sourceoptionsdialog.py
1| # Form implementation generated from reading ui file 'sourceoptionsdialog.ui'
2| #
3| # Created: Tue Nov 12 00:34:51 2002
4| # by: The PyQt User Interface Compiler (pyuic)
5| #
6| # WARNING! All changes made in this file will be lost!
7|
8|
9| from qt import *
10|
11|
12| class SourceOptionsDialog(QDialog):
13| def __init__(self,parent = None,name = None,modal = 0,fl = 0):
14| QDialog.__init__(self,parent,name,modal,fl)
15|
16| if name == None:
17| self.setName("SourceOptionsDialog")
18|
19| self.resize(600,558)
20| self.setCaption(self.trUtf8("Source Action Options"))
21|
22| SourceOptionsDialogLayout = QVBoxLayout(self,11,6,"SourceOptionsDialogLayout")
23|
24| Layout5 = QHBoxLayout(None,0,6,"Layout5")
25|
26| self.TextLabel1 = QLabel(self,"TextLabel1")
27| self.TextLabel1.setText(self.trUtf8("Name:"))
28| Layout5.addWidget(self.TextLabel1)
29|
30| self.NameEdit = QLineEdit(self,"NameEdit")
31| self.NameEdit.setText(self.trUtf8("Action Name"))
32| self.NameEdit.setMaxLength(40)
33| Layout5.addWidget(self.NameEdit)
34| SourceOptionsDialogLayout.addLayout(Layout5)
35|
36| self.GroupBox1 = QGroupBox(self,"GroupBox1")
37| self.GroupBox1.setTitle(self.trUtf8("File Selection Rules"))
38| self.GroupBox1.setColumnLayout(0,Qt.Vertical)
39| self.GroupBox1.layout().setSpacing(6)
40| self.GroupBox1.layout().setMargin(11)
41| GroupBox1Layout = QVBoxLayout(self.GroupBox1.layout())
42| GroupBox1Layout.setAlignment(Qt.AlignTop)
43|
44| self.TextLabel2 = QLabel(self.GroupBox1,"TextLabel2")
45| self.TextLabel2.setText(self.trUtf8("Source files are selected by applying these rules in order:"))
46| GroupBox1Layout.addWidget(self.TextLabel2)
47|
48| self.RuleList = QListView(self.GroupBox1,"RuleList")
49| self.RuleList.addColumn(self.trUtf8("Type"))
50| self.RuleList.header().setClickEnabled(0,self.RuleList.header().count() - 1)
51| self.RuleList.addColumn(self.trUtf8("Path"))
52| self.RuleList.header().setClickEnabled(0,self.RuleList.header().count() - 1)
53| self.RuleList.addColumn(self.trUtf8("Filename"))
54| self.RuleList.header().setClickEnabled(0,self.RuleList.header().count() - 1)
55| self.RuleList.addColumn(self.trUtf8("Options"))
56| self.RuleList.header().setClickEnabled(0,self.RuleList.header().count() - 1)
57| self.RuleList.setAllColumnsShowFocus(1)
58| self.RuleList.setRootIsDecorated(1)
59| GroupBox1Layout.addWidget(self.RuleList)
60|
61| Layout7 = QHBoxLayout(None,0,6,"Layout7")
62|
63| self.InsertButton = QPushButton(self.GroupBox1,"InsertButton")
64| self.InsertButton.setText(self.trUtf8("Add New Rule ... "))
65| Layout7.addWidget(self.InsertButton)
66| spacer = QSpacerItem(91,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
67| Layout7.addItem(spacer)
68|
69| self.DeleteButton = QPushButton(self.GroupBox1,"DeleteButton")
70| self.DeleteButton.setEnabled(0)
71| self.DeleteButton.setText(self.trUtf8("Delete Rule"))
72| Layout7.addWidget(self.DeleteButton)
73|
74| self.EditButton = QPushButton(self.GroupBox1,"EditButton")
75| self.EditButton.setEnabled(0)
76| self.EditButton.setText(self.trUtf8("Edit Rule"))
77| Layout7.addWidget(self.EditButton)
78|
79| self.UpButton = QPushButton(self.GroupBox1,"UpButton")
80| self.UpButton.setEnabled(0)
81| self.UpButton.setText(self.trUtf8("Up"))
82| Layout7.addWidget(self.UpButton)
83|
84| self.DownButton = QPushButton(self.GroupBox1,"DownButton")
85| self.DownButton.setEnabled(0)
86| self.DownButton.setText(self.trUtf8("Down"))
87| Layout7.addWidget(self.DownButton)
88| GroupBox1Layout.addLayout(Layout7)
89| SourceOptionsDialogLayout.addWidget(self.GroupBox1)
90|
91| Layout8 = QHBoxLayout(None,0,6,"Layout8")
92| spacer_2 = QSpacerItem(21,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
93| Layout8.addItem(spacer_2)
94|
95| self.TextLabel3 = QLabel(self,"TextLabel3")
96| self.TextLabel3.setText(self.trUtf8("You can test your rules by clicking here:"))
97| Layout8.addWidget(self.TextLabel3)
98|
99| self.TestButton = QPushButton(self,"TestButton")
100| self.TestButton.setText(self.trUtf8("Test Rules"))
101| Layout8.addWidget(self.TestButton)
102| SourceOptionsDialogLayout.addLayout(Layout8)
103|
104| self.Frame3 = QFrame(self,"Frame3")
105| self.Frame3.setFrameShape(QFrame.HLine)
106| self.Frame3.setFrameShadow(QFrame.Sunken)
107| SourceOptionsDialogLayout.addWidget(self.Frame3)
108|
109| Layout5_2 = QHBoxLayout(None,0,6,"Layout5_2")
110|
111| self.CancelButton = QPushButton(self,"CancelButton")
112| self.CancelButton.setText(self.trUtf8("Cancel"))
113| Layout5_2.addWidget(self.CancelButton)
114| spacer_3 = QSpacerItem(400,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
115| Layout5_2.addItem(spacer_3)
116|
117| self.OkButton = QPushButton(self,"OkButton")
118| self.OkButton.setText(self.trUtf8("Ok"))
119| Layout5_2.addWidget(self.OkButton)
120| SourceOptionsDialogLayout.addLayout(Layout5_2)
121|
122| self.connect(self.OkButton,SIGNAL("clicked()"),self.OkButton_clicked)
123| self.connect(self.CancelButton,SIGNAL("clicked()"),self.CancelButton_clicked)
124|
125| self.init()
126|
127| def init(self):
128|
129| print "Disabling sorting for RuleList"
130| self.RuleList.setSorting(-1)
131|
132|
133| def OkButton_clicked(self):
134|
135| self.accept()
136|
137|
138| def CancelButton_clicked(self):
139|
140| self.reject()
141|