-
Notifications
You must be signed in to change notification settings - Fork 4
/
poccad.py
624 lines (617 loc) · 35.4 KB
/
poccad.py
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
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'poccad.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_poccad(object):
def setupUi(self, poccad):
poccad.setObjectName("poccad")
poccad.resize(1061, 863)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("ui_files/icons/poccad.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
poccad.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(poccad)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.splitter_3 = QtWidgets.QSplitter(self.centralwidget)
self.splitter_3.setOrientation(QtCore.Qt.Vertical)
self.splitter_3.setObjectName("splitter_3")
self.horizontalLayoutWidget_4 = QtWidgets.QWidget(self.splitter_3)
self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.splitter_2 = QtWidgets.QSplitter(self.horizontalLayoutWidget_4)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName("splitter_2")
self.gridLayoutWidget = QtWidgets.QWidget(self.splitter_2)
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.gridLayoutWidget)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.output = QtWidgets.QPlainTextEdit(self.gridLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.output.sizePolicy().hasHeightForWidth())
self.output.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.output.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(9)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.output.setFont(font)
self.output.setStyleSheet("background-color:rgb(65, 65, 65);\n"
"font: 9pt \"Consolas\";")
self.output.setPlainText("")
self.output.setOverwriteMode(False)
self.output.setCursorWidth(0)
self.output.setTextInteractionFlags(QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
self.output.setObjectName("output")
self.verticalLayout_2.addWidget(self.output)
self.entryline = QtWidgets.QLineEdit(self.gridLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.entryline.sizePolicy().hasHeightForWidth())
self.entryline.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(10)
self.entryline.setFont(font)
self.entryline.setClearButtonEnabled(False)
self.entryline.setObjectName("entryline")
self.verticalLayout_2.addWidget(self.entryline)
self.layoutWidget = QtWidgets.QWidget(self.splitter_2)
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.activeview = QtWidgets.QLabel(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.activeview.sizePolicy().hasHeightForWidth())
self.activeview.setSizePolicy(sizePolicy)
self.activeview.setText("")
self.activeview.setPixmap(QtGui.QPixmap("ui_files/icons/Iso_on.png"))
self.activeview.setScaledContents(True)
self.activeview.setObjectName("activeview")
self.gridLayout_2.addWidget(self.activeview, 0, 0, 1, 1)
self.verticalLayout.addLayout(self.gridLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setSpacing(7)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.isoview_button = QtWidgets.QPushButton(self.layoutWidget)
self.isoview_button.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("ui_files/icons/Iso_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.isoview_button.setIcon(icon1)
self.isoview_button.setObjectName("isoview_button")
self.horizontalLayout_3.addWidget(self.isoview_button)
self.topview_button = QtWidgets.QPushButton(self.layoutWidget)
self.topview_button.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("ui_files/icons/Top_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.topview_button.setIcon(icon2)
self.topview_button.setObjectName("topview_button")
self.horizontalLayout_3.addWidget(self.topview_button)
self.frontview_button = QtWidgets.QPushButton(self.layoutWidget)
self.frontview_button.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap("ui_files/icons/Front_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.frontview_button.setIcon(icon3)
self.frontview_button.setObjectName("frontview_button")
self.horizontalLayout_3.addWidget(self.frontview_button)
self.leftview_button = QtWidgets.QPushButton(self.layoutWidget)
self.leftview_button.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap("ui_files/icons/Left_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.leftview_button.setIcon(icon4)
self.leftview_button.setObjectName("leftview_button")
self.horizontalLayout_3.addWidget(self.leftview_button)
self.bottomview_button = QtWidgets.QPushButton(self.layoutWidget)
self.bottomview_button.setText("")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap("ui_files/icons/Bottom_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.bottomview_button.setIcon(icon5)
self.bottomview_button.setObjectName("bottomview_button")
self.horizontalLayout_3.addWidget(self.bottomview_button)
self.rightview_button = QtWidgets.QPushButton(self.layoutWidget)
self.rightview_button.setText("")
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap("ui_files/icons/Right_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.rightview_button.setIcon(icon6)
self.rightview_button.setObjectName("rightview_button")
self.horizontalLayout_3.addWidget(self.rightview_button)
self.rearview_button = QtWidgets.QPushButton(self.layoutWidget)
self.rearview_button.setText("")
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap("ui_files/icons/Rear_off.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.rearview_button.setIcon(icon7)
self.rearview_button.setObjectName("rearview_button")
self.horizontalLayout_3.addWidget(self.rearview_button)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.horizontalLayout_8.addWidget(self.splitter_2)
self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.splitter_3)
self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.splitter = QtWidgets.QSplitter(self.horizontalLayoutWidget_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(20)
sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
self.splitter.setSizePolicy(sizePolicy)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.splitter)
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.treeWidget = QtWidgets.QTreeWidget(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
self.treeWidget.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.treeWidget.setPalette(palette)
self.treeWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
self.treeWidget.setStyleSheet("background-color:rgb(65, 65, 65);\n"
"")
self.treeWidget.setDragEnabled(True)
self.treeWidget.setDragDropMode(QtWidgets.QAbstractItemView.DragOnly)
self.treeWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.treeWidget.setIndentation(15)
self.treeWidget.setHeaderHidden(True)
self.treeWidget.setObjectName("treeWidget")
self.treeWidget.headerItem().setText(0, "1")
self.horizontalLayout.addWidget(self.treeWidget)
self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.splitter)
self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.tabWidget = QtWidgets.QTabWidget(self.horizontalLayoutWidget_2)
self.tabWidget.setAutoFillBackground(True)
self.tabWidget.setStyleSheet("")
self.tabWidget.setObjectName("tabWidget")
self.tab_3 = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tab_3.sizePolicy().hasHeightForWidth())
self.tab_3.setSizePolicy(sizePolicy)
self.tab_3.setObjectName("tab_3")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab_3)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.OCCedit = CodeEditor(self.tab_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.OCCedit.sizePolicy().hasHeightForWidth())
self.OCCedit.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.OCCedit.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.OCCedit.setFont(font)
self.OCCedit.setStyleSheet("background-color:rgb(65, 65, 65);\n"
"font: 10pt \"Consolas\";")
self.OCCedit.setTabChangesFocus(False)
self.OCCedit.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
self.OCCedit.setTabStopWidth(20)
self.OCCedit.setObjectName("OCCedit")
self.horizontalLayout_4.addWidget(self.OCCedit)
self.tabWidget.addTab(self.tab_3, "")
self.tab_4 = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tab_4.sizePolicy().hasHeightForWidth())
self.tab_4.setSizePolicy(sizePolicy)
self.tab_4.setObjectName("tab_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab_4)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.Consult = CodeEditor(self.tab_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Consult.sizePolicy().hasHeightForWidth())
self.Consult.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 100))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.Consult.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Consolas")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.Consult.setFont(font)
self.Consult.setStyleSheet("background-color:rgb(65, 65, 100);\n"
"font: 10pt \"Consolas\";")
self.Consult.setTabChangesFocus(False)
self.Consult.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
self.Consult.setReadOnly(True)
self.Consult.setTabStopWidth(20)
self.Consult.setObjectName("Consult")
self.horizontalLayout_2.addWidget(self.Consult)
self.tabWidget.addTab(self.tab_4, "")
self.tab = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tab.sizePolicy().hasHeightForWidth())
self.tab.setSizePolicy(sizePolicy)
self.tab.setObjectName("tab")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.treelayers = QtWidgets.QTreeWidget(self.tab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.treelayers.sizePolicy().hasHeightForWidth())
self.treelayers.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(65, 65, 65))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.treelayers.setPalette(palette)
self.treelayers.setStyleSheet("background-color:rgb(65, 65, 65);\n"
"")
self.treelayers.setEditTriggers(QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed)
self.treelayers.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
self.treelayers.setHeaderHidden(True)
self.treelayers.setObjectName("treelayers")
self.treelayers.headerItem().setText(0, "1")
self.horizontalLayout_5.addWidget(self.treelayers)
self.tabWidget.addTab(self.tab, "")
self.horizontalLayout_6.addWidget(self.tabWidget)
self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter)
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.OCClayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.OCClayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
self.OCClayout.setContentsMargins(0, 0, 0, 0)
self.OCClayout.setObjectName("OCClayout")
self.render_button = QtWidgets.QPushButton(self.verticalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(4)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.render_button.sizePolicy().hasHeightForWidth())
self.render_button.setSizePolicy(sizePolicy)
self.render_button.setObjectName("render_button")
self.OCClayout.addWidget(self.render_button)
self.horizontalLayout_7.addWidget(self.splitter)
self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1)
poccad.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(poccad)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1061, 26))
self.menubar.setObjectName("menubar")
self.menuMenu = QtWidgets.QMenu(self.menubar)
self.menuMenu.setObjectName("menuMenu")
self.menuShape = QtWidgets.QMenu(self.menubar)
self.menuShape.setObjectName("menuShape")
self.menuBoolean = QtWidgets.QMenu(self.menubar)
self.menuBoolean.setObjectName("menuBoolean")
self.menuTransform = QtWidgets.QMenu(self.menubar)
self.menuTransform.setObjectName("menuTransform")
self.menuConstruction = QtWidgets.QMenu(self.menubar)
self.menuConstruction.setObjectName("menuConstruction")
self.menuExport = QtWidgets.QMenu(self.menubar)
self.menuExport.setObjectName("menuExport")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
poccad.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(poccad)
self.statusbar.setObjectName("statusbar")
poccad.setStatusBar(self.statusbar)
self.actionQuit = QtWidgets.QAction(poccad)
self.actionQuit.setObjectName("actionQuit")
self.actionBox = QtWidgets.QAction(poccad)
font = QtGui.QFont()
font.setItalic(False)
font.setStrikeOut(False)
font.setKerning(False)
self.actionBox.setFont(font)
self.actionBox.setAutoRepeat(True)
self.actionBox.setObjectName("actionBox")
self.actionOpen = QtWidgets.QAction(poccad)
self.actionOpen.setObjectName("actionOpen")
self.actionSave = QtWidgets.QAction(poccad)
self.actionSave.setObjectName("actionSave")
self.actionSphere = QtWidgets.QAction(poccad)
font = QtGui.QFont()
font.setStrikeOut(False)
font.setKerning(False)
self.actionSphere.setFont(font)
self.actionSphere.setObjectName("actionSphere")
self.actionRead_Step = QtWidgets.QAction(poccad)
self.actionRead_Step.setObjectName("actionRead_Step")
self.actionCut = QtWidgets.QAction(poccad)
self.actionCut.setObjectName("actionCut")
self.actionPoint = QtWidgets.QAction(poccad)
self.actionPoint.setObjectName("actionPoint")
self.actionTranslate = QtWidgets.QAction(poccad)
self.actionTranslate.setObjectName("actionTranslate")
self.actionExportstep = QtWidgets.QAction(poccad)
self.actionExportstep.setObjectName("actionExportstep")
self.actionNew = QtWidgets.QAction(poccad)
self.actionNew.setObjectName("actionNew")
self.actionAbout = QtWidgets.QAction(poccad)
self.actionAbout.setObjectName("actionAbout")
self.actionSave_as = QtWidgets.QAction(poccad)
self.actionSave_as.setObjectName("actionSave_as")
self.actionExport = QtWidgets.QAction(poccad)
self.actionExport.setObjectName("actionExport")
self.actionCylinder = QtWidgets.QAction(poccad)
self.actionCylinder.setObjectName("actionCylinder")
self.actionAxis = QtWidgets.QAction(poccad)
self.actionAxis.setObjectName("actionAxis")
self.actionUser_Guide = QtWidgets.QAction(poccad)
self.actionUser_Guide.setObjectName("actionUser_Guide")
self.menuMenu.addAction(self.actionNew)
self.menuMenu.addAction(self.actionOpen)
self.menuMenu.addSeparator()
self.menuMenu.addAction(self.actionSave)
self.menuMenu.addAction(self.actionSave_as)
self.menuMenu.addAction(self.actionExport)
self.menuMenu.addSeparator()
self.menuMenu.addAction(self.actionQuit)
self.menuShape.addAction(self.actionBox)
self.menuShape.addAction(self.actionCylinder)
self.menuShape.addAction(self.actionSphere)
self.menuShape.addAction(self.actionRead_Step)
self.menuBoolean.addAction(self.actionCut)
self.menuTransform.addAction(self.actionTranslate)
self.menuConstruction.addAction(self.actionPoint)
self.menuConstruction.addAction(self.actionAxis)
self.menuExport.addAction(self.actionExportstep)
self.menuHelp.addAction(self.actionAbout)
self.menuHelp.addAction(self.actionUser_Guide)
self.menubar.addAction(self.menuMenu.menuAction())
self.menubar.addAction(self.menuShape.menuAction())
self.menubar.addAction(self.menuConstruction.menuAction())
self.menubar.addAction(self.menuBoolean.menuAction())
self.menubar.addAction(self.menuTransform.menuAction())
self.menubar.addAction(self.menuExport.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(poccad)
self.tabWidget.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(poccad)
def retranslateUi(self, poccad):
_translate = QtCore.QCoreApplication.translate
poccad.setWindowTitle(_translate("poccad", "poccad"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("poccad", "Edit"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("poccad", "Consult"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("poccad", "Layers"))
self.render_button.setText(_translate("poccad", "Render [F5]"))
self.render_button.setShortcut(_translate("poccad", "F5"))
self.menuMenu.setTitle(_translate("poccad", "Menu"))
self.menuShape.setTitle(_translate("poccad", "Shape"))
self.menuBoolean.setTitle(_translate("poccad", "Boolean"))
self.menuTransform.setTitle(_translate("poccad", "Transform"))
self.menuConstruction.setTitle(_translate("poccad", "Construction"))
self.menuExport.setTitle(_translate("poccad", "Export"))
self.menuHelp.setTitle(_translate("poccad", "Help"))
self.actionQuit.setText(_translate("poccad", "Quit"))
self.actionQuit.setShortcut(_translate("poccad", "Ctrl+Q"))
self.actionBox.setText(_translate("poccad", "Box"))
self.actionOpen.setText(_translate("poccad", "Open"))
self.actionOpen.setShortcut(_translate("poccad", "Ctrl+O"))
self.actionSave.setText(_translate("poccad", "Save"))
self.actionSave.setShortcut(_translate("poccad", "Ctrl+S"))
self.actionSphere.setText(_translate("poccad", "Sphere"))
self.actionRead_Step.setText(_translate("poccad", "Read Step"))
self.actionCut.setText(_translate("poccad", "Cut"))
self.actionPoint.setText(_translate("poccad", "Point"))
self.actionTranslate.setText(_translate("poccad", "Translate"))
self.actionExportstep.setText(_translate("poccad", "Export step"))
self.actionNew.setText(_translate("poccad", "New"))
self.actionNew.setShortcut(_translate("poccad", "Ctrl+N"))
self.actionAbout.setText(_translate("poccad", "About"))
self.actionSave_as.setText(_translate("poccad", "Save as"))
self.actionSave_as.setShortcut(_translate("poccad", "Ctrl+Shift+S"))
self.actionExport.setText(_translate("poccad", "Export .py"))
self.actionExport.setShortcut(_translate("poccad", "Ctrl+E"))
self.actionCylinder.setText(_translate("poccad", "Cylinder"))
self.actionAxis.setText(_translate("poccad", "Axis"))
self.actionUser_Guide.setText(_translate("poccad", "User Guide"))
from lib.codeeditor import CodeEditor