This repository has been archived by the owner on Apr 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathInitGui.py
164 lines (146 loc) · 13 KB
/
InitGui.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
class SeaWorkbench(Workbench):
"""
Statistical Energy Analysis workbench
"""
Icon = """
/* XPM */
static char *dummy[]={
"100 100 16 1",
". c #0000ff",
"n c #3333cc",
"g c #3333ff",
"d c #660099",
"a c #663399",
"e c #6633cc",
"# c #6666cc",
"f c #6666ff",
"l c #cc3366",
"b c #cc3399",
"h c #cc6699",
"m c #cc66cc",
"k c #cc99cc",
"j c #ff0000",
"i c #ff3333",
"c c #ff6666",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"..............#abcccccde#.............ffffffffffffffffffffff................ffffff..................",
"...........ghijjjjjjjjjjjichf.........jjjjjjjjjjjjjjjjjjjjjc...............gijjjji..................",
"..........kijjjjjjjjjjjjjjjjj.........jjjjjjjjjjjjjjjjjjjjjc...............ejjjjjj#.................",
".........hjjjjjjjjjjjjjjjjjjj.........jjjjjjjjjjjjjjjjjjjjjc...............cjjjjjjc.................",
"........kjjjjjjche###eacijjjj.........jjjjjiiiiiiiiiiiiiiiic..............gjjjjjjjjg................",
".......gijjjji#..........#cjj.........jjjjc...............................hjjjjjjjje................",
".......ajjjjig.............gh.........jjjjc...............................ijjjccjjjc................",
".......cjjjj#.........................jjjjc..............................#jjjjeajjjjf...............",
".......ijjji..........................jjjjc..............................cjjjiggjjjjh...............",
".......jjjji..........................jjjjc.............................gijjjb..cjjjig..............",
".......jjjji..........................jjjjc.............................ejjjj#..ejjjje..............",
".......ijjjjg.........................jjjjc.............................cjjji...gijjjc..............",
".......cjjjjl.........................jjjjc............................fjjjjh....bjjjjg.............",
".......hjjjjjcf.......................jjjjc............................hjjjjf....#jjjjh.............",
".......gijjjjjjch#g...................jjjjiffffffffffffffff...........gijjjc......ijjji.............",
"........kjjjjjjjjjjica#...............jjjjjjjjjjjjjjjjjjjji...........#jjjje......hjjjj#............",
".........mjjjjjjjjjjjjjic#............jjjjjjjjjjjjjjjjjjjji...........cjjjig......gjjjjb............",
"..........#cjjjjjjjjjjjjjjcg..........jjjjjjjjjjjjjjjjjjjji..........gjjjjc........cjjjig...........",
"............#bijjjjjjjjjjjjik.........jjjjjiiiiiiiiiiiiiiii..........hjjjj#........ejjjje...........",
"...............falcijjjjjjjjj#........jjjjc..........................ijjji.........gijjjc...........",
"....................#hijjjjjjig.......jjjjc.........................#jjjjh..........cjjjjf..........",
".......................kijjjjje.......jjjjc.........................bjjjjf..........#jjjjh..........",
"........................gijjjjc.......jjjjc........................gijjjjccccccccccccjjjji..........",
".........................mjjjji.......jjjjc........................ejjjjjjjjjjjjjjjjjjjjjj#.........",
".........................gjjjjjg......jjjjc........................cjjjjjjjjjjjjjjjjjjjjjjc.........",
"..........................ijjjjf......jjjjc.......................fjjjjjjjjjjjjjjjjjjjjjjjjg........",
"..........................ijjjjg......jjjjc.......................hjjjjheeeeeeeeeeeeeehjjjja........",
".........................gjjjji.......jjjjc.......................ijjjig..............gjjjjc........",
".......f.................hjjjjc.......jjjjc......................#jjjjc................cjjjjf.......",
".......ic#..............nijjjjh.......jjjjc......................cjjjj#................ejjjjh.......",
".......ijjceg.........gmijjjjig.......jjjjc.....................gjjjji.................gijjjig......",
".......ijjjjjche#ff#ebijjjjjjm........jjjjjiiiiiiiiiiiiiiiii....ajjjjb..................bjjjje......",
".......ijjjjjjjjjjjjjjjjjjjjh.........jjjjjjjjjjjjjjjjjjjjjj....cjjjj#..................#jjjjc......",
".......cjjjjjjjjjjjjjjjjjjim..........jjjjjjjjjjjjjjjjjjjjjj...fjjjji....................ijjjjg.....",
"........gecijjjjjjjjjjjjihg...........jjjjjjjjjjjjjjjjjjjjjj...hjjjjh....................hjjjjh.....",
"............feaccccccdef............................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"....................................................................................................",
"...................................................................................................."};
"""
MenuText = "SEA"
ToolTip = "Statistical Energy Analysis workbench"
def Initialize(self):
from PyQt4 import QtCore, QtGui
import Paths
import gui
import Sea
Gui.addIconPath(Paths.iconsPath())
Gui.addLanguagePath(Paths.translationsPath())
items = ["Sea_AddSystem", "Sea_AddComponent", "Sea_AddExcitation", "Sea_AddMaterial"]
self.appendToolbar(str(QtCore.QT_TRANSLATE_NOOP("Sea", "Add item")), items)
self.appendMenu(str(QtCore.QT_TRANSLATE_NOOP("Sea", "Add item")), items)
items = ["Sea_RunAnalysis", "Sea_StopAnalysis", "Sea_ClearAnalysis"];
self.appendToolbar(str(QtCore.QT_TRANSLATE_NOOP("Sea", "Analysis")), items)
self.appendMenu(str(QtCore.QT_TRANSLATE_NOOP("Sea", "Analysis")), items)
Log('Loading Sea module... done\n')
def Activated(self):
Msg("SeaWorkbench::Activated()\n")
def Deactivated(self):
Msg("SeaWorkbench::Deactivated()\n")
Gui.addWorkbench(SeaWorkbench)