Debian Codegraph @

src/MyTab.cpp

raw symbols ◀ ▶ SCIP
3 Debian patches touch this file
1 #cxx . . $ `<file>/src/MyTab.cpp`/ifndef WX_PRECOMP
2 #include "wx/wx.h"
3 #endif
4
5 //#include "wx/artprov.h"
6 #include <wx/slider.h>
7 /*
8 #include <wx/defs.h>
9 #include <wx/app.h>
10 #include <wx/menu.h>
11 #include <wx/dcclient.h>
12 */
13
14 //#include <wx/image.h>
15 #include <GL/glew.h>
16
17 #include "MyTab.h"cxx . . $ `<file>/src/MyTab.h`/
18
19 #include "CgUtil.h"cxx . . $ `<file>/src/CgUtil.h`/
20 #include "Common.h"cxx . . $ `<file>/src/Common.h`/
21
22 #include<wx/colordlg.h>
23 #include<wx/utils.h>
24 #include<wx/stdpaths.h>
25
26 const float MAX_BLENDcxx . . $ MAX_BLEND. = 0.25; // maximal blend factor for colors (when per chain)
27
28 // GEOM TAB
29 ////////////
30
•31 static enumcxx . . $ $anonymous_type_bc3e65bb6c4db924_0# { ID_SetBallnstickcxx . . $ ID_SetBallnstick.=500, ID_SetSpacefillcxx . . $ ID_SetSpacefill., ID_SetLicoricecxx . . $ ID_SetLicorice.,
32 ID_SetLicoriceRadiuscxx . . $ ID_SetLicoriceRadius., ID_SetBallnstickRadiuscxx . . $ ID_SetBallnstickRadius.,
33
34 ID_SetBallnstickSmoothcolorcxx . . $ ID_SetBallnstickSmoothcolor.,ID_SetBallnstickBicolorcxx . . $ ID_SetBallnstickBicolor., ID_SetBallnstickConstantcolorcxx . . $ ID_SetBallnstickConstantcolor.,
35
36 ID_ChooseBallnstickConstantcolorcxx . . $ ID_ChooseBallnstickConstantcolor.,ID_SetFogcxx . . $ ID_SetFog.,
37
38 ID_SetHetatmcxx . . $ ID_SetHetatm.,
39 ID_ChooseBgcolorcxx . . $ ID_ChooseBgcolor.,
40 ID_ChooseHAcolorcxx . . $ ID_ChooseHAcolor.,
41 ID_SetBgbrightnesscxx . . $ ID_SetBgbrightness.,
42 ID_SetBaseColorSatcxx . . $ ID_SetBaseColorSat.,
43 ID_SetBaseColorBricxx . . $ ID_SetBaseColorBri.,
44 ID_SetShinecxx . . $ ID_SetShine.,
45 ID_SetShineSizecxx . . $ ID_SetShineSize.,
46 ID_SetLightcxx . . $ ID_SetLight.,
47 ID_SetLightBasecxx . . $ ID_SetLightBase.,
48 ID_SetHalocxx . . $ ID_SetHalo.,
49 ID_SetAOcxx . . $ ID_SetAO.,
50 ID_SetHaloStrcxx . . $ ID_SetHaloStr.,
51 ID_SetHaloAwarecxx . . $ ID_SetHaloAware.,
52 ID_SetAutobalancecxx . . $ ID_SetAutobalance.,
53
54 // atom colors
55 ID_SetColorPerChaincxx . . $ ID_SetColorPerChain.,
56 ID_SetColorPerAtomcxx . . $ ID_SetColorPerAtom.,
57 ID_ChangeColorSchemacxx . . $ ID_ChangeColorSchema.,
58 ID_SetColorBlendcxx . . $ ID_SetColorBlend.,
59
60 // ID_SetShadow,
61 ID_SetShadowStrcxx . . $ ID_SetShadowStr.,
62 ID_SetSemcxx . . $ ID_SetSem.,
63 ID_SetDoubleShadowscxx . . $ ID_SetDoubleShadows.,
64 ID_SetBorderFixedcxx . . $ ID_SetBorderFixed.,
65 ID_SetBorderVariablecxx . . $ ID_SetBorderVariable.,
66 ID_SetBorderDepthAwarecxx . . $ ID_SetBorderDepthAware.,
67 ID_WebButtoncxx . . $ ID_WebButton.,
68 ID_FirstPresetcxx . . $ ID_FirstPreset.,
69 } IDcxx . . $ ID.;
70
71
72 static wxRadioButtoncxx . . $ wxRadioButton# *buttonSetLicoricecxx . . $ buttonSetLicorice., *buttonSetSpacefillcxx . . $ buttonSetSpacefill., *buttonSetBallnstickcxx . . $ buttonSetBallnstick.,
73 *buttonSetColorPerChaincxx . . $ buttonSetColorPerChain., *buttonSetColorPerAtomcxx . . $ buttonSetColorPerAtom. ;
74
75 static wxRadioButtoncxx . . $ wxRadioButton# *buttonSetBallnstickBicolorcxx . . $ buttonSetBallnstickBicolor., *buttonSetBallnstickConstantcolorcxx . . $ buttonSetBallnstickConstantcolor., *buttonSetBallnstickSmoothcolorcxx . . $ buttonSetBallnstickSmoothcolor.;
76
77 static wxStringcxx . . $ wxString# qutemolwebsitecxx . . $ qutemolwebsite.=_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("http://qutemol.sourceforge.net/");
78 static wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! colDisabledcxx . . $ colDisabled., colStickscxx . . $ colSticks., colBgcxx . . $ colBg.(255,255,255);
79 static float bgbrightnesscxx . . $ bgbrightness.=0.5;
80
81 // why not? :-(
82 //#include<wx/clrpicker.h>
83 //static wxColourPickerCtrl *buttonChooseBallnstickConstantcolor;
84 // fall back:
85 static wxButtoncxx . . $ wxButton# *buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.;
86 static wxButtoncxx . . $ wxButton# *buttonChooseBgcolorcxx . . $ buttonChooseBgcolor.;
87 static wxButtoncxx . . $ wxButton# *buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.;
88 static wxButtoncxx . . $ wxButton# *buttonChangeColorSchemacxx . . $ buttonChangeColorSchema.;
89
90 static wxCheckBoxcxx . . $ wxCheckBox# *buttonAutobalancecxx . . $ buttonAutobalance.;
91 static wxCheckBoxcxx . . $ wxCheckBox# *buttonDoubleShadowscxx . . $ buttonDoubleShadows.;
92 static wxCheckBoxcxx . . $ wxCheckBox# *buttonSemcxx . . $ buttonSem.;
93 static wxCheckBoxcxx . . $ wxCheckBox# *buttonSetHetatmcxx . . $ buttonSetHetatm.;
94
95 static wxSlidercxx . . $ wxSlider# *sliderLicoricecxx . . $ sliderLicorice., *sliderBallnstickcxx . . $ sliderBallnstick.,
•96 //*sliderSetBaseColor ,
97 *sliderShineSizecxx . . $ sliderShineSize.,
98 *sliderAwarencxx . . $ sliderAwaren. ,
99 *sliderSetBgbrightnesscxx . . $ sliderSetBgbrightness.,
100 *sliderLightBasecxx . . $ sliderLightBase., *sliderLightingcxx . . $ sliderLighting., *sliderAOcxx . . $ sliderAO.,
101 *sliderShadowStrcxx . . $ sliderShadowStr.,*sliderHaloAwarecxx . . $ sliderHaloAware.,
102 *sliderHaloSizecxx . . $ sliderHaloSize., *sliderHaloStrcxx . . $ sliderHaloStr.,*sliderColorBlendcxx . . $ sliderColorBlend.;
103
104
105
106 static wxStaticTextcxx . . $ wxStaticText# *textLicoricecxx . . $ textLicorice., *textBallnstickcxx . . $ textBallnstick., *textShadowStrcxx . . $ textShadowStr.,
107 *textBallnstick2cxx . . $ textBallnstick2., *textShineSizecxx . . $ textShineSize., *textDoubleShadowscxx . . $ textDoubleShadows.,
108 *textAwarencxx . . $ textAwaren., *textSemcxx . . $ textSem., *textLightBasecxx . . $ textLightBase., *textSetHetatmcxx . . $ textSetHetatm.,
109 *textHaloSizecxx . . $ textHaloSize., *textHaloStrcxx . . $ textHaloStr., *textHaloAwarecxx . . $ textHaloAware., *textHaloColorcxx . . $ textHaloColor.,
110 *textColorBlendcxx . . $ textColorBlend.;
111
112 static wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! normalButtonBgcxx . . $ normalButtonBg.;
113 static wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! currentButtonBgcxx . . $ currentButtonBg.;
114
115 const int NPresetcxx . . $ NPreset.=15;
116 static wxButtoncxx . . $ wxButton#* presetcxx . . $ preset.[NPresetcxx . . $ NPreset.];
117
•118 static const char* presetFilecxx . . $ presetFile.[NPresetcxx . . $ NPreset.] = {
119 "real.preset",
120 "real2.preset",
121 "direct.preset",
122
123 "illustr.preset",
124 "illustr_new.preset",
125 "illustr_motm.preset",
126
127 "qutemol1.preset",
128 "qutemol2.preset",
129 "qutemol3.preset",
130
131 "coolb.preset",
132 "coold.preset",
133 "borders_cool.preset",
134
135 "sem.preset",
136 "sem2.preset",
137 "shape.preset",
138 };
139
140
•141 static const char* presetNamecxx . . $ presetName.[NPresetcxx . . $ NPreset.]={
142 "Realistic 1",
143 "Realistic 2",
144 "Direct\nLight Only",
145
146 "Illustr-\native 1",
147 "Illustr-\native 2",
148 "Molecule of\nthe Month",
149
150 "Mixed 1",
151 "Mixed 2",
152 "Mixed 3",
153
154 "Cool\n(bright)",
155 "Cool\n(dark)",
156 "Cool\nborders",
157
158 "Simulated\nS.E.M. 1",
159 "Simulated\nS.E.M. 2",
160 "Shape\nPerception"
161 };
162
163 static bool presetEndOfLinecxx . . $ presetEndOfLine.[NPresetcxx . . $ NPreset.] = {
164 false, true,
165 true,
166 false, true,
167 true,
168 false, false, true,
169 false, true,
170 true,
171 false, true,
172 true
173 };
174
175 Bytecxx . . $ Byte# f2bcxx . . $ f2b(ed6d3b1f37918c01).(float x){
176 return (Bytecxx . . $ Byte#)(x*255.0);
177 }
178
179 float b2fcxx . . $ b2f(ef46aeb7cc924ea7).(Bytecxx . . $ Byte# x){
180 return ((float)x)/255.0;
181 }
182
183 // quick hack
184 class SliderTablecxx . . $ SliderTable# {
185 enumcxx . . $ SliderTable#$anonymous_type_1# {MAXcxx . . $ SliderTable#MAX.=100};
186 int ncxx . . $ SliderTable#n.;
187 wxWindowIDcxx . . $ wxWindowID# idcxx . . $ SliderTable#id.[MAXcxx . . $ SliderTable#MAX.];
188 public:
189 float* datacxx . . $ SliderTable#data.[MAXcxx . . $ SliderTable#MAX.];
190 wxSlidercxx . . $ wxSlider#* slidercxx . . $ SliderTable#slider.[MAXcxx . . $ SliderTable#MAX.];
191 SliderTablecxx . . $ SliderTable#SliderTable(49f6e7a06ebc5aa8).(){ncxx . . $ SliderTable#n.=0;}
192
193 void Addcxx . . $ SliderTable#Add(ea389122718a0c81).(wxWindowIDcxx . . $ wxWindowID# x, float* y, wxSlidercxx . . $ wxSlider#* w){
194 if (ncxx . . $ SliderTable#n.<MAXcxx . . $ SliderTable#MAX.) {
195 idcxx . . $ SliderTable#id.[ncxx . . $ SliderTable#n.]=x;
196 datacxx . . $ SliderTable#data.[ncxx . . $ SliderTable#n.]=y;
197 slidercxx . . $ SliderTable#slider.[ncxx . . $ SliderTable#n.]=w;
198 ncxx . . $ SliderTable#n.++;
199 }
200 }
201 int operatorcxx . . $ SliderTable#`operator[]`(7864480464b09eea).[](wxWindowIDcxx . . $ wxWindowID# i){
202 for (int j=0; j<ncxx . . $ SliderTable#n.; j++) {
203 if (idcxx . . $ SliderTable#id.[j]==i) return j;
204 }
205 return -1;
206 }
207
208 void UpdateAllcxx . . $ SliderTable#UpdateAll(49f6e7a06ebc5aa8).(){
209 for (int i=0; i<ncxx . . $ SliderTable#n.; i++){
210 slidercxx . . $ SliderTable#slider.[i]->SetValuecxx . . $ wxSlider#SetValue(d4f767463ce0a6b3).(int( (*datacxx . . $ SliderTable#data.[i]*100.0) ) );
211 }
212 }
213
214 } sliderTablecxx . . $ sliderTable.;
215
216
217 class ButtonTablecxx . . $ ButtonTable# {
218 enumcxx . . $ ButtonTable#$anonymous_type_2# {MAXcxx . . $ ButtonTable#MAX.=100};
219 int ncxx . . $ ButtonTable#n.;
220 wxWindowIDcxx . . $ wxWindowID# idcxx . . $ ButtonTable#id.[MAXcxx . . $ ButtonTable#MAX.];
221 public:
222 bool* datacxx . . $ ButtonTable#data.[MAXcxx . . $ ButtonTable#MAX.];
223 wxCheckBoxcxx . . $ wxCheckBox#* chkcxx . . $ ButtonTable#chk.[MAXcxx . . $ ButtonTable#MAX.];
224 ButtonTablecxx . . $ ButtonTable#ButtonTable(49f6e7a06ebc5aa8).(){ncxx . . $ ButtonTable#n.=0;}
225
226 void Addcxx . . $ ButtonTable#Add(b7dc43ed88b6fdaa).(wxWindowIDcxx . . $ wxWindowID# x, bool* y, wxCheckBoxcxx . . $ wxCheckBox#* w){
227 if (ncxx . . $ ButtonTable#n.<MAXcxx . . $ ButtonTable#MAX.) {
228 idcxx . . $ ButtonTable#id.[ncxx . . $ ButtonTable#n.]=x;
229 datacxx . . $ ButtonTable#data.[ncxx . . $ ButtonTable#n.]=y;
230 chkcxx . . $ ButtonTable#chk.[ncxx . . $ ButtonTable#n.]=w;
231 ncxx . . $ ButtonTable#n.++;
232 }
233 }
234 int operatorcxx . . $ ButtonTable#`operator[]`(7864480464b09eea).[](wxWindowIDcxx . . $ wxWindowID# i){
235 for (int j=0; j<ncxx . . $ ButtonTable#n.; j++) {
236 if (idcxx . . $ ButtonTable#id.[j]==i) return j;
237 }
238 return -1;
239 }
240
241 void UpdateAllcxx . . $ ButtonTable#UpdateAll(49f6e7a06ebc5aa8).(){
242 for (int i=0; i<ncxx . . $ ButtonTable#n.; i++){
243 chkcxx . . $ ButtonTable#chk.[i]->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(*(datacxx . . $ ButtonTable#data.[i]));
244 }
245 }
246
247 } buttonTablecxx . . $ buttonTable.;
248
249
250 wxWindowcxx . . $ wxWindow# *MyTabcxx . . $ MyTab#::frame2redrawcxx . . $ MyTab#frame2redraw.;
251
252 bool doAutobalancecxx . . $ doAutobalance(83c267b20bac841a).(int lastChanged){
253 if (buttonAutobalancecxx . . $ buttonAutobalance.->GetValuecxx . . $ wxCheckBox#GetValue(50ce9a9e25b4a850).()) {
254 float* a[2];
255 //a[0]=&cgSettings.P_light_base;
256 a[0]=&cgSettingscxx . . $ cgSettings..P_lightingcxx . . $ CgUtil#P_lighting.;
257 a[1]=&cgSettingscxx . . $ cgSettings..P_texturecxx . . $ CgUtil#P_texture.;
258
259 wxSlidercxx . . $ wxSlider#* s[2];
260 //s[0]=sliderLightBase;
261 s[0]=sliderLightingcxx . . $ sliderLighting.;
262 s[1]=sliderAOcxx . . $ sliderAO.;
263
264 int fixed=-1;
265 switch (lastChanged){
266 //case ID_SetLightBase:fixed=0; break;
267 case ID_SetLightcxx . . $ ID_SetLight.:fixed=0; break;
268 case ID_SetAOcxx . . $ ID_SetAO.:fixed=1; break;
269 }
270 float sum=0, sump=0;
271 for (int i=0; i<2; i++) {
272 sum+=*(a[i]);
273 if (i==fixed) sump+=*(a[i]);
274 }
275
276 if (fixed==-1) {
277 if (sum!=0) for (int i=0; i<2; i++) {
278 *(a[i])/=sum;
279 s[i]->SetValuecxx . . $ wxSlider#SetValue(d4f767463ce0a6b3).( (int)((*a[i])*100.0) );
280 }
281
282 } else {
283 for (int i=0; i<2; i++) if (i!=fixed) {
284 *(a[i])=1-sump;
285 s[i]->SetValuecxx . . $ wxSlider#SetValue(d4f767463ce0a6b3).( (int)((*a[i])*100.0) );
286 }
287 }
288
289 }
290 return false;
291 }
292
293 void MyTabcxx . . $ MyTab#::OnSlidercxx . . $ MyTab#OnSlider(502051e588faaa38).(wxScrollEventcxx . . $ wxScrollEvent# & event){
294 wxWindowIDcxx . . $ wxWindowID# id=event.GetIdcxx . . $ wxEvent#GetId(455f465bc33b4cdf).();
295
296 if ( (id==ID_SetHalocxx . . $ ID_SetHalo.) || (id==ID_SetHaloStrcxx . . $ ID_SetHaloStr.) ) cgSettingscxx . . $ cgSettings..ResetHalocxx . . $ CgUtil#ResetHalo(49f6e7a06ebc5aa8).();
297
298 switch ( id ) {
299 case ID_SetLicoriceRadiuscxx . . $ ID_SetLicoriceRadius.: {
300
301 geoSettingscxx . . $ geoSettings..SetLicoRadiusPercentagecxx . . $ GeoSettings#SetLicoRadiusPercentage(d4f767463ce0a6b3).( sliderLicoricecxx . . $ sliderLicorice.->GetValuecxx . . $ wxSlider#GetValue(455f465bc33b4cdf).() );
302 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
303 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
304 break;
305 }
306 case ID_SetBallnstickRadiuscxx . . $ ID_SetBallnstickRadius.: {
307 geoSettingscxx . . $ geoSettings..SetStickRadiusPercentagecxx . . $ GeoSettings#SetStickRadiusPercentage(d4f767463ce0a6b3).( sliderBallnstickcxx . . $ sliderBallnstick.->GetValuecxx . . $ wxSlider#GetValue(455f465bc33b4cdf).() );
308 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
309 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
310 break;
311 }
312
313 case ID_SetColorBlendcxx . . $ ID_SetColorBlend.: {
314 SetColModecxx . . $ SetColMode(9364e6e7bff7660).( sliderColorBlendcxx . . $ sliderColorBlend.->GetValuecxx . . $ wxSlider#GetValue(455f465bc33b4cdf).()*0.01f* MAX_BLENDcxx . . $ MAX_BLEND. );
315 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
316 break;
317 }
318
319 default:
320 int i=sliderTablecxx . . $ sliderTable.[cxx . . $ SliderTable#`operator[]`(7864480464b09eea).id];
321
322
323 if (i!=-1) {
324 float k=(sliderTablecxx . . $ sliderTable..slidercxx . . $ SliderTable#slider.[i]->GetValuecxx . . $ wxSlider#GetValue(455f465bc33b4cdf).())/100.0;
325 *sliderTablecxx . . $ sliderTable..datacxx . . $ SliderTable#data.[i]=k;
326
327 //if ((id==ID_SetAO) && (k>0)) mol.ShowingAO=false;
328
329 if (id==ID_SetBgbrightnesscxx . . $ ID_SetBgbrightness.) {
330 setSceneBgbrightnesscxx . . $ MyTab#setSceneBgbrightness(9364e6e7bff7660).(bgbrightnesscxx . . $ bgbrightness.);
331 }
332
333 doAutobalancecxx . . $ doAutobalance(83c267b20bac841a).(id);
334
335 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
336 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
337 //geoSettings.Apply();
338 EnableCustomcxx . . $ MyTab#EnableCustom(49f6e7a06ebc5aa8).();
339 } //else wxWindow::OnScroll(event); // default actions.
340 }
341 }
342
343 void MyTabcxx . . $ MyTab#::OnRadioButtoncxx . . $ MyTab#OnRadioButton(f55e5a77ec619b42).(wxCommandEventcxx . . $ wxCommandEvent# & event){
344 int id=event.GetIdcxx . . $ wxEvent#GetId(455f465bc33b4cdf).();
345 switch ( id ) {
346
347 case ID_SetBallnstickcxx . . $ ID_SetBallnstick.:
348 geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode.=GeoSettingscxx . . $ GeoSettings#::BALL_N_STICKScxx . . $ GeoSettings#BALL_N_STICKS.;
349 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
350 break;
351
352 case ID_SetLicoricecxx . . $ ID_SetLicorice.:
353 geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode.=GeoSettingscxx . . $ GeoSettings#::LICORICEcxx . . $ GeoSettings#LICORICE.;
354 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
355 break;
356
357 case ID_SetSpacefillcxx . . $ ID_SetSpacefill.:
358 geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode.=GeoSettingscxx . . $ GeoSettings#::SPACE_FILLcxx . . $ GeoSettings#SPACE_FILL.;
359 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
360 break;
361
362 case ID_SetBallnstickSmoothcolorcxx . . $ ID_SetBallnstickSmoothcolor.:
363 geoSettingscxx . . $ geoSettings..use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color.=false;
364 geoSettingscxx . . $ geoSettings..stick_smooth_colorcxx . . $ GeoSettings#stick_smooth_color.=true;
365 geoSettingscxx . . $ geoSettings..ApplyColorcxx . . $ GeoSettings#ApplyColor(49f6e7a06ebc5aa8).();
366 break;
367
368 case ID_SetBallnstickBicolorcxx . . $ ID_SetBallnstickBicolor.:
369 geoSettingscxx . . $ geoSettings..use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color.=false;
370 geoSettingscxx . . $ geoSettings..stick_smooth_colorcxx . . $ GeoSettings#stick_smooth_color.=false;
371 geoSettingscxx . . $ geoSettings..ApplyColorcxx . . $ GeoSettings#ApplyColor(49f6e7a06ebc5aa8).();
372 break;
373
374 case ID_SetBallnstickConstantcolorcxx . . $ ID_SetBallnstickConstantcolor.:
375 geoSettingscxx . . $ geoSettings..use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color.=true;
376 geoSettingscxx . . $ geoSettings..ApplyColorcxx . . $ GeoSettings#ApplyColor(49f6e7a06ebc5aa8).();
377 break;
378
379 case ID_SetColorPerChaincxx . . $ ID_SetColorPerChain.:
380 SetColModecxx . . $ SetColMode(9364e6e7bff7660).(sliderColorBlendcxx . . $ sliderColorBlend.->GetValuecxx . . $ wxSlider#GetValue(455f465bc33b4cdf).()*0.01f* MAX_BLENDcxx . . $ MAX_BLEND. );
381 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
382 break;
383
384 case ID_SetColorPerAtomcxx . . $ ID_SetColorPerAtom.:
385 SetColModecxx . . $ SetColMode(9364e6e7bff7660).(1);
386 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
387 break;
388
389 }
390 EnableGeomcxx . . $ MyTab#EnableGeom(49f6e7a06ebc5aa8).();
391 }
392
393 void MyTabcxx . . $ MyTab#::OnCheckBoxcxx . . $ MyTab#OnCheckBox(f55e5a77ec619b42).(wxCommandEventcxx . . $ wxCommandEvent# & event){
394 int id=event.GetIdcxx . . $ wxEvent#GetId(455f465bc33b4cdf).();
395 int i=buttonTablecxx . . $ buttonTable.[cxx . . $ ButtonTable#`operator[]`(7864480464b09eea).id];
396
397
398 switch ( id ) {
399 case ID_SetAutobalancecxx . . $ ID_SetAutobalance.:
400 if (doAutobalancecxx . . $ doAutobalance(83c267b20bac841a).(ID_SetAutobalancecxx . . $ ID_SetAutobalance.)) {
401 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
402 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
403 }
404 break;
405 case ID_SetHetatmcxx . . $ ID_SetHetatm.:
406 geoSettingscxx . . $ geoSettings..Applycxx . . $ GeoSettings#Apply(49f6e7a06ebc5aa8).();
407 break;
408 case ID_SetDoubleShadowscxx . . $ ID_SetDoubleShadows.:
409 UpdateShadowmapcxx . . $ UpdateShadowmap(49f6e7a06ebc5aa8).();
410 break;
411 }
412
413 if (i!=-1) {
414 bool k=(buttonTablecxx . . $ buttonTable..chkcxx . . $ ButtonTable#chk.[i]->GetValuecxx . . $ wxCheckBox#GetValue(50ce9a9e25b4a850).());
415 *buttonTablecxx . . $ buttonTable..datacxx . . $ ButtonTable#data.[i]=k;
416
417 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
418 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
419 EnableCustomcxx . . $ MyTab#EnableCustom(49f6e7a06ebc5aa8).();
420 }
421
422 }
423
424 void MyTabcxx . . $ MyTab#::OnButtoncxx . . $ MyTab#OnButton(f55e5a77ec619b42).(wxCommandEventcxx . . $ wxCommandEvent# & event){
425 wxColourDialogcxx . . $ wxColourDialog#* dialog;
426 wxColourDatacxx . . $ wxColourData# datacxx . . $ wxColourData#wxColourData(49f6e7a06ebc5aa8).;
427
428 int id=event.GetIdcxx . . $ wxEvent#GetId(455f465bc33b4cdf).();
429
430 switch ( id ) {
431
432 case ID_ChangeColorSchemacxx . . $ ID_ChangeColorSchema.:
433 ChangeColorSchemacxx . . $ ChangeColorSchema(d4f767463ce0a6b3).();
434 ResetColModecxx . . $ ResetColMode(49f6e7a06ebc5aa8).();
435 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
436 break;
437
438 case ID_WebButtoncxx . . $ ID_WebButton.:
439 if (!wxLaunchDefaultBrowsercxx . . $ wxLaunchDefaultBrowser(e1ba1755b00e8671).(qutemolwebsitecxx . . $ qutemolwebsite.)) {
440 wxMessageBoxcxx . . $ wxMessageBox(ecb3b78af7b1e8ff).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Browser, browser,\nwhere art thou?"), _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(":-("), wxOKcxx . . $ `<external>/14689491191722134862/defs.h:1890:9`! | wxICON_EXCLAMATIONcxx . . $ `<external>/14689491191722134862/defs.h:1906:9`!, this);
441 }
442 break;
443
444 case ID_ChooseBallnstickConstantcolorcxx . . $ ID_ChooseBallnstickConstantcolor.:
445 data.SetChooseFullcxx . . $ wxColourData#SetChooseFull(b45ddcbc8423892c).(true);
446 data.SetCustomColourcxx . . $ wxColourData#SetCustomColour(fc01411e73d1fa17).(0, colBgcxx . . $ colBg. );
447 data.SetColourcxx . . $ wxColourData#SetColour(c6fe1e6e9a9d4367).(colStickscxx . . $ colSticks.);
448
449 dialog=new wxColourDialogcxx . . $ wxColourDialog#(this,&data);
450 dialog->SetTitlecxx . . $ wxTopLevelWindowGTK#SetTitle(eec3608749d303b4).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Choose stick color:"));
451 if (dialog->ShowModalcxx . . $ wxColourDialog#ShowModal(b126dc7c1de90089).() == wxID_OKcxx . . $ wxID_OK.)
452 {
453 colStickscxx . . $ colSticks. =cxx . . $ wxColour#`operator=`(bbf00ed33a71f598). dialog->GetColourDatacxx . . $ wxColourDialog#GetColourData(ac223601ef004689).().GetColourcxx . . $ wxColourData#GetColour(e86bdc3a26ec3e1f).();
454 geoSettingscxx . . $ geoSettings..stick_const_color_Rcxx . . $ GeoSettings#stick_const_color_R.=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(colStickscxx . . $ colSticks..Redcxx . . $ wxColour#Red(bd807b21b9713a30).());
455 geoSettingscxx . . $ geoSettings..stick_const_color_Gcxx . . $ GeoSettings#stick_const_color_G.=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(colStickscxx . . $ colSticks..Greencxx . . $ wxColour#Green(bd807b21b9713a30).());
456 geoSettingscxx . . $ geoSettings..stick_const_color_Bcxx . . $ GeoSettings#stick_const_color_B.=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(colStickscxx . . $ colSticks..Bluecxx . . $ wxColour#Blue(bd807b21b9713a30).());
457 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(colStickscxx . . $ colSticks.);
458 geoSettingscxx . . $ geoSettings..ApplyColorcxx . . $ GeoSettings#ApplyColor(49f6e7a06ebc5aa8).();
459 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
460 }
461 break;
462
463 case ID_ChooseHAcolorcxx . . $ ID_ChooseHAcolor.:
464 {
465 cgSettingscxx . . $ cgSettings..P_halo_colcxx . . $ CgUtil#P_halo_col.=1.0*(cgSettingscxx . . $ cgSettings..P_halo_colcxx . . $ CgUtil#P_halo_col.!=1);
466 int k=(int)(cgSettingscxx . . $ cgSettings..P_halo_colcxx . . $ CgUtil#P_halo_col.*255.0);
467 buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`!(k,k,k));
468
469 cgSettingscxx . . $ cgSettings..ResetHalocxx . . $ CgUtil#ResetHalo(49f6e7a06ebc5aa8).();
470 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
471 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
472 }
473 break;
474
475 case ID_ChooseBgcolorcxx . . $ ID_ChooseBgcolor.:
476
477 data.SetChooseFullcxx . . $ wxColourData#SetChooseFull(b45ddcbc8423892c).(true);
478 data.SetCustomColourcxx . . $ wxColourData#SetCustomColour(fc01411e73d1fa17).(0, colBgcxx . . $ colBg.);
479 data.SetColourcxx . . $ wxColourData#SetColour(c6fe1e6e9a9d4367).(colBgcxx . . $ colBg.);
480
481 dialog=new wxColourDialogcxx . . $ wxColourDialog#(this,&data);
482 dialog->SetTitlecxx . . $ wxTopLevelWindowGTK#SetTitle(eec3608749d303b4).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Choose background color:"));
483 if (dialog->ShowModalcxx . . $ wxColourDialog#ShowModal(b126dc7c1de90089).() == wxID_OKcxx . . $ wxID_OK.)
484 {
485 setSceneBgcolorcxx . . $ MyTab#setSceneBgcolor(3b354b1b4b9b0121).(dialogcxx . . $ wxColour#wxColour(c6fe1e6e9a9d4367).->GetColourDatacxx . . $ wxColourDialog#GetColourData(ac223601ef004689).().GetColourcxx . . $ wxColourData#GetColour(e86bdc3a26ec3e1f).());
486 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
487 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
488 }
489 break;
490
491 default:
492 int pid=id-ID_FirstPresetcxx . . $ ID_FirstPreset.;
493 if ( (pid>=0) && (pid<NPresetcxx . . $ NPreset.) ) {
•494 #ifndef _WIN32
495 wxStringcxx . . $ wxString# presetPath = _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(PKGDATADIRcxx . . $ `<built-in>:481:9`!"/presets/") +cxx . . $ operator+(b9d4cd82031bb246). wxStringcxx . . $ wxString#::FromAsciicxx . . $ wxString#FromAscii(1d94b37a0d0b5d9).(presetFilecxx . . $ presetFile.[pid]);
496 if (!cgSettingscxx . . $ cgSettings..Loadcxx . . $ CgUtil#Load(c5f7da30cbc0f4e9).( (const char *)presetPath.ToAsciicxx . . $ wxString#ToAscii(76dff3f4aa5b2917).() )) {
497 #else
498 if (!cgSettings.Load( presetFile[pid] )) {
499 #endif
500 wxMessageBoxcxx . . $ wxMessageBox(ecb3b78af7b1e8ff).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Unable to load presets!"), _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(":-("), wxOKcxx . . $ `<external>/14689491191722134862/defs.h:1890:9`! | wxICON_EXCLAMATIONcxx . . $ `<external>/14689491191722134862/defs.h:1906:9`!, this);
501 }
502 emphCurrentPresetcxx . . $ MyTab#emphCurrentPreset(d4f767463ce0a6b3).(pid);
503 //cgSettings.Set();
504
505 UpdateAllcxx . . $ MyTab#UpdateAll(49f6e7a06ebc5aa8).();
506
507 cgSettingscxx . . $ cgSettings..ResetHalocxx . . $ CgUtil#ResetHalo(49f6e7a06ebc5aa8).();
508 cgSettingscxx . . $ cgSettings..UpdateShaderscxx . . $ CgUtil#UpdateShaders(49f6e7a06ebc5aa8).();
509 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
510 }
511 break;
512
513
514 }
515 }
516
517 void MyTabcxx . . $ MyTab#::emphCurrentPresetcxx . . $ MyTab#emphCurrentPreset(d4f767463ce0a6b3).(int j){
518 /* for (int i=0; i<NPreset; i++) {
519 if (i!=j) preset[i]->SetForegroundColour(normalButtonBg);
520 else preset[i]->SetForegroundColour(currentButtonBg);
521 }
522 */
523 // preset[j]->Press();
524 }
525
526
527 void MyTabcxx . . $ MyTab#::setSceneBgcolorcxx . . $ MyTab#setSceneBgcolor(3b354b1b4b9b0121).(wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! c){
528 float r=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(c.Redcxx . . $ wxColour#Red(bd807b21b9713a30).()),
529 g=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(c.Greencxx . . $ wxColour#Green(bd807b21b9713a30).()),
530 b=b2fcxx . . $ b2f(ef46aeb7cc924ea7).(c.Bluecxx . . $ wxColour#Blue(bd807b21b9713a30).());
531 float max=(r<g)?g:r;
532 max=(max<b)?b:max;
533
534 bgbrightnesscxx . . $ bgbrightness. = max;
535
536 cgSettingscxx . . $ cgSettings..P_bg_color_Rcxx . . $ CgUtil#P_bg_color_R.=r;
537 cgSettingscxx . . $ cgSettings..P_bg_color_Gcxx . . $ CgUtil#P_bg_color_G.=g;
538 cgSettingscxx . . $ cgSettings..P_bg_color_Bcxx . . $ CgUtil#P_bg_color_B.=b;
539
540 if (bgbrightnesscxx . . $ bgbrightness.==0) colBgcxx . . $ colBg..Setcxx . . $ wxColourBase#Set(bfb537490240b335).(255,255,255); else
541 colBgcxx . . $ colBg..Setcxx . . $ wxColourBase#Set(bfb537490240b335).( Bytecxx . . $ Byte#(r/max*255.0), Bytecxx . . $ Byte#(g/max*255.0), Bytecxx . . $ Byte#(b/max*255.0));
542
543 buttonChooseBgcolorcxx . . $ buttonChooseBgcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(c);
544 sliderSetBgbrightnesscxx . . $ sliderSetBgbrightness.->SetValuecxx . . $ wxSlider#SetValue(d4f767463ce0a6b3).(int(bgbrightnesscxx . . $ bgbrightness.*100));
545 }
546
547 wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! colcxx . . $ col(23c3e7fe2dc4e374).(float r, float g, float b){
548 wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! ccxx . . $ wxColour#wxColour(bfb537490240b335).( Bytecxx . . $ Byte#(r*255.0), Bytecxx . . $ Byte#(g*255.0), Bytecxx . . $ Byte#(b*255.0));
549 return ccxx . . $ wxColour#wxColour(c6fe1e6e9a9d4367).;
550 }
551
552 wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! colcxx . . $ col(49e8a50b149a0843).(float r){
553 return colcxx . . $ col(23c3e7fe2dc4e374).(r,r,r);
554 }
555
556 void MyTabcxx . . $ MyTab#::setSceneBgbrightnesscxx . . $ MyTab#setSceneBgbrightness(9364e6e7bff7660).(float br){
557
558 bgbrightnesscxx . . $ bgbrightness.=br;
559
560 float r=colBgcxx . . $ colBg..Redcxx . . $ wxColour#Red(bd807b21b9713a30).()*bgbrightnesscxx . . $ bgbrightness./255.0,
561 g=colBgcxx . . $ colBg..Greencxx . . $ wxColour#Green(bd807b21b9713a30).()*bgbrightnesscxx . . $ bgbrightness./255.0,
562 b=colBgcxx . . $ colBg..Bluecxx . . $ wxColour#Blue(bd807b21b9713a30).()*bgbrightnesscxx . . $ bgbrightness./255.0;
563
564 //if (r+b+g<0.01) r=g=b=bgbrightness/255.0;
565
566 cgSettingscxx . . $ cgSettings..P_bg_color_Rcxx . . $ CgUtil#P_bg_color_R.=r;
567 cgSettingscxx . . $ cgSettings..P_bg_color_Gcxx . . $ CgUtil#P_bg_color_G.=g;
568 cgSettingscxx . . $ cgSettings..P_bg_color_Bcxx . . $ CgUtil#P_bg_color_B.=b;
569
570 buttonChooseBgcolorcxx . . $ buttonChooseBgcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).( colcxx . . $ col(23c3e7fe2dc4e374).(r,g,b) );
571 }
572
573 void MyTabcxx . . $ MyTab#::EnableCustomcxx . . $ MyTab#EnableCustom(49f6e7a06ebc5aa8).(){
574
575 bool b=(cgSettingscxx . . $ cgSettings..P_phongcxx . . $ CgUtil#P_phong.>0);
576 sliderShineSizecxx . . $ sliderShineSize.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
577 textShineSizecxx . . $ textShineSize.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
578
579 b=(cgSettingscxx . . $ cgSettings..P_border_outsidecxx . . $ CgUtil#P_border_outside.>0);
580 sliderAwarencxx . . $ sliderAwaren.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
581 textAwarencxx . . $ textAwaren.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
582
583 b=(cgSettingscxx . . $ cgSettings..P_lightingcxx . . $ CgUtil#P_lighting.>0)||(cgSettingscxx . . $ cgSettings..P_phongcxx . . $ CgUtil#P_phong.>0);
584 textShadowStrcxx . . $ textShadowStr.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
585 sliderShadowStrcxx . . $ sliderShadowStr.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
586
587 b=(cgSettingscxx . . $ cgSettings..P_lightingcxx . . $ CgUtil#P_lighting.>0);
588 textLightBasecxx . . $ textLightBase.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
589 sliderLightBasecxx . . $ sliderLightBase.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
590
591 b=( cgSettingscxx . . $ cgSettings..can_use_doubleshadowcxx . . $ CgUtil#can_use_doubleshadow(c9857a73d68e59ba).() );
592
593 if (!b) buttonDoubleShadowscxx . . $ buttonDoubleShadows.->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(false);
594 else buttonDoubleShadowscxx . . $ buttonDoubleShadows.->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(cgSettingscxx . . $ cgSettings..P_double_shadowscxx . . $ CgUtil#P_double_shadows.);
595
596 buttonDoubleShadowscxx . . $ buttonDoubleShadows.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
597 textDoubleShadowscxx . . $ textDoubleShadows.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
598
599 b = cgSettingscxx . . $ cgSettings..P_halo_sizecxx . . $ CgUtil#P_halo_size.>0;
600 sliderHaloStrcxx . . $ sliderHaloStr.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
601 sliderHaloAwarecxx . . $ sliderHaloAware.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
602 textHaloStrcxx . . $ textHaloStr.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
603 textHaloAwarecxx . . $ textHaloAware.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(b);
604 textHaloColorcxx . . $ textHaloColor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(cgSettingscxx . . $ cgSettings..UseHalocxx . . $ CgUtil#UseHalo(c9857a73d68e59ba).());
605 buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(cgSettingscxx . . $ cgSettings..UseHalocxx . . $ CgUtil#UseHalo(c9857a73d68e59ba).());
606
607 }
608
609
610 void MyTabcxx . . $ MyTab#::EnableGeomcxx . . $ MyTab#EnableGeom(49f6e7a06ebc5aa8).(){
611
612
613
614
615 bool lico=false, bns=false, sf=false;
616 if (geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode. == GeoSettingscxx . . $ GeoSettings#::SPACE_FILLcxx . . $ GeoSettings#SPACE_FILL.) sf=true;
617 if (geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode. == GeoSettingscxx . . $ GeoSettings#::LICORICEcxx . . $ GeoSettings#LICORICE.) lico=true;
618 if (geoSettingscxx . . $ geoSettings..modecxx . . $ GeoSettings#mode. == GeoSettingscxx . . $ GeoSettings#::BALL_N_STICKScxx . . $ GeoSettings#BALL_N_STICKS.) bns=true;
619
620 buttonSetLicoricecxx . . $ buttonSetLicorice.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(lico);
621 buttonSetSpacefillcxx . . $ buttonSetSpacefill.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(sf);
622 buttonSetBallnstickcxx . . $ buttonSetBallnstick.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(bns);
623 sliderBallnstickcxx . . $ sliderBallnstick.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
624 textBallnstickcxx . . $ textBallnstick.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
625 textBallnstick2cxx . . $ textBallnstick2.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
626 sliderLicoricecxx . . $ sliderLicorice.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(lico);
627 textLicoricecxx . . $ textLicorice.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(lico);
628
629 float c=GetColModecxx . . $ GetColMode(9b8c9e39889c762c).();
630
631 //sliderColorBlend->SetValue(int(c*100*1.0f));
632 buttonSetColorPerChaincxx . . $ buttonSetColorPerChain.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(c!=1);
633 buttonChangeColorSchemacxx . . $ buttonChangeColorSchema.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(c!=1);
634 sliderColorBlendcxx . . $ sliderColorBlend.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(c!=1);
635 textColorBlendcxx . . $ textColorBlend.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(c!=1);
636 buttonSetColorPerAtomcxx . . $ buttonSetColorPerAtom.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(c==1);
637
638 buttonSetBallnstickBicolorcxx . . $ buttonSetBallnstickBicolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
639 buttonSetBallnstickConstantcolorcxx . . $ buttonSetBallnstickConstantcolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
640 buttonSetBallnstickSmoothcolorcxx . . $ buttonSetBallnstickSmoothcolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(bns);
641
642 //buttonChooseBallnstickConstantcolor->Enable(bns && constant);
643
644
645 if (bns) {
646 bool bi, constant, smooth;
647 constant = (geoSettingscxx . . $ geoSettings..use_stick_const_colorcxx . . $ GeoSettings#use_stick_const_color.);
648 smooth = (!constant) & (geoSettingscxx . . $ geoSettings..stick_smooth_colorcxx . . $ GeoSettings#stick_smooth_color.);
649 bi = (!smooth) && (!constant);
650
651 buttonSetBallnstickBicolorcxx . . $ buttonSetBallnstickBicolor.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(bi);
652 buttonSetBallnstickConstantcolorcxx . . $ buttonSetBallnstickConstantcolor.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(constant);
653 buttonSetBallnstickSmoothcolorcxx . . $ buttonSetBallnstickSmoothcolor.->SetValuecxx . . $ wxRadioButton#SetValue(b45ddcbc8423892c).(smooth);
654
655 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(constant);
656 if (constant) {
657 colStickscxx . . $ colSticks..Setcxx . . $ wxColourBase#Set(bfb537490240b335).(
658 f2bcxx . . $ f2b(ed6d3b1f37918c01).(geoSettingscxx . . $ geoSettings..stick_const_color_Rcxx . . $ GeoSettings#stick_const_color_R.),
659 f2bcxx . . $ f2b(ed6d3b1f37918c01).(geoSettingscxx . . $ geoSettings..stick_const_color_Gcxx . . $ GeoSettings#stick_const_color_G.),
660 f2bcxx . . $ f2b(ed6d3b1f37918c01).(geoSettingscxx . . $ geoSettings..stick_const_color_Bcxx . . $ GeoSettings#stick_const_color_B.)
661 );
662 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(colStickscxx . . $ colSticks.);
663 } else
664 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(colDisabledcxx . . $ colDisabled.);
665 } else {
666 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(colDisabledcxx . . $ colDisabled.);
667 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(false);
668 }
669
670 /*bool b=
671 sliderColorBlend()->GetValue()*0.01f *0.1f);*/
672
673 int h=GetCurrentHetatmcxx . . $ GetCurrentHetatm(b126dc7c1de90089).();
674 int a=GetCurrentAtmcxx . . $ GetCurrentAtm(b126dc7c1de90089).();
675 bool e=true, set=geoSettingscxx . . $ geoSettings..showHetatmcxx . . $ GeoSettings#showHetatm.;
676 if ((h==0) && (a!=0)) {e=false;set=false;}
677 if ((h!=0) && (a==0)) {e=false;set=true;}
678 buttonSetHetatmcxx . . $ buttonSetHetatm.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(e);
679 textSetHetatmcxx . . $ textSetHetatm.->Enablecxx . . $ wxWindowBase#Enable(efaadfb7dc14930a).(e);
680 buttonSetHetatmcxx . . $ buttonSetHetatm.->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(set);
681
682 SceneChangedcxx . . $ MyTab#SceneChanged(49f6e7a06ebc5aa8).();
683
684 }
685
686 int MyTabcxx . . $ MyTab#::Countcxx . . $ MyTab#Count(b126dc7c1de90089).(){
687 return 4;
688 }
689
690
691
692 wxStringcxx . . $ wxString# MyTabcxx . . $ MyTab#::Titlecxx . . $ MyTab#Title(5da42c17d995b65f).(int i)
693 {
694 switch (i) {
695 case 0: return wxStringcxx . . $ wxString#wxString(1751db0bab16ee59).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Presets")); break;
696 case 1: return wxStringcxx . . $ wxString#wxString(1751db0bab16ee59).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Geometry")); break;
697 case 2: return wxStringcxx . . $ wxString#wxString(1751db0bab16ee59).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Customize")); break;
698 case 3: return wxStringcxx . . $ wxString#wxString(1751db0bab16ee59).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Info")); break;
699 }
700 return wxStringcxx . . $ wxString#wxString(1751db0bab16ee59).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(""));
701 }
702
703 BEGIN_EVENT_TABLEcxx . . $ `<external>/9123237030240659982/event.h:4797:9`!(MyTab, wxPanel)
704 EVT_RADIOBUTTONcxx . . $ `<external>/9123237030240659982/event.h:4709:9`!(-1, MyTab::OnRadioButton)
705 /*EVT_RADIOBUTTON(ID_SetLicorice, MyTab::OnSetLicorice)
706 EVT_RADIOBUTTON(ID_SetSpacefill, MyTab::OnSetSpacefill)
707
708 EVT_RADIOBUTTON(ID_SetBallnstickSmoothcolor, MyTab::OnSetBallnstickSmoothcolor)
709 EVT_RADIOBUTTON(ID_SetBallnstickBicolor, MyTab::OnSetBallnstickBicolor)
710 EVT_RADIOBUTTON(ID_SetBallnstickConstantcolor, MyTab::OnSetBallnstickConstantcolor)*/
711
712 EVT_BUTTONcxx . . $ `<external>/9123237030240659982/event.h:4706:9`!(-1, MyTab::OnButton)
713 EVT_COMMAND_SCROLL_THUMBTRACKcxx . . $ `<external>/9123237030240659982/event.h:4676:9`!(-1, MyTab::OnSlider)
714 EVT_CHECKBOXcxx . . $ `<external>/9123237030240659982/event.h:4700:9`!(-1, MyTab::OnCheckBox)
715 //EVT_BUTTON(ID_ChooseBallnstickConstantcolor, MyTab::OnChooseBallnstickConstantcolor)
716 //EVT_COMMAND_SCROLL(ID_SetLicoriceRadius, MyTab::OnSetLicoriceRadius)
717 //EVT_COMMAND_SCROLL(ID_SetBallnstickRadius, MyTab::OnSetBallnstickRadius)
718 END_EVENT_TABLEcxx . . $ `<external>/9123237030240659982/event.h:4804:9`!()
719
720 wxBitmapcxx . . $ wxBitmap# *LoadPngImagecxx . . $ LoadPngImage(f28252153a20ddf5).(wxStringcxx . . $ wxString# st);
721
722 wxSlidercxx . . $ wxSlider#* tmpSlidercxx . . $ tmpSlider.;
723 wxCheckBoxcxx . . $ wxCheckBox#* tmpChkcxx . . $ tmpChk.;
724 wxStaticTextcxx . . $ wxStaticText#* tmpStaticTextcxx . . $ tmpStaticText.;
•725
726 static int SLIDERSIZEcxx . . $ SLIDERSIZE.=80;
727
728 wxSizercxx . . $ wxSizer# *newLabelledSlidercxx . . $ newLabelledSlider(19e0fd902f638ab3).( wxWindowcxx . . $ wxWindow#* parent, wxWindowIDcxx . . $ wxWindowID# idSlider,
729 const wxStringcxx . . $ wxString#& labelString,
730 int pos ,
731 wxSlidercxx . . $ wxSlider#* &slider=tmpSlidercxx . . $ tmpSlider.,
732 wxStaticTextcxx . . $ wxStaticText#* &label = tmpStaticTextcxx . . $ tmpStaticText.) {
733 //
734 wxSizercxx . . $ wxSizer# *res = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
735 label=new wxStaticTextcxx . . $ wxStaticText#(parent, wxID_ANYcxx . . $ wxID_ANY., labelString);
•736 slider=new wxSlidercxx . . $ wxSlider#(parent,idSlider, pos, 0, 100, wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(SLIDERSIZEcxx . . $ SLIDERSIZE.,wxDefaultSizecxx . . $ wxDefaultSize..ycxx . . $ wxSize#y.), wxNO_FULL_REPAINT_ON_RESIZEcxx . . $ `<external>/14689491191722134862/defs.h:1700:9`! );
737 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label, 0);
738 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(slider, 1, wxEXPANDcxx . . $ wxEXPAND.);
739 return res;
740 }
741
742 wxSizercxx . . $ wxSizer# *newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).( wxWindowcxx . . $ wxWindow#* parent, wxWindowIDcxx . . $ wxWindowID# idSlider,
743 const wxStringcxx . . $ wxString#& labelString,
744 float *pos ,
745 wxSlidercxx . . $ wxSlider#* &slider=tmpSlidercxx . . $ tmpSlider.,
746 wxStaticTextcxx . . $ wxStaticText#* &label=tmpStaticTextcxx . . $ tmpStaticText.) {
747 //
748 wxSizercxx . . $ wxSizer# *res = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
749 label=new wxStaticTextcxx . . $ wxStaticText#(parent, wxID_ANYcxx . . $ wxID_ANY., labelString);
750 slider=new wxSlidercxx . . $ wxSlider#(parent,idSlider,
751 int((*pos)*100.0f), 0, 100, wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(SLIDERSIZEcxx . . $ SLIDERSIZE.,wxDefaultSizecxx . . $ wxDefaultSize..ycxx . . $ wxSize#y.), wxNO_FULL_REPAINT_ON_RESIZEcxx . . $ `<external>/14689491191722134862/defs.h:1700:9`!
752 );
753 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label, 0);
754 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(slider, 0);
755
756 sliderTablecxx . . $ sliderTable..Addcxx . . $ SliderTable#Add(ea389122718a0c81).(idSlider, pos, slider);
757 return res;
758 }
759
760 #define AUTO_TEXT_ON_RIGHTcxx . . $ `src/MyTab.cpp:760:9`! 1
761
762 wxSizercxx . . $ wxSizer# *newAutoCheckBoxcxx . . $ newAutoCheckBox(4e1e1192d8f53784).(wxWindowcxx . . $ wxWindow#* parent, wxWindowIDcxx . . $ wxWindowID# idChk,
763 const wxStringcxx . . $ wxString#& labelString,
764 bool *value,
765 wxCheckBoxcxx . . $ wxCheckBox#* &chk=tmpChkcxx . . $ tmpChk.,
766 wxStaticTextcxx . . $ wxStaticText#* &label=tmpStaticTextcxx . . $ tmpStaticText.,
767 int flags=0) {
768 //
769 wxSizercxx . . $ wxSizer# *res = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
770 label=new wxStaticTextcxx . . $ wxStaticText#(parent, wxID_ANYcxx . . $ wxID_ANY., labelString);
771 chk=new wxCheckBoxcxx . . $ wxCheckBox#(parent,idChk, _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(""));
772 chk->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(*value);
773
774 if (flags&AUTO_TEXT_ON_RIGHTcxx . . $ `src/MyTab.cpp:760:9`!) {
775 //res->Add(SLIDERSIZE - 10 - chk->GetSize().x ,0,1);
776 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(chk, 0, wxBOTTOMcxx . . $ wxBOTTOM. | wxTOPcxx . . $ wxTOP., 3);
777 res->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(10 ,0,0);
778 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label, 0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.);
779 }
780 else {
781 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label, 0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.);
782 res->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(10 ,0,0);
783 res->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(chk, 0, wxBOTTOMcxx . . $ wxBOTTOM. | wxTOPcxx . . $ wxTOP., 3);
784 res->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SLIDERSIZEcxx . . $ SLIDERSIZE. - 10 - chk->GetSizecxx . . $ wxWindowBase#GetSize(1760195b8cec6c4e).().xcxx . . $ wxSize#x. ,0,1);
785 }
786
787 buttonTablecxx . . $ buttonTable..Addcxx . . $ ButtonTable#Add(b7dc43ed88b6fdaa).(idChk, value, chk);
788 return res;
789 }
790
791 static wxSizercxx . . $ wxSizer# *globalSizerHcxx . . $ globalSizerH.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
792 static wxSizercxx . . $ wxSizer# *globalSizerVcxx . . $ globalSizerV.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
793 static wxBoxSizercxx . . $ wxBoxSizer# *sizerRcxx . . $ sizerR., *sizerLcxx . . $ sizerL.;
794
795 // returns an emphatized version of a given color
796 wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! emphColorcxx . . $ emphColor(20d467e083b86155).(wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`! c){
797 unsigned char rgb[3];
798 rgb[0]=c.Redcxx . . $ wxColour#Red(bd807b21b9713a30).();
799 rgb[1]=c.Greencxx . . $ wxColour#Green(bd807b21b9713a30).();
800 rgb[2]=c.Bluecxx . . $ wxColour#Blue(bd807b21b9713a30).();
801 for (int i=0; i<3; i++)
802 {
803 int K=100;
804 if (rgb[i]>255-K) rgb[i]-=K;
805 else if (rgb[i]>128) rgb[i]+=K;
806 else if (rgb[i]>K) rgb[i]-=K;
807 else rgb[i]+=K;
808 }
809 return wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`!(rgb[0],rgb[1],rgb[2]);
810 }
811
812 int _THcxx . . $ _TH.;
813 //wxSizer *obj1, *obj2;
814
815 // remove newlines from a strings
816 wxStringcxx . . $ wxString# noNewLinecxx . . $ noNewLine(378c0215d0606871).(wxStringcxx . . $ wxString# x){
817 static wxStringcxx . . $ wxString# rescxx . . $ wxString#wxString(49f6e7a06ebc5aa8).;
818 res.Clearcxx . . $ wxString#Clear(49f6e7a06ebc5aa8).();
•819
820 for (int i=0; i< (int)x.Lengthcxx . . $ wxString#Length(fe4d2d262d4164a8).(); i++){
821 if ((x[cxx . . $ wxString#`operator[]`(687781b1941a94f).i]==cxx . . $ wxUniCharRef#`operator==`(aec1b1cad4a17585).'-')&&(x[cxx . . $ wxString#`operator[]`(687781b1941a94f).i+1]==cxx . . $ wxUniCharRef#`operator==`(aec1b1cad4a17585).'\n')) {
822 i++; i++;
823 }
824 if (x[cxx . . $ wxString#`operator[]`(687781b1941a94f).i] !=cxx . . $ wxUniCharRef#`operator!=`(aec1b1cad4a17585). '\n') {
825 res.Appendcxx . . $ wxString#Append(a777c35b46045f30).(x[cxx . . $ wxString#`operator[]`(687781b1941a94f).i]);
826 } else {
827 res.Appendcxx . . $ wxString#Append(d1e7dfffc6c5f63a).(' ');
828 }
829 }
830 return rescxx . . $ wxString#wxString(eec3608749d303b4).;
831 }
832
833 MyTabcxx . . $ MyTab#::MyTabcxx . . $ MyTab#MyTab(1767269f05448509).(wxWindowcxx . . $ wxWindow# *parent , int n): wxPanelcxx . . $ wxPanel#( parent, wxID_ANYcxx . . $ wxID_ANY., wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize.,
834 /*wxNO_FULL_REPAINT_ON_RESIZE |*/ wxCLIP_CHILDRENcxx . . $ `<external>/14689491191722134862/defs.h:1659:9`! | wxTAB_TRAVERSALcxx . . $ `<external>/14689491191722134862/defs.h:1669:9`!)
835 {
836
•837 //int i;
838
839 bool thinButtons=false;
•840 #ifndef _WIN32
841 thinButtons=true; // unsupported newlines in wxButtons under MAC! :(
842 #endif
843
844 if (n==0) { // presets tab (visual presets)
845 wxSizercxx . . $ wxSizer# *sizer,*subSizer=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
846 if (thinButtons) sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
847 else sizer = new wxGridSizercxx . . $ wxGridSizer#(5,3,15,15);
848
849 wxSizecxx . . $ wxSize# butSizecxx . . $ wxSize#wxSize(49f6e7a06ebc5aa8).;
850 //if (thinButtons) butSize= wxSize(90,-1); // -1 = use default button height
851 if (thinButtons) butSize=cxx . . $ wxSize#`operator=`(8b68a277f0bb15f3). wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(90,24); // -1 = use default button height
852 else butSize=cxx . . $ wxSize#`operator=`(8b68a277f0bb15f3). wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(70,50);
853
854 for (int i=0; i<NPresetcxx . . $ NPreset.; i++) {
•855 printf ("presetname: %s\n", presetNamecxx . . $ presetName.[i]);
856 /*
857 preset[i]=new wxButton(this, ID_FirstPreset + i,
•858 thinButtons? noNewLine(wxString::FromAscii(presetName[i])):wxString::FromAscii(presetName[i]),
859 wxDefaultPosition); //, butSize );
•860 */
861 presetcxx . . $ preset.[i] = new wxButtoncxx . . $ wxButton#(this,
862 ID_FirstPresetcxx . . $ ID_FirstPreset. + i,
863 noNewLinecxx . . $ noNewLine(378c0215d0606871).(wxStringcxx . . $ wxString#::FromAsciicxx . . $ wxString#FromAscii(1d94b37a0d0b5d9).(presetNamecxx . . $ presetName.[i])),
864 wxDefaultPositioncxx . . $ wxDefaultPosition.);
865
866 presetcxx . . $ preset.[i]->SetMinSizecxx . . $ wxWindowBase#SetMinSize(6492bae9731bf298).(butSize);
•867 //if (presetName[i]==wxEmptyString) preset[i]->Show(false);
868 if (!presetNamecxx . . $ presetName.[i]) presetcxx . . $ preset.[i]->Showcxx . . $ wxWindow#Show(efaadfb7dc14930a).(false);
869 if (thinButtons) {
870 if (!subSizer) subSizer=new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
871 subSizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( presetcxx . . $ preset.[i], 1, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.|wxEXPANDcxx . . $ wxEXPAND.|wxALLcxx . . $ wxALL.,4 );
872 if (presetEndOfLinecxx . . $ presetEndOfLine.[i]) {
873 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).( subSizer, 1, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.|wxEXPANDcxx . . $ wxEXPAND.);
874 subSizer=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
875 }
876 } else {
877 sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( presetcxx . . $ preset.[i], 1, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
878 }
879 }
880
881 normalButtonBgcxx . . $ normalButtonBg.=cxx . . $ wxColour#`operator=`(bbf00ed33a71f598).presetcxx . . $ preset.[0]->GetForegroundColourcxx . . $ wxWindowBase#GetForegroundColour(6bb92bbeabf2e6a2).();
882 currentButtonBgcxx . . $ currentButtonBg.=cxx . . $ wxColour#`operator=`(bbf00ed33a71f598).emphColorcxx . . $ emphColor(20d467e083b86155).(normalButtonBgcxx . . $ wxColour#wxColour(c6fe1e6e9a9d4367).);
883
884 wxSizercxx . . $ wxSizer# *topLvlSizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
885 // topLvlSizer->Add(10,10,0);
886 topLvlSizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
887 topLvlSizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.); //|wxEXPAND);
888 topLvlSizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
889 SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(topLvlSizer);
890 }
891 if (n==1) { // geometry tab (ball and stick, stick radius, etc)
892
893
894
895 wxStaticBoxcxx . . $ wxStaticBox# *box1 = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Space-Fill") );
896 wxSizercxx . . $ wxSizer# *sizer1 = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(box1, wxHORIZONTALcxx . . $ wxHORIZONTAL.);
897
898 buttonSetSpacefillcxx . . $ buttonSetSpacefill. = new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).(this, ID_SetSpacefillcxx . . $ ID_SetSpacefill., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(""), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
899
900 wxStaticBitmapcxx . . $ wxStaticBitmap# *bitmap1 = new wxStaticBitmapcxx . . $ wxStaticBitmap#(this, wxID_ANYcxx . . $ wxID_ANY., *cxx . . $ wxBitmapBundle#wxBitmapBundle(98862698a0401ee5).LoadPngImagecxx . . $ LoadPngImage(f28252153a20ddf5).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("geo1")), wxDefaultPositioncxx . . $ wxDefaultPosition. );
901
902 sizer1->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(bitmap1);
903 sizer1->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(5, 5, 1, wxALLcxx . . $ wxALL., 5); // spacer
904
905 wxSizercxx . . $ wxSizer# *sizerMode1 = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
906 sizerMode1->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonSetSpacefillcxx . . $ buttonSetSpacefill., 0, wxRIGHTcxx . . $ wxRIGHT.|wxALIGN_CENTERcxx . . $ wxALIGN_CENTER., 4);
907 sizerMode1->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer1, 1);
908
909
910
911 wxStaticBoxcxx . . $ wxStaticBox# *box2 = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Balls'n'Sticks") );
912 wxSizercxx . . $ wxSizer# *sizer2 = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(box2, wxHORIZONTALcxx . . $ wxHORIZONTAL.);
913 //sizer2->Enable(false);
914
915 buttonSetBallnstickcxx . . $ buttonSetBallnstick.= new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).(this, ID_SetBallnstickcxx . . $ ID_SetBallnstick., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(""), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
916 wxStaticBitmapcxx . . $ wxStaticBitmap# *bitmap2 = new wxStaticBitmapcxx . . $ wxStaticBitmap#(this, wxID_ANYcxx . . $ wxID_ANY., *cxx . . $ wxBitmapBundle#wxBitmapBundle(98862698a0401ee5).LoadPngImagecxx . . $ LoadPngImage(f28252153a20ddf5).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("geo2")), wxDefaultPositioncxx . . $ wxDefaultPosition. );
917
918 wxSizercxx . . $ wxSizer# *sizer2r = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
919 sizer2r->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).( newLabelledSlidercxx . . $ newLabelledSlider(19e0fd902f638ab3).(
920 this, ID_SetBallnstickRadiuscxx . . $ ID_SetBallnstickRadius.,
921 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Stick size:"),
922 geoSettingscxx . . $ geoSettings..GetStickRadiusPercentagecxx . . $ GeoSettings#GetStickRadiusPercentage(b126dc7c1de90089).(),
923 sliderBallnstickcxx . . $ sliderBallnstick.,
924 textBallnstickcxx . . $ textBallnstick.
925 ) );
926
927 {
928 wxSizercxx . . $ wxSizer# *sizer2rr = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
929 textBallnstick2cxx . . $ textBallnstick2.=new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Stick color:"));
930 sizer2rr->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(textBallnstick2cxx . . $ textBallnstick2., 0);
931 wxSizercxx . . $ wxSizer# *sizerColbox = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
932 buttonSetBallnstickBicolorcxx . . $ buttonSetBallnstickBicolor. = new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).
933 (this, ID_SetBallnstickBicolorcxx . . $ ID_SetBallnstickBicolor., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Split"), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
934 sizerColbox->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonSetBallnstickBicolorcxx . . $ buttonSetBallnstickBicolor., 1, wxALLcxx . . $ wxALL., 1);
935 buttonSetBallnstickSmoothcolorcxx . . $ buttonSetBallnstickSmoothcolor. = new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).
936 (this, ID_SetBallnstickSmoothcolorcxx . . $ ID_SetBallnstickSmoothcolor., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Blended"), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
937 sizerColbox->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonSetBallnstickSmoothcolorcxx . . $ buttonSetBallnstickSmoothcolor., 1, wxALLcxx . . $ wxALL., 1);
938 buttonSetBallnstickConstantcolorcxx . . $ buttonSetBallnstickConstantcolor. = new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).
939 (this, ID_SetBallnstickConstantcolorcxx . . $ ID_SetBallnstickConstantcolor., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Constant:"), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
940 sizerColbox->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonSetBallnstickConstantcolorcxx . . $ buttonSetBallnstickConstantcolor., 1, wxALLcxx . . $ wxALL., 1);
941
942 buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor. = new wxButtoncxx . . $ wxButton#(this, ID_ChooseBallnstickConstantcolorcxx . . $ ID_ChooseBallnstickConstantcolor.,
943 wxEmptyStringcxx . . $ wxString#wxString(1751db0bab16ee59)., wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(16,16),wxNO_BORDERcxx . . $ `<external>/14689491191722134862/defs.h:1648:9`!);
944 colDisabledcxx . . $ colDisabled. =cxx . . $ wxColour#`operator=`(bbf00ed33a71f598). this->GetBackgroundColourcxx . . $ wxWindowBase#GetBackgroundColour(6bb92bbeabf2e6a2).();
945 // wxColor col(255,0,0);
946 // buttonChooseBallnstickConstantcolor ->SetBackgroundColour(col);
947 /*
948 :-(
949 buttonChooseBallnstickConstantcolor = new wxColourPickerCtrl(this, ID_ChooseBallnstickConstantcolor);
950 */
951
952 sizer2rr->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerColbox, 1);
953 sizer2rr->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonChooseBallnstickConstantcolorcxx . . $ buttonChooseBallnstickConstantcolor., 0, wxALLcxx . . $ wxALL.|wxALIGN_BOTTOMcxx . . $ wxALIGN_BOTTOM., 1);
954 //sizer2r->Add(5, 5, 0, wxALL, 5); // spacer
955 sizer2r->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer2rr, 0);
956 }
957
958 sizer2->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(bitmap2);
959 sizer2->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(5, 5, 0, wxALLcxx . . $ wxALL., 5); // spacer
960 sizer2->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer2r, 1);
961
962
963 wxSizercxx . . $ wxSizer# *sizerMode2 = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
964 sizerMode2->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonSetBallnstickcxx . . $ buttonSetBallnstick., 0, wxRIGHTcxx . . $ wxRIGHT.|wxALIGN_CENTERcxx . . $ wxALIGN_CENTER., 4);
965 sizerMode2->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer2, 1);
966
967
968 wxStaticBoxcxx . . $ wxStaticBox# *box3 = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Licorice") );
969 wxSizercxx . . $ wxSizer# *sizer3 = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(box3, wxHORIZONTALcxx . . $ wxHORIZONTAL.);
970
971 buttonSetLicoricecxx . . $ buttonSetLicorice. = new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).(this, ID_SetLicoricecxx . . $ ID_SetLicorice., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!(""), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
972 wxStaticBitmapcxx . . $ wxStaticBitmap# *bitmap3 = new wxStaticBitmapcxx . . $ wxStaticBitmap#(this, wxID_ANYcxx . . $ wxID_ANY., *cxx . . $ wxBitmapBundle#wxBitmapBundle(98862698a0401ee5).LoadPngImagecxx . . $ LoadPngImage(f28252153a20ddf5).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("geo3")), wxDefaultPositioncxx . . $ wxDefaultPosition. );
973
974 wxSizercxx . . $ wxSizer# *sizer3r = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
975 /*wxSizer *sizer3rr = new wxBoxSizer(wxHORIZONTAL);
976 textLicorice=new wxStaticText(this, wxID_ANY, _T("Thickness:"));
977 sizer3rr->Add(textLicorice, 0);
978 sizer3rr->Add(sliderLicorice, 1);
979 sizer3r->Add(5, 5, 0, wxALL, 5); // spacer*/
980 sizer3r->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).( newLabelledSlidercxx . . $ newLabelledSlider(19e0fd902f638ab3).(
981 this, ID_SetLicoriceRadiuscxx . . $ ID_SetLicoriceRadius.,
982 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Thickness:"),
983 geoSettingscxx . . $ geoSettings..GetLicoRadiusPercentagecxx . . $ GeoSettings#GetLicoRadiusPercentage(b126dc7c1de90089).(),
984 sliderLicoricecxx . . $ sliderLicorice.,
985 textLicoricecxx . . $ textLicorice.
986 ) , 0, wxALIGN_BOTTOMcxx . . $ wxALIGN_BOTTOM.);
987
988
989 sizer3->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(bitmap3, 0);
990 sizer3->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(5, 5, 0, wxALLcxx . . $ wxALL., 5); // spacer
991 sizer3->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer3r, 1, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.);
992
993
994 wxStaticBoxSizercxx . . $ wxStaticBoxSizer# *sizerColors = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Material Color") ) , wxHORIZONTALcxx . . $ wxHORIZONTAL. );
995
996 wxSizercxx . . $ wxSizer# *subsizerColors = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
997 buttonSetColorPerChaincxx . . $ buttonSetColorPerChain. =
998 new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).(this, ID_SetColorPerChaincxx . . $ ID_SetColorPerChain., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Per chain"), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
999
1000 buttonSetColorPerAtomcxx . . $ buttonSetColorPerAtom. =
1001 new wxRadioButtoncxx . . $ wxRadioButton#wxRadioButton(841ce057da6dc6d9).(this, ID_SetColorPerAtomcxx . . $ ID_SetColorPerAtom., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Per atom"), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxRB_SINGLEcxx . . $ `<external>/14689491191722134862/defs.h:1824:9`! );
1002
1003 buttonChangeColorSchemacxx . . $ buttonChangeColorSchema. =
1004 new wxButtoncxx . . $ wxButton#(this, ID_ChangeColorSchemacxx . . $ ID_ChangeColorSchema., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Change cols") ); //_T("Change\ncolor\nschema")
1005 subsizerColors->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonSetColorPerAtomcxx . . $ buttonSetColorPerAtom. );
1006 subsizerColors->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonSetColorPerChaincxx . . $ buttonSetColorPerChain. );
1007 subsizerColors->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(2,2);
1008 subsizerColors->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(
1009 newLabelledSlidercxx . . $ newLabelledSlider(19e0fd902f638ab3).(
1010 this, ID_SetColorBlendcxx . . $ ID_SetColorBlend.,
1011 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Diff:"),
1012 0,
1013 sliderColorBlendcxx . . $ sliderColorBlend.,
1014 textColorBlendcxx . . $ textColorBlend.
1015 ), 1, wxLEFTcxx . . $ wxLEFT.|wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.,30
1016 );
1017 sizerColors->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).( subsizerColors );
1018 sizerColors->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(2,2);
1019 sizerColors->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).( buttonChangeColorSchemacxx . . $ buttonChangeColorSchema., 1, wxRIGHTcxx . . $ wxRIGHT.|wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.|wxALIGN_BOTTOMcxx . . $ wxALIGN_BOTTOM.,5 );
1020
1021 wxSizercxx . . $ wxSizer# *sizerMode3 = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
1022 sizerMode3->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonSetLicoricecxx . . $ buttonSetLicorice., 0, wxRIGHTcxx . . $ wxRIGHT.|wxALIGN_CENTERcxx . . $ wxALIGN_CENTER., 5);
1023 sizerMode3->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer3, 1);
1024
1025 wxSizercxx . . $ wxSizer# *sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1026 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerMode1, 0, wxGROWcxx . . $ wxGROW. | wxALLcxx . . $ wxALL. , 4);
1027 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerMode3, 0, wxGROWcxx . . $ wxGROW. | wxALLcxx . . $ wxALL. , 4);
1028 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerMode2, 0, wxGROWcxx . . $ wxGROW. | wxALLcxx . . $ wxALL. , 4);
1029
1030 wxSizercxx . . $ wxSizer# *sizerG = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1031 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(5,5,0); // spacer
1032 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoCheckBoxcxx . . $ newAutoCheckBox(4e1e1192d8f53784).(
1033 this,ID_SetHetatmcxx . . $ ID_SetHetatm.,
•1034 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Show 'HET' atoms"),
1035 &(geoSettingscxx . . $ geoSettings..showHetatmcxx . . $ GeoSettings#showHetatm.),
1036 buttonSetHetatmcxx . . $ buttonSetHetatm., textSetHetatmcxx . . $ textSetHetatm.,
1037 AUTO_TEXT_ON_RIGHTcxx . . $ `src/MyTab.cpp:760:9`!
1038 ), 0 , wxALIGN_LEFTcxx . . $ wxALIGN_LEFT. | wxLEFTcxx . . $ wxLEFT.,8
1039 );
1040 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(5,5,0); // spacer
1041 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerColors, 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.);
1042
1043 sizerG->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizer,0,wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1044 SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(sizerG);
1045
1046 EnableGeomcxx . . $ MyTab#EnableGeom(49f6e7a06ebc5aa8).();
1047
1048 }
1049 if (n==2) { // customize tab (sliders for all graphic fxs)
1050
1051
1052 wxStaticTextcxx . . $ wxStaticText# *label1=new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Color:"));
1053 buttonChooseBgcolorcxx . . $ buttonChooseBgcolor.=new wxButtoncxx . . $ wxButton#(this, ID_ChooseBgcolorcxx . . $ ID_ChooseBgcolor.,
1054 wxEmptyStringcxx . . $ wxString#wxString(1751db0bab16ee59)., wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(16,16),wxNO_BORDERcxx . . $ `<external>/14689491191722134862/defs.h:1648:9`!);
1055 wxSizercxx . . $ wxSizer# *sizerBgcolor = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
1056
1057 sizerBgcolor->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(label1,0,wxALLcxx . . $ wxALL., 5);
1058 sizerBgcolor->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonChooseBgcolorcxx . . $ buttonChooseBgcolor.,0,wxALLcxx . . $ wxALL., 5);
1059 setSceneBgbrightnesscxx . . $ MyTab#setSceneBgbrightness(9364e6e7bff7660).(bgbrightnesscxx . . $ bgbrightness.);
1060
1061
1062 wxStaticBoxcxx . . $ wxStaticBox# *boxBG = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Background") );
1063 wxSizercxx . . $ wxSizer# *sizerBG = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxBG, wxVERTICALcxx . . $ wxVERTICAL.);
1064
1065 sizerBG->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1066 this, ID_SetBgbrightnesscxx . . $ ID_SetBgbrightness.,
1067 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Brightn.:"),
1068 &(bgbrightnesscxx . . $ bgbrightness.),
1069 sliderSetBgbrightnesscxx . . $ sliderSetBgbrightness.
1070 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1071
1072 sizerBG->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerBgcolor,0 , wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.);
1073
1074 wxStaticBoxcxx . . $ wxStaticBox# *boxBC = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Base Colors") );
1075 wxSizercxx . . $ wxSizer# *sizerBC = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxBC, wxVERTICALcxx . . $ wxVERTICAL.);
1076
1077 sizerBC->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1078 this, ID_SetBaseColorSatcxx . . $ ID_SetBaseColorSat.,
1079 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Saturation:"),
1080 &(cgSettingscxx . . $ cgSettings..P_col_atoms_satcxx . . $ CgUtil#P_col_atoms_sat.)
1081 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1082
1083 /*
1084 // Useless! Redundant with basic light
1085 sizerBC->Add(newAutoSlider(
1086 this, ID_SetBaseColorBri,
1087 _T("Brightness:"),
1088 &(cgSettings.P_col_atoms_bri)
1089 ), 0 , wxALIGN_RIGHT );
1090 */
1091
1092 wxStaticBoxcxx . . $ wxStaticBox# *boxPL = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Point Light"));
1093 wxSizercxx . . $ wxSizer# *sizerPL = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxPL, wxVERTICALcxx . . $ wxVERTICAL.);
1094
1095
1096 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1097 this, ID_SetLightcxx . . $ ID_SetLight.,
1098 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Intensity*:"),
1099 &(cgSettingscxx . . $ cgSettings..P_lightingcxx . . $ CgUtil#P_lighting.),
1100 sliderLightingcxx . . $ sliderLighting.
1101 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1102
1103 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1104 this, ID_SetLightBasecxx . . $ ID_SetLightBase.,
1105 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Flatten:"),
1106 &(cgSettingscxx . . $ cgSettings..P_light_basecxx . . $ CgUtil#P_light_base.),
1107 sliderLightBasecxx . . $ sliderLightBase., textLightBasecxx . . $ textLightBase.
1108 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1109
1110 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1111 this, ID_SetShinecxx . . $ ID_SetShine.,
1112 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Shininess:"),
1113 &(cgSettingscxx . . $ cgSettings..P_phongcxx . . $ CgUtil#P_phong.)
1114 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1115
1116 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1117 this, ID_SetShineSizecxx . . $ ID_SetShineSize.,
1118 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Glossiness:"),
1119 &(cgSettingscxx . . $ cgSettings..P_phong_sizecxx . . $ CgUtil#P_phong_size.),
1120 sliderShineSizecxx . . $ sliderShineSize., textShineSizecxx . . $ textShineSize.
1121 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.
1122 );
1123
1124 /* sizerPL->Add(newAutoCheckBox(
1125 this,ID_SetShadow,
1126 _T("Cast Shadows:"),
1127 &(cgSettings.P_use_shadowmap()),
1128 buttonShadow, textShadow
1129 ), 0 , wxALIGN_RIGHT
1130 );*/
1131
1132
1133 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1134 this, ID_SetShadowStrcxx . . $ ID_SetShadowStr.,
1135 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Shadows:"),
1136 &(cgSettingscxx . . $ cgSettings..P_shadowstrenghtcxx . . $ CgUtil#P_shadowstrenght.),
1137 sliderShadowStrcxx . . $ sliderShadowStr., textShadowStrcxx . . $ textShadowStr.
1138 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.
1139 );
1140
1141 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoCheckBoxcxx . . $ newAutoCheckBox(4e1e1192d8f53784).(
1142 this,ID_SetDoubleShadowscxx . . $ ID_SetDoubleShadows.,
1143 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("2way Light:"),
1144 &(cgSettingscxx . . $ cgSettings..P_double_shadowscxx . . $ CgUtil#P_double_shadows. ),
1145 buttonDoubleShadowscxx . . $ buttonDoubleShadows., textDoubleShadowscxx . . $ textDoubleShadows.
1146 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.
1147 );
1148
1149 sizerPL->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoCheckBoxcxx . . $ newAutoCheckBox(4e1e1192d8f53784).(
1150 this,ID_SetSemcxx . . $ ID_SetSem.,
1151 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Fake SEM:"),
1152 &(cgSettingscxx . . $ cgSettings..P_sem_effectcxx . . $ CgUtil#P_sem_effect.),
1153 buttonSemcxx . . $ buttonSem., textSemcxx . . $ textSem.
1154 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT.
1155 );
1156
1157 wxStaticBoxcxx . . $ wxStaticBox# *boxDB = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Depth Cueing") );
1158 wxSizercxx . . $ wxSizer# *sizerDB = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxDB, wxVERTICALcxx . . $ wxVERTICAL.);
1159
1160 sizerDB->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1161 this, ID_SetFogcxx . . $ ID_SetFog.,
•1162 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Strength:"),
1163 &(cgSettingscxx . . $ cgSettings..P_fogcxx . . $ CgUtil#P_fog.)
1164 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1165
1166
1167 wxStaticBoxcxx . . $ wxStaticBox# *boxHA = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Halos") );
1168 wxSizercxx . . $ wxSizer# *sizerHA = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxHA, wxVERTICALcxx . . $ wxVERTICAL.);
1169
1170 sizerHA->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1171 this, ID_SetHalocxx . . $ ID_SetHalo.,
1172 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Size:"),
1173 &(cgSettingscxx . . $ cgSettings..P_halo_sizecxx . . $ CgUtil#P_halo_size.),
1174 sliderHaloSizecxx . . $ sliderHaloSize., textHaloSizecxx . . $ textHaloSize.
1175 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1176
1177 sizerHA->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1178 this, ID_SetHaloStrcxx . . $ ID_SetHaloStr.,
•1179 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Strength:"),
1180 &(cgSettingscxx . . $ cgSettings..P_halo_strcxx . . $ CgUtil#P_halo_str.),
1181 sliderHaloStrcxx . . $ sliderHaloStr., textHaloStrcxx . . $ textHaloStr.
1182 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1183
1184 sizerHA->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1185 this, ID_SetHaloAwarecxx . . $ ID_SetHaloAware.,
1186 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Variance:"),
1187 &(cgSettingscxx . . $ cgSettings..P_halo_awarecxx . . $ CgUtil#P_halo_aware.),
1188 sliderHaloAwarecxx . . $ sliderHaloAware., textHaloAwarecxx . . $ textHaloAware.
1189 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1190
1191 textHaloColorcxx . . $ textHaloColor.=new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Color:"));
1192 buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.=new wxButtoncxx . . $ wxButton#(this, ID_ChooseHAcolorcxx . . $ ID_ChooseHAcolor.,
1193 wxEmptyStringcxx . . $ wxString#wxString(1751db0bab16ee59)., wxDefaultPositioncxx . . $ wxDefaultPosition., wxSizecxx . . $ wxSize#wxSize(3e454b8ccf442868).(16,16),wxNO_BORDERcxx . . $ `<external>/14689491191722134862/defs.h:1648:9`!);
1194 buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).( colcxx . . $ col(49e8a50b149a0843).(cgSettingscxx . . $ cgSettings..P_halo_colcxx . . $ CgUtil#P_halo_col.) );
1195
1196
1197 wxSizercxx . . $ wxSizer# *sizerHAcolor = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
1198
1199
1200
1201
1202 sizerHAcolor->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(textHaloColorcxx . . $ textHaloColor.,0,wxALLcxx . . $ wxALL., 5);
1203 sizerHAcolor->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.,0,wxALLcxx . . $ wxALL., 5);
1204
1205 sizerHA->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerHAcolor, 0 , wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.);
1206
1207
1208 // borders
1209
1210 wxStaticBoxcxx . . $ wxStaticBox# *boxBR = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Borders") );
1211 wxSizercxx . . $ wxSizer# *sizerBR = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxBR, wxVERTICALcxx . . $ wxVERTICAL.);
1212
1213 /*
1214 sizerBR->Add(newAutoSlider(
1215 this, ID_SetBorderFixed,
1216 _T("Fixed Size:"),
1217 &(cgSettings.P_border_inside)
1218 ), 0 , wxALIGN_RIGHT );*/
1219
1220 sizerBR->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1221 this, ID_SetBorderVariablecxx . . $ ID_SetBorderVariable.,
1222 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Size:"),
1223 &(cgSettingscxx . . $ cgSettings..P_border_outsidecxx . . $ CgUtil#P_border_outside.)
1224 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1225
1226 sizerBR->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1227 this, ID_SetBorderDepthAwarecxx . . $ ID_SetBorderDepthAware.,
1228 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Variance:"),
1229 &(cgSettingscxx . . $ cgSettings..P_depth_fullcxx . . $ CgUtil#P_depth_full.),
1230 sliderAwarencxx . . $ sliderAwaren., textAwarencxx . . $ textAwaren.
1231 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1232
1233
1234
1235
1236 wxStaticBoxcxx . . $ wxStaticBox# *boxAO = new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Ambient Light") );
1237 wxSizercxx . . $ wxSizer# *sizerAO = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(boxAO, wxVERTICALcxx . . $ wxVERTICAL.);
1238
1239 sizerAO->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(newAutoSlidercxx . . $ newAutoSlider(3a976951b011a994).(
1240 this, ID_SetAOcxx . . $ ID_SetAO.,
1241 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Intensity*:"),
1242 &(cgSettingscxx . . $ cgSettings..P_texturecxx . . $ CgUtil#P_texture.),
1243 sliderAOcxx . . $ sliderAO.
1244 ), 0 , wxALIGN_RIGHTcxx . . $ wxALIGN_RIGHT. );
1245
1246
1247 wxSizercxx . . $ wxSizer# *sizerAB = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1248 buttonAutobalancecxx . . $ buttonAutobalance. = new wxCheckBoxcxx . . $ wxCheckBox#(this, ID_SetAutobalancecxx . . $ ID_SetAutobalance., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("* Autobalance") );
1249 buttonAutobalancecxx . . $ buttonAutobalance.->SetValuecxx . . $ wxCheckBox#SetValue(b45ddcbc8423892c).(false);
1250 sizerAB->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(buttonAutobalancecxx . . $ buttonAutobalance., 1, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1251 buttonTablecxx . . $ buttonTable..Addcxx . . $ ButtonTable#Add(b7dc43ed88b6fdaa).(ID_SetAutobalancecxx . . $ ID_SetAutobalance., &(cgSettingscxx . . $ cgSettings..auto_normalizecxx . . $ CgUtil#auto_normalize.), buttonAutobalancecxx . . $ buttonAutobalance.);
1252
1253 int SPACE=6;
1254
1255 sizerLcxx . . $ sizerL. = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1256 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerBC, 0, wxEXPANDcxx . . $ wxEXPAND.);
1257 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1258 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerPL, 0, wxEXPANDcxx . . $ wxEXPAND.);
1259 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1260 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerAO, 0, wxEXPANDcxx . . $ wxEXPAND.);
1261 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1262 sizerLcxx . . $ sizerL.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerAB, 0, wxEXPANDcxx . . $ wxEXPAND.|wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1263
1264
1265 /*wxBoxSizer */sizerRcxx . . $ sizerR. = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1266 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerBG, 0, wxEXPANDcxx . . $ wxEXPAND.);
1267 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1268 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerDB, 0, wxEXPANDcxx . . $ wxEXPAND.);
1269 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1270 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerHA, 0, wxEXPANDcxx . . $ wxEXPAND.);
1271 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(SPACE,SPACE, 0);
1272 sizerRcxx . . $ sizerR.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerBR, 0, wxEXPANDcxx . . $ wxEXPAND.);
1273
1274 globalSizerVcxx . . $ globalSizerV. = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1275 globalSizerVcxx . . $ globalSizerV.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerLcxx . . $ sizerL., 1, wxEXPANDcxx . . $ wxEXPAND.);
1276
1277 globalSizerHcxx . . $ globalSizerH. = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxHORIZONTALcxx . . $ wxHORIZONTAL.);
1278 globalSizerHcxx . . $ globalSizerH.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(globalSizerVcxx . . $ globalSizerV., 1);
1279 globalSizerHcxx . . $ globalSizerH.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerRcxx . . $ sizerR.,1, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT., 5);
1280
1281
1282 _THcxx . . $ _TH.=sizerLcxx . . $ sizerL.->GetMinSizecxx . . $ wxSizer#GetMinSize(bc55a34d0a1c1eb0).().ycxx . . $ wxSize#y. + sizerRcxx . . $ sizerR.->GetMinSizecxx . . $ wxSizer#GetMinSize(bc55a34d0a1c1eb0).().ycxx . . $ wxSize#y.;
1283
1284 SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(globalSizerHcxx . . $ globalSizerH.);
1285
1286 EnableCustomcxx . . $ MyTab#EnableCustom(49f6e7a06ebc5aa8).();
1287
1288 }
1289 if (n==3) { // info tab (about, trackball instructions, and a button for advanced properties)
1290
1291 wxSizercxx . . $ wxSizer# *sizerA = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1292 sizerA->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("by"))
1293 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1294 sizerA->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Marco Tarini"))
1295 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1296 sizerA->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("and"))
1297 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1298 sizerA->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Paolo Cignoni"))
1299 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1300
1301
1302 wxSizercxx . . $ wxSizer# *sizerB = new wxStaticBoxSizercxx . . $ wxStaticBoxSizer#(new wxStaticBoxcxx . . $ wxStaticBox#(this, wxID_ANYcxx . . $ wxID_ANY., _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("Instructions") ), wxVERTICALcxx . . $ wxVERTICAL.);
1303 sizerB->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("\
1304 Left Mouse Button: rotate molecule\n\
1305 Mouse wheel / Shift+Left: zoom molecule\n\
1306 Middle Mouse / Ctrl+Left Mouse : pan molecule\n\
1307 Right Mouse Button: move Light\n\
1308 "), wxDefaultPositioncxx . . $ wxDefaultPosition., wxDefaultSizecxx . . $ wxDefaultSize., wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.)
1309 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER. );
1310
1311
1312 wxSizercxx . . $ wxSizer# *sizerC = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).( wxHORIZONTALcxx . . $ wxHORIZONTAL.);
1313 wxStaticBitmapcxx . . $ wxStaticBitmap# *bitmap = new wxStaticBitmapcxx . . $ wxStaticBitmap#(this, wxID_ANYcxx . . $ wxID_ANY., *cxx . . $ wxBitmapBundle#wxBitmapBundle(98862698a0401ee5).LoadPngImagecxx . . $ LoadPngImage(f28252153a20ddf5).(_Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("logo")), wxDefaultPositioncxx . . $ wxDefaultPosition. );
1314 sizerC->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(bitmap, 0, wxALIGN_BOTTOMcxx . . $ wxALIGN_BOTTOM.);
1315 sizerC->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
1316 sizerC->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(new wxStaticTextcxx . . $ wxStaticText#(this, wxID_ANYcxx . . $ wxID_ANY.,
•1317 _Tcxx . . $ `<external>/13533349018018911527/chartype.h:238:13`!("ver 0.4.1")
1318 ),0, wxALIGN_BOTTOMcxx . . $ wxALIGN_BOTTOM.|wxALLcxx . . $ wxALL.,10);
1319
1320 wxSizercxx . . $ wxSizer# *sizer = new wxBoxSizercxx . . $ wxBoxSizer#wxBoxSizer(d4f767463ce0a6b3).(wxVERTICALcxx . . $ wxVERTICAL.);
1321 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
1322 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerA,0, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT.|wxRIGHTcxx . . $ wxRIGHT.,10);
1323 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
1324 sizer->Addcxx . . $ wxSizer#Add(71dcc790f806ec5).(
1325 new wxButtoncxx . . $ wxButton#(this, ID_WebButtoncxx . . $ ID_WebButton., /*_T("visit ")+*/qutemolwebsitecxx . . $ qutemolwebsite. )
1326 ,0, wxALIGN_CENTERcxx . . $ wxALIGN_CENTER.|wxALLcxx . . $ wxALL./*|wxEXPAND,10*/);
1327 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
1328
1329 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerB,0, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT.|wxRIGHTcxx . . $ wxRIGHT.,10);
1330 sizer->Addcxx . . $ wxSizer#Add(6ba8f39d9a6b2465).(1,1,1);
1331 sizer->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerC,0, wxEXPANDcxx . . $ wxEXPAND.);
1332
1333 SetSizercxx . . $ wxWindowBase#SetSizer(6b8f606b81107616).(sizer);
1334 }
1335 }
1336
1337 bool MyTabcxx . . $ MyTab#::Redisposecxx . . $ MyTab#Redispose(83c267b20bac841a).(int wy){
1338 bool res=false;
1339 if (globalSizerHcxx . . $ globalSizerH.) {
1340 if (_THcxx . . $ _TH.<wy) {
1341 if (globalSizerHcxx . . $ globalSizerH.->Detachcxx . . $ wxSizer#Detach(54b12b34a0589feb).(sizerRcxx . . $ sizerR.)) {
1342 globalSizerVcxx . . $ globalSizerV.->Detachcxx . . $ wxSizer#Detach(54b12b34a0589feb).(sizerLcxx . . $ sizerL.);
1343 globalSizerVcxx . . $ globalSizerV.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerLcxx . . $ sizerL.,1, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT.|wxRIGHTcxx . . $ wxRIGHT.|wxTOPcxx . . $ wxTOP.,10);
1344 globalSizerVcxx . . $ globalSizerV.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerRcxx . . $ sizerR.,1, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT.|wxRIGHTcxx . . $ wxRIGHT.,10);
1345 res=true;
1346 }
1347 }
1348 else
1349 {
1350 if (globalSizerVcxx . . $ globalSizerV.->Detachcxx . . $ wxSizer#Detach(54b12b34a0589feb).(sizerRcxx . . $ sizerR.)) {
1351 globalSizerVcxx . . $ globalSizerV.->Detachcxx . . $ wxSizer#Detach(54b12b34a0589feb).(sizerLcxx . . $ sizerL.);
1352 globalSizerVcxx . . $ globalSizerV.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerLcxx . . $ sizerL.,1, wxEXPANDcxx . . $ wxEXPAND.);
1353 globalSizerHcxx . . $ globalSizerH.->Addcxx . . $ wxSizer#Add(c5b4b396efb9dbb2).(sizerRcxx . . $ sizerR.,1, wxEXPANDcxx . . $ wxEXPAND.|wxLEFTcxx . . $ wxLEFT., 5);
1354 res=true;
1355 }
1356 }
1357 globalSizerVcxx . . $ globalSizerV.->Layoutcxx . . $ wxSizer#Layout(49f6e7a06ebc5aa8).();
1358 globalSizerVcxx . . $ globalSizerV.->CalcMincxx . . $ wxSizer#CalcMin(bc55a34d0a1c1eb0).();
1359 globalSizerVcxx . . $ globalSizerV.->RecalcSizescxx . . $ wxSizer#RecalcSizes(49f6e7a06ebc5aa8).();
1360 globalSizerHcxx . . $ globalSizerH.->Layoutcxx . . $ wxSizer#Layout(49f6e7a06ebc5aa8).();
1361 globalSizerHcxx . . $ globalSizerH.->CalcMincxx . . $ wxSizer#CalcMin(bc55a34d0a1c1eb0).();
1362 globalSizerHcxx . . $ globalSizerH.->RecalcSizescxx . . $ wxSizer#RecalcSizes(49f6e7a06ebc5aa8).();
1363 }
1364 return res;
1365 }
1366
1367 void MyTabcxx . . $ MyTab#::UpdateAllcxx . . $ MyTab#UpdateAll(49f6e7a06ebc5aa8).(){
1368 setSceneBgcolorcxx . . $ MyTab#setSceneBgcolor(3b354b1b4b9b0121).( colcxx . . $ col(23c3e7fe2dc4e374).(cgSettingscxx . . $ cgSettings..P_bg_color_Rcxx . . $ CgUtil#P_bg_color_R.,cgSettingscxx . . $ cgSettings..P_bg_color_Gcxx . . $ CgUtil#P_bg_color_G., cgSettingscxx . . $ cgSettings..P_bg_color_Bcxx . . $ CgUtil#P_bg_color_B.) );
1369 int k=(int)(cgSettingscxx . . $ cgSettings..P_halo_colcxx . . $ CgUtil#P_halo_col.*255.0);
1370 buttonChooseHAcolorcxx . . $ buttonChooseHAcolor.->SetBackgroundColourcxx . . $ wxWindow#SetBackgroundColour(c4d9c5755b95f2b4).(wxColorcxx . . $ `<external>/3659031169875241396/colour.h:247:9`!(k,k,k));
1371 sliderTablecxx . . $ sliderTable..UpdateAllcxx . . $ SliderTable#UpdateAll(49f6e7a06ebc5aa8).();
1372 buttonTablecxx . . $ buttonTable..UpdateAllcxx . . $ ButtonTable#UpdateAll(49f6e7a06ebc5aa8).();
1373 //EnableGeom();
1374 EnableCustomcxx . . $ MyTab#EnableCustom(49f6e7a06ebc5aa8).();
1375 }
1376