-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui10Main.cpp
More file actions
4501 lines (3921 loc) · 190 KB
/
gui10Main.cpp
File metadata and controls
4501 lines (3921 loc) · 190 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/***************************************************************
* Name: gui10Main.cpp
* Purpose: Code for Application Frame
* Author: ()
* Created: 2012 09-30
* Copyright: (C) Michael Johnston
* License:
**************************************************************/
#include "gui10Main.h"
#include "FTDI_interface.h"
#include "NewDialog.h"
#include "AddNewProfile.h"
#include "DeleteVerify.h"
#include "RenameProfile.h"
#include "ProfileOverwrite.h"
#include "LightPrograms.h"
#include "SaveOnQuit.h"
#include "Options.h"
#include "SaveFirst.h"
#include <wx/textfile.h>
#include <wx/msgdlg.h>
#include <wx/timer.h>
#include <wx/event.h>
//#include <wx/toplevel.h>
//(*InternalHeaders(gui10Frame)
#include <wx/settings.h>
#include <wx/string.h>
#include <wx/intl.h>
#include <wx/font.h>
#include <wx/bitmap.h>
#include <wx/icon.h>
#include <wx/image.h>
//*)
//#include "wxMidi.h"
//helper functions
enum wxbuildinfoformat {
short_f, long_f };
wxString wxbuildinfo(wxbuildinfoformat format)
{
wxString wxbuild(wxVERSION_STRING);
if (format == long_f )
{
#if defined(__WXMSW__)
wxbuild << _T("-Windows");
#elif defined(__UNIX__)
wxbuild << _T("-Linux");
#endif
#if wxUSE_UNICODE
wxbuild << _T("-Unicode build");
#else
wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
}
return wxbuild;
}
//(*IdInit(gui10Frame)
const long gui10Frame::ID_STATICBOX1 = wxNewId();
const long gui10Frame::ID_LISTBOX1 = wxNewId();
const long gui10Frame::ID_BUTTON4 = wxNewId();
const long gui10Frame::ID_BUTTON8 = wxNewId();
const long gui10Frame::ID_BUTTON7 = wxNewId();
const long gui10Frame::ID_BUTTON2 = wxNewId();
const long gui10Frame::ID_BUTTON6 = wxNewId();
const long gui10Frame::ID_BUTTON1 = wxNewId();
const long gui10Frame::ID_BUTTON9 = wxNewId();
const long gui10Frame::ID_BUTTON11 = wxNewId();
const long gui10Frame::ID_BUTTON3 = wxNewId();
const long gui10Frame::ID_BUTTON12 = wxNewId();
const long gui10Frame::ID_BUTTON5 = wxNewId();
const long gui10Frame::ID_SLIDER1 = wxNewId();
const long gui10Frame::ID_SLIDER2 = wxNewId();
const long gui10Frame::ID_SLIDER3 = wxNewId();
const long gui10Frame::ID_SLIDER4 = wxNewId();
const long gui10Frame::ID_SLIDER5 = wxNewId();
const long gui10Frame::ID_SLIDER6 = wxNewId();
const long gui10Frame::ID_SLIDER7 = wxNewId();
const long gui10Frame::ID_SLIDER8 = wxNewId();
const long gui10Frame::ID_SLIDER9 = wxNewId();
const long gui10Frame::ID_SLIDER10 = wxNewId();
const long gui10Frame::ID_SLIDER11 = wxNewId();
const long gui10Frame::ID_SLIDER12 = wxNewId();
const long gui10Frame::ID_SLIDER13 = wxNewId();
const long gui10Frame::ID_SLIDER14 = wxNewId();
const long gui10Frame::ID_SLIDER15 = wxNewId();
const long gui10Frame::ID_SLIDER16 = wxNewId();
const long gui10Frame::ID_STATICTEXT2 = wxNewId();
const long gui10Frame::ID_STATICTEXT4 = wxNewId();
const long gui10Frame::ID_STATICTEXT3 = wxNewId();
const long gui10Frame::ID_STATICTEXT1 = wxNewId();
const long gui10Frame::ID_STATICTEXT5 = wxNewId();
const long gui10Frame::ID_STATICTEXT6 = wxNewId();
const long gui10Frame::ID_STATICTEXT7 = wxNewId();
const long gui10Frame::ID_STATICTEXT8 = wxNewId();
const long gui10Frame::ID_STATICTEXT9 = wxNewId();
const long gui10Frame::ID_STATICTEXT10 = wxNewId();
const long gui10Frame::ID_STATICTEXT12 = wxNewId();
const long gui10Frame::ID_STATICTEXT17 = wxNewId();
const long gui10Frame::ID_STATICTEXT18 = wxNewId();
const long gui10Frame::ID_STATICTEXT22 = wxNewId();
const long gui10Frame::ID_STATICTEXT21 = wxNewId();
const long gui10Frame::ID_STATICTEXT20 = wxNewId();
const long gui10Frame::ID_STATICTEXT19 = wxNewId();
const long gui10Frame::ID_STATICTEXT16 = wxNewId();
const long gui10Frame::ID_STATICTEXT15 = wxNewId();
const long gui10Frame::ID_STATICTEXT14 = wxNewId();
const long gui10Frame::ID_STATICTEXT13 = wxNewId();
const long gui10Frame::ID_STATICTEXT11 = wxNewId();
const long gui10Frame::ID_STATICTEXT23 = wxNewId();
const long gui10Frame::ID_STATICTEXT24 = wxNewId();
const long gui10Frame::ID_STATICTEXT25 = wxNewId();
const long gui10Frame::ID_STATICTEXT26 = wxNewId();
const long gui10Frame::ID_STATICTEXT27 = wxNewId();
const long gui10Frame::ID_STATICTEXT28 = wxNewId();
const long gui10Frame::ID_STATICTEXT29 = wxNewId();
const long gui10Frame::ID_STATICTEXT30 = wxNewId();
const long gui10Frame::ID_STATICTEXT31 = wxNewId();
const long gui10Frame::ID_STATICTEXT32 = wxNewId();
const long gui10Frame::ID_STATICTEXT33 = wxNewId();
const long gui10Frame::ID_STATICTEXT34 = wxNewId();
const long gui10Frame::ID_STATICTEXT35 = wxNewId();
const long gui10Frame::ID_STATICTEXT36 = wxNewId();
const long gui10Frame::ID_MENUITEM2 = wxNewId();
const long gui10Frame::ID_MENUITEM1 = wxNewId();
const long gui10Frame::idMenuQuit = wxNewId();
const long gui10Frame::idMenuHelp = wxNewId();
const long gui10Frame::idMenuAbout = wxNewId();
const long gui10Frame::ID_TIMER1 = wxNewId();
//*)
bool isconnected;
bool isconnectionattempt;
bool isactive;
bool isselectionchange;
bool isloading;
bool isnamevariable;
bool isprofilemode;
bool issavefirst;
bool isexporting;
bool isnewblankprofile;
bool issaveonquit;
bool iscancelquit;
//lets program know if a profile set should be saved or not
bool ischanged;
bool isbeattimecalculationchange;
bool isfirstruninitialize;
bool istimeractive;
//these bools control the main timer's code path
bool isbs;
bool isalarm;
bool is24hmode;
bool isMidiControlmode;
bool isVSXumode;
bool isLightScripts;
bool islightsequencer;
bool isIconize;
bool VSXuInitialize;
bool hasVSXurunonce;
bool MidiInitialize;
bool isExternalInput;
//for delete verify
bool yesorno;
bool generalcancel;
//int profileselection = 0;
int numberofprofiles;
int currentprofile;
wxString messageboxtest;
wxString newprofileValue;
wxString profilefilename;
//directory thing can be removed
wxString directory = wxT("./");
wxString profiledirectory;
wxString fullpath;
wxString nameofexport;
wxString nameofnewprofile;
unsigned short int LightputFrequency;
bool isminimizedonstartup;
bool islightprogramonstartup;
bool runlightprogramonstartup;
//linux startup fix
unsigned short int counttostart;
unsigned short int startuplightprogram;
//extern VSXuRenderer *vsxu_renderer;
//i couldnt figure out a way to dynamically assign
//these array initializers, so I made the value a static
//64, which restricts the amount of profiles to 64
wxString Value [64];
wxString tempValue [64];
//int numberofvalues [64];
unsigned short int v1 [64];
unsigned short int v2 [64];
unsigned short int v3 [64];
unsigned short int v4 [64];
unsigned short int v5 [64];
unsigned short int v6 [64];
unsigned short int v7 [64];
unsigned short int v8 [64];
unsigned short int v9 [64];
unsigned short int v10 [64];
unsigned short int v11 [64];
unsigned short int v12 [64];
unsigned short int v13 [64];
unsigned short int v14 [64];
unsigned short int v15 [64];
unsigned short int v16 [64];
unsigned short int StartingDMXChannel;
unsigned short int blankchannels;
unsigned short int Channel_1;
unsigned short int Channel_2;
unsigned short int Channel_3;
unsigned short int Channel_4;
unsigned short int Channel_5;
unsigned short int Channel_6;
unsigned short int Channel_7;
unsigned short int Channel_8;
unsigned short int Channel_9;
unsigned short int Channel_10;
unsigned short int Channel_11;
unsigned short int Channel_12;
unsigned short int Channel_13;
unsigned short int Channel_14;
unsigned short int Channel_15;
unsigned short int Channel_16;
unsigned short int s1v;
unsigned short int s2v;
unsigned short int s3v;
unsigned short int s4v;
unsigned short int s5v;
unsigned short int s6v;
unsigned short int s7v;
unsigned short int s8v;
unsigned short int s9v;
unsigned short int s10v;
unsigned short int s11v;
unsigned short int s12v;
unsigned short int s13v;
unsigned short int s14v;
unsigned short int s15v;
unsigned short int s16v;
wxString s1value;
wxString s2value;
wxString s3value;
wxString s4value;
wxString s5value;
wxString s6value;
wxString s7value;
wxString s8value;
wxString s9value;
wxString s10value;
wxString s11value;
wxString s12value;
wxString s13value;
wxString s14value;
wxString s15value;
wxString s16value;
//variables for DMX information transmission
FT_STATUS ftStatus;
FT_STATUS ftStatus2;
FT_HANDLE ftHandle1;
FT_HANDLE ftHandle2;
FT_HANDLE ftHandle3;
FT_HANDLE ftHandle4;
//DMXtimer LightputEngineTimer;
unsigned short int dmxmode;
bool is_usb_connected;
bool is_usb_connected2;
bool is_usb_connected3;
bool is_usb_connected4;
bool isDMXcascade;
unsigned short int DMXcascadecount;
FTDI_interface *dmx_sender_thread;
FTDI_interface *dmx_sender_thread2;
FTDI_interface *dmx_sender_thread3;
FTDI_interface *dmx_sender_thread4;
//variables for light script options
bool islsRepeat;
bool islsStartOn1;
//buffers for profile when blinking is off/done
unsigned short int ProfileChannel_1;
unsigned short int ProfileChannel_2;
unsigned short int ProfileChannel_3;
unsigned short int ProfileChannel_4;
unsigned short int ProfileChannel_5;
unsigned short int ProfileChannel_6;
unsigned short int ProfileChannel_7;
unsigned short int ProfileChannel_8;
unsigned short int ProfileChannel_9;
unsigned short int ProfileChannel_10;
unsigned short int ProfileChannel_11;
unsigned short int ProfileChannel_12;
unsigned short int ProfileChannel_13;
unsigned short int ProfileChannel_14;
unsigned short int ProfileChannel_15;
unsigned short int ProfileChannel_16;
unsigned short int bs_ProfileChannel_1;
unsigned short int bs_ProfileChannel_2;
unsigned short int bs_ProfileChannel_3;
unsigned short int bs_ProfileChannel_4;
unsigned short int bs_ProfileChannel_5;
unsigned short int bs_ProfileChannel_6;
unsigned short int bs_ProfileChannel_7;
unsigned short int bs_ProfileChannel_8;
unsigned short int bs_ProfileChannel_9;
unsigned short int bs_ProfileChannel_10;
unsigned short int bs_ProfileChannel_11;
unsigned short int bs_ProfileChannel_12;
unsigned short int bs_ProfileChannel_13;
unsigned short int bs_ProfileChannel_14;
unsigned short int bs_ProfileChannel_15;
unsigned short int bs_ProfileChannel_16;
unsigned short int ls_ProfileChannel_1;
unsigned short int ls_ProfileChannel_2;
unsigned short int ls_ProfileChannel_3;
unsigned short int ls_ProfileChannel_4;
unsigned short int ls_ProfileChannel_5;
unsigned short int ls_ProfileChannel_6;
unsigned short int ls_ProfileChannel_7;
unsigned short int ls_ProfileChannel_8;
unsigned short int ls_ProfileChannel_9;
unsigned short int ls_ProfileChannel_10;
unsigned short int ls_ProfileChannel_11;
unsigned short int ls_ProfileChannel_12;
unsigned short int ls_ProfileChannel_13;
unsigned short int ls_ProfileChannel_14;
unsigned short int ls_ProfileChannel_15;
unsigned short int ls_ProfileChannel_16;
unsigned short int alarm_ProfileChannel_1;
unsigned short int alarm_ProfileChannel_2;
unsigned short int alarm_ProfileChannel_3;
unsigned short int alarm_ProfileChannel_4;
unsigned short int alarm_ProfileChannel_5;
unsigned short int alarm_ProfileChannel_6;
unsigned short int alarm_ProfileChannel_7;
unsigned short int alarm_ProfileChannel_8;
unsigned short int alarm_ProfileChannel_9;
unsigned short int alarm_ProfileChannel_10;
unsigned short int alarm_ProfileChannel_11;
unsigned short int alarm_ProfileChannel_12;
unsigned short int alarm_ProfileChannel_13;
unsigned short int alarm_ProfileChannel_14;
unsigned short int alarm_ProfileChannel_15;
unsigned short int alarm_ProfileChannel_16;
unsigned short int timer_ProfileChannel_1;
unsigned short int timer_ProfileChannel_2;
unsigned short int timer_ProfileChannel_3;
unsigned short int timer_ProfileChannel_4;
unsigned short int timer_ProfileChannel_5;
unsigned short int timer_ProfileChannel_6;
unsigned short int timer_ProfileChannel_7;
unsigned short int timer_ProfileChannel_8;
unsigned short int timer_ProfileChannel_9;
unsigned short int timer_ProfileChannel_10;
unsigned short int timer_ProfileChannel_11;
unsigned short int timer_ProfileChannel_12;
unsigned short int timer_ProfileChannel_13;
unsigned short int timer_ProfileChannel_14;
unsigned short int timer_ProfileChannel_15;
unsigned short int timer_ProfileChannel_16;
unsigned short int VSXu_ProfileChannel_1;
unsigned short int VSXu_ProfileChannel_2;
unsigned short int VSXu_ProfileChannel_3;
unsigned short int VSXu_ProfileChannel_4;
unsigned short int VSXu_ProfileChannel_5;
unsigned short int VSXu_ProfileChannel_6;
unsigned short int VSXu_ProfileChannel_7;
unsigned short int VSXu_ProfileChannel_8;
unsigned short int VSXu_ProfileChannel_9;
unsigned short int VSXu_ProfileChannel_10;
unsigned short int VSXu_ProfileChannel_11;
unsigned short int VSXu_ProfileChannel_12;
unsigned short int VSXu_ProfileChannel_13;
unsigned short int VSXu_ProfileChannel_14;
unsigned short int VSXu_ProfileChannel_15;
unsigned short int VSXu_ProfileChannel_16;
unsigned short int Channel_1_VSXu;
unsigned short int Channel_2_VSXu;
unsigned short int Channel_3_VSXu;
unsigned short int Channel_4_VSXu;
unsigned short int Channel_5_VSXu;
unsigned short int Channel_6_VSXu;
unsigned short int Channel_7_VSXu;
unsigned short int Channel_8_VSXu;
unsigned short int Channel_9_VSXu;
unsigned short int Channel_10_VSXu;
unsigned short int Channel_11_VSXu;
unsigned short int Channel_12_VSXu;
unsigned short int Channel_13_VSXu;
unsigned short int Channel_14_VSXu;
unsigned short int Channel_15_VSXu;
unsigned short int Channel_16_VSXu;
unsigned short int Channel_1_MidiControl;
unsigned short int Channel_2_MidiControl;
unsigned short int Channel_3_MidiControl;
unsigned short int Channel_4_MidiControl;
unsigned short int Channel_5_MidiControl;
unsigned short int Channel_6_MidiControl;
unsigned short int Channel_7_MidiControl;
unsigned short int Channel_8_MidiControl;
unsigned short int Channel_9_MidiControl;
unsigned short int Channel_10_MidiControl;
unsigned short int Channel_11_MidiControl;
unsigned short int Channel_12_MidiControl;
unsigned short int Channel_13_MidiControl;
unsigned short int Channel_14_MidiControl;
unsigned short int Channel_15_MidiControl;
unsigned short int Channel_16_MidiControl;
unsigned short int Channel_1_ExternalInput;
unsigned short int Channel_2_ExternalInput;
unsigned short int Channel_3_ExternalInput;
unsigned short int Channel_4_ExternalInput;
unsigned short int Channel_5_ExternalInput;
unsigned short int Channel_6_ExternalInput;
unsigned short int Channel_7_ExternalInput;
unsigned short int Channel_8_ExternalInput;
unsigned short int Channel_9_ExternalInput;
unsigned short int Channel_10_ExternalInput;
unsigned short int Channel_11_ExternalInput;
unsigned short int Channel_12_ExternalInput;
unsigned short int Channel_13_ExternalInput;
unsigned short int Channel_14_ExternalInput;
unsigned short int Channel_15_ExternalInput;
unsigned short int Channel_16_ExternalInput;
//options variables
unsigned short int option_dmxmode;
wxString option_defaultprofile;
unsigned short int option_profiletime;
//this value is for an option for the blink sequencer, to set the default transition type
bool issmooth;
bool issmoothstart;
unsigned short int beattime;
//variables for smooth transition
double Channel_1_difference;
double Channel_1_increment;
double Channel_1_added;
unsigned short int Channel_1_new;
unsigned short int Channel_1_out;
double Channel_2_difference;
double Channel_2_increment;
double Channel_2_added;
unsigned short int Channel_2_new;
unsigned short int Channel_2_out;
double Channel_3_difference;
double Channel_3_increment;
double Channel_3_added;
unsigned short int Channel_3_new;
unsigned short int Channel_3_out;
double Channel_4_difference;
double Channel_4_increment;
double Channel_4_added;
unsigned short int Channel_4_new;
unsigned short int Channel_4_out;
double Channel_5_difference;
double Channel_5_increment;
double Channel_5_added;
unsigned short int Channel_5_new;
unsigned short int Channel_5_out;
double Channel_6_difference;
double Channel_6_increment;
double Channel_6_added;
unsigned short int Channel_6_new;
unsigned short int Channel_6_out;
double Channel_7_difference;
double Channel_7_increment;
double Channel_7_added;
unsigned short int Channel_7_new;
unsigned short int Channel_7_out;
double Channel_8_difference;
double Channel_8_increment;
double Channel_8_added;
unsigned short int Channel_8_new;
unsigned short int Channel_8_out;
double Channel_9_difference;
double Channel_9_increment;
double Channel_9_added;
unsigned short int Channel_9_new;
unsigned short int Channel_9_out;
double Channel_10_difference;
double Channel_10_increment;
double Channel_10_added;
unsigned short int Channel_10_new;
unsigned short int Channel_10_out;
double Channel_11_difference;
double Channel_11_increment;
double Channel_11_added;
unsigned short int Channel_11_new;
unsigned short int Channel_11_out;
double Channel_12_difference;
double Channel_12_increment;
double Channel_12_added;
unsigned short int Channel_12_new;
unsigned short int Channel_12_out;
double Channel_13_difference;
double Channel_13_increment;
double Channel_13_added;
unsigned short int Channel_13_new;
unsigned short int Channel_13_out;
double Channel_14_difference;
double Channel_14_increment;
double Channel_14_added;
unsigned short int Channel_14_new;
unsigned short int Channel_14_out;
double Channel_15_difference;
double Channel_15_increment;
double Channel_15_added;
unsigned short int Channel_15_new;
unsigned short int Channel_15_out;
double Channel_16_difference;
double Channel_16_increment;
double Channel_16_added;
unsigned short int Channel_16_new;
unsigned short int Channel_16_out;
//variables for light sequencer
extern double bsChannel_1_difference;
extern double bsChannel_1_increment;
extern double bsChannel_1_added;
extern unsigned short int bsChannel_1_new;
extern unsigned short int bsChannel_1_out;
extern double bsChannel_2_difference;
extern double bsChannel_2_increment;
extern double bsChannel_2_added;
extern unsigned short int bsChannel_2_new;
extern unsigned short int bsChannel_2_out;
extern double bsChannel_3_difference;
extern double bsChannel_3_increment;
extern double bsChannel_3_added;
extern unsigned short int bsChannel_3_new;
extern unsigned short int bsChannel_3_out;
extern double bsChannel_4_difference;
extern double bsChannel_4_increment;
extern double bsChannel_4_added;
extern unsigned short int bsChannel_4_new;
extern unsigned short int bsChannel_4_out;
extern double bsChannel_5_difference;
extern double bsChannel_5_increment;
extern double bsChannel_5_added;
extern unsigned short int bsChannel_5_new;
extern unsigned short int bsChannel_5_out;
extern double bsChannel_6_difference;
extern double bsChannel_6_increment;
extern double bsChannel_6_added;
extern unsigned short int bsChannel_6_new;
extern unsigned short int bsChannel_6_out;
extern double bsChannel_7_difference;
extern double bsChannel_7_increment;
extern double bsChannel_7_added;
extern unsigned short int bsChannel_7_new;
extern unsigned short int bsChannel_7_out;
extern double bsChannel_8_difference;
extern double bsChannel_8_increment;
extern double bsChannel_8_added;
extern unsigned short int bsChannel_8_new;
extern unsigned short int bsChannel_8_out;
extern double bsChannel_9_difference;
extern double bsChannel_9_increment;
extern double bsChannel_9_added;
extern unsigned short int bsChannel_9_new;
extern unsigned short int bsChannel_9_out;
extern double bsChannel_10_difference;
extern double bsChannel_10_increment;
extern double bsChannel_10_added;
extern unsigned short int bsChannel_10_new;
extern unsigned short int bsChannel_10_out;
extern double bsChannel_11_difference;
extern double bsChannel_11_increment;
extern double bsChannel_11_added;
extern unsigned short int bsChannel_11_new;
extern unsigned short int bsChannel_11_out;
extern double bsChannel_12_difference;
extern double bsChannel_12_increment;
extern double bsChannel_12_added;
extern unsigned short int bsChannel_12_new;
extern unsigned short int bsChannel_12_out;
extern double bsChannel_13_difference;
extern double bsChannel_13_increment;
extern double bsChannel_13_added;
extern unsigned short int bsChannel_13_new;
extern unsigned short int bsChannel_13_out;
extern double bsChannel_14_difference;
extern double bsChannel_14_increment;
extern double bsChannel_14_added;
extern unsigned short int bsChannel_14_new;
extern unsigned short int bsChannel_14_out;
extern double bsChannel_15_difference;
extern double bsChannel_15_increment;
extern double bsChannel_15_added;
extern unsigned short int bsChannel_15_new;
extern unsigned short int bsChannel_15_out;
extern double bsChannel_16_difference;
extern double bsChannel_16_increment;
extern double bsChannel_16_added;
extern unsigned short int bsChannel_16_new;
extern unsigned short int bsChannel_16_out;
//variables for light scripts
extern double lsChannel_1_difference;
extern double lsChannel_1_increment;
extern double lsChannel_1_added;
extern unsigned short int lsChannel_1_new;
extern unsigned short int lsChannel_1_out;
extern double lsChannel_2_difference;
extern double lsChannel_2_increment;
extern double lsChannel_2_added;
extern unsigned short int lsChannel_2_new;
extern unsigned short int lsChannel_2_out;
extern double lsChannel_3_difference;
extern double lsChannel_3_increment;
extern double lsChannel_3_added;
extern unsigned short int lsChannel_3_new;
extern unsigned short int lsChannel_3_out;
extern double lsChannel_4_difference;
extern double lsChannel_4_increment;
extern double lsChannel_4_added;
extern unsigned short int lsChannel_4_new;
extern unsigned short int lsChannel_4_out;
extern double lsChannel_5_difference;
extern double lsChannel_5_increment;
extern double lsChannel_5_added;
extern unsigned short int lsChannel_5_new;
extern unsigned short int lsChannel_5_out;
extern double lsChannel_6_difference;
extern double lsChannel_6_increment;
extern double lsChannel_6_added;
extern unsigned short int lsChannel_6_new;
extern unsigned short int lsChannel_6_out;
extern double lsChannel_7_difference;
extern double lsChannel_7_increment;
extern double lsChannel_7_added;
extern unsigned short int lsChannel_7_new;
extern unsigned short int lsChannel_7_out;
extern double lsChannel_8_difference;
extern double lsChannel_8_increment;
extern double lsChannel_8_added;
extern unsigned short int lsChannel_8_new;
extern unsigned short int lsChannel_8_out;
extern double lsChannel_9_difference;
extern double lsChannel_9_increment;
extern double lsChannel_9_added;
extern unsigned short int lsChannel_9_new;
extern unsigned short int lsChannel_9_out;
extern double lsChannel_10_difference;
extern double lsChannel_10_increment;
extern double lsChannel_10_added;
extern unsigned short int lsChannel_10_new;
extern unsigned short int lsChannel_10_out;
extern double lsChannel_11_difference;
extern double lsChannel_11_increment;
extern double lsChannel_11_added;
extern unsigned short int lsChannel_11_new;
extern unsigned short int lsChannel_11_out;
extern double lsChannel_12_difference;
extern double lsChannel_12_increment;
extern double lsChannel_12_added;
extern unsigned short int lsChannel_12_new;
extern unsigned short int lsChannel_12_out;
extern double lsChannel_13_difference;
extern double lsChannel_13_increment;
extern double lsChannel_13_added;
extern unsigned short int lsChannel_13_new;
extern unsigned short int lsChannel_13_out;
extern double lsChannel_14_difference;
extern double lsChannel_14_increment;
extern double lsChannel_14_added;
extern unsigned short int lsChannel_14_new;
extern unsigned short int lsChannel_14_out;
extern double lsChannel_15_difference;
extern double lsChannel_15_increment;
extern double lsChannel_15_added;
extern unsigned short int lsChannel_15_new;
extern unsigned short int lsChannel_15_out;
extern double lsChannel_16_difference;
extern double lsChannel_16_increment;
extern double lsChannel_16_added;
extern unsigned short int lsChannel_16_new;
extern unsigned short int lsChannel_16_out;
//output variables for alarm clock
unsigned short int Channel_1_alarm;
unsigned short int Channel_2_alarm;
unsigned short int Channel_3_alarm;
unsigned short int Channel_4_alarm;
unsigned short int Channel_5_alarm;
unsigned short int Channel_6_alarm;
unsigned short int Channel_7_alarm;
unsigned short int Channel_8_alarm;
unsigned short int Channel_9_alarm;
unsigned short int Channel_10_alarm;
unsigned short int Channel_11_alarm;
unsigned short int Channel_12_alarm;
unsigned short int Channel_13_alarm;
unsigned short int Channel_14_alarm;
unsigned short int Channel_15_alarm;
unsigned short int Channel_16_alarm;
//output variables for timer
extern unsigned short int Channel_1_timer;
extern unsigned short int Channel_2_timer;
extern unsigned short int Channel_3_timer;
extern unsigned short int Channel_4_timer;
extern unsigned short int Channel_5_timer;
extern unsigned short int Channel_6_timer;
extern unsigned short int Channel_7_timer;
extern unsigned short int Channel_8_timer;
extern unsigned short int Channel_9_timer;
extern unsigned short int Channel_10_timer;
extern unsigned short int Channel_11_timer;
extern unsigned short int Channel_12_timer;
extern unsigned short int Channel_13_timer;
extern unsigned short int Channel_14_timer;
extern unsigned short int Channel_15_timer;
extern unsigned short int Channel_16_timer;
BEGIN_EVENT_TABLE(gui10Frame,wxFrame)
//(*EventTable(gui10Frame)
//*)
END_EVENT_TABLE()
gui10Frame::gui10Frame(wxWindow* parent,wxWindowID id)
{
/*SingleInstanceChecker1.Create(wxTheApp->GetAppName() + _T("_") + wxGetUserId() + _T("_Guard"));
if (SingleInstanceChecker1.IsAnotherRunning()){
wxMessageBox (wxT("Only one instance of Lightput is allowed to run at a time. Please close any instances of Lightput that are currently open before opening Lightput."),wxT("Error"));
Destroy();
}
*/
//size 430 4 channel - 840 16 channel mode
//SetClientSize(wxSize(445,568));
//SetMinSize(wxSize(445,568));
// SetMaxSize(wxSize(445,568));
//(*Initialize(gui10Frame)
wxMenuItem* MenuItem2;
wxMenuItem* MenuItem1;
wxMenu* Menu1;
wxMenuItem* MenuItem5;
wxMenuBar* MenuBar1;
wxMenu* Menu2;
Create(parent, wxID_ANY, _("Lightput 1.0 (with VSXu audio visualizer)"), wxDefaultPosition, wxDefaultSize, wxCAPTION|wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL, _T("wxID_ANY"));
SetClientSize(wxSize(843,524));
Move(wxPoint(50,50));
SetMaxSize(wxSize(840,568));
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENU));
{
wxIcon FrameIcon;
FrameIcon.CopyFromBitmap(wxBitmap(wxImage(_T("graphics/Lightput.ico"))));
SetIcon(FrameIcon);
}
StaticBox1 = new wxStaticBox(this, ID_STATICBOX1, wxEmptyString, wxPoint(16,0), wxSize(288,60), 0, _T("ID_STATICBOX1"));
ListBox1 = new wxListBox(this, ID_LISTBOX1, wxPoint(16,72), wxSize(352,128), 0, 0, 0, wxDefaultValidator, _T("ID_LISTBOX1"));
ListBox1->SetFocus();
Button4 = new wxButton(this, ID_BUTTON4, _("Connect"), wxPoint(320,8), wxSize(96,48), 0, wxDefaultValidator, _T("ID_BUTTON4"));
wxFont Button4Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button4->SetFont(Button4Font);
Button8 = new wxButton(this, ID_BUTTON8, _("Move\nUp"), wxPoint(368,72), wxSize(48,64), 0, wxDefaultValidator, _T("ID_BUTTON8"));
wxFont Button8Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button8->SetFont(Button8Font);
Button7 = new wxButton(this, ID_BUTTON7, _("Move\nDown"), wxPoint(368,136), wxSize(48,64), 0, wxDefaultValidator, _T("ID_BUTTON7"));
wxFont Button7Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button7->SetFont(Button7Font);
Button2 = new wxButton(this, ID_BUTTON2, _("Light Programs"), wxPoint(24,216), wxSize(120,24), 0, wxDefaultValidator, _T("ID_BUTTON2"));
wxFont Button2Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button2->SetFont(Button2Font);
Button6 = new wxButton(this, ID_BUTTON6, _("Delete Profile"), wxPoint(160,216), wxSize(120,23), 0, wxDefaultValidator, _T("ID_BUTTON6"));
wxFont Button6Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button6->SetFont(Button6Font);
Button1 = new wxButton(this, ID_BUTTON1, _("Save Profile Set"), wxPoint(296,216), wxSize(120,23), 0, wxDefaultValidator, _T("ID_BUTTON1"));
wxFont Button1Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button1->SetFont(Button1Font);
Button9 = new wxButton(this, ID_BUTTON9, _("New Profile"), wxPoint(24,248), wxSize(120,23), 0, wxDefaultValidator, _T("ID_BUTTON9"));
wxFont Button9Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button9->SetFont(Button9Font);
Button9->SetHelpText(_("Adds a new profile containing current DMX values"));
Button11 = new wxButton(this, ID_BUTTON11, _("Rename Profile"), wxPoint(160,248), wxSize(120,23), 0, wxDefaultValidator, _T("ID_BUTTON11"));
wxFont Button11Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button11->SetFont(Button11Font);
Button3 = new wxButton(this, ID_BUTTON3, _("Change Profiles"), wxPoint(296,248), wxSize(120,23), 0, wxDefaultValidator, _T("ID_BUTTON3"));
wxFont Button3Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button3->SetFont(Button3Font);
Button12 = new wxButton(this, ID_BUTTON12, _("Options"), wxPoint(32,464), wxSize(120,29), 0, wxDefaultValidator, _T("ID_BUTTON12"));
wxFont Button12Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button12->SetFont(Button12Font);
Button5 = new wxButton(this, ID_BUTTON5, _("Switch to 16-Channel DMX Mode"), wxPoint(184,464), wxSize(232,31), 0, wxDefaultValidator, _T("ID_BUTTON5"));
wxFont Button5Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
Button5->SetFont(Button5Font);
Slider1 = new wxSlider(this, ID_SLIDER1, 0, 0, 255, wxPoint(104,288), wxSize(272,24), 0, wxDefaultValidator, _T("ID_SLIDER1"));
Slider2 = new wxSlider(this, ID_SLIDER2, 0, 0, 255, wxPoint(104,328), wxSize(272,24), 0, wxDefaultValidator, _T("ID_SLIDER2"));
Slider3 = new wxSlider(this, ID_SLIDER3, 0, 0, 255, wxPoint(104,368), wxSize(272,24), 0, wxDefaultValidator, _T("ID_SLIDER3"));
Slider4 = new wxSlider(this, ID_SLIDER4, 0, 0, 255, wxPoint(104,408), wxSize(272,24), 0, wxDefaultValidator, _T("ID_SLIDER4"));
Slider5 = new wxSlider(this, ID_SLIDER5, 0, 0, 255, wxPoint(568,16), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER5"));
Slider6 = new wxSlider(this, ID_SLIDER6, 0, 0, 255, wxPoint(568,56), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER6"));
Slider7 = new wxSlider(this, ID_SLIDER7, 0, 0, 255, wxPoint(568,96), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER7"));
Slider8 = new wxSlider(this, ID_SLIDER8, 0, 0, 255, wxPoint(568,136), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER8"));
Slider9 = new wxSlider(this, ID_SLIDER9, 0, 0, 255, wxPoint(568,176), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER9"));
Slider10 = new wxSlider(this, ID_SLIDER10, 0, 0, 255, wxPoint(568,216), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER10"));
Slider11 = new wxSlider(this, ID_SLIDER11, 0, 0, 255, wxPoint(568,256), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER11"));
Slider12 = new wxSlider(this, ID_SLIDER12, 0, 0, 255, wxPoint(568,296), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER12"));
Slider13 = new wxSlider(this, ID_SLIDER13, 0, 0, 255, wxPoint(568,336), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER13"));
Slider14 = new wxSlider(this, ID_SLIDER14, 0, 0, 255, wxPoint(568,376), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER14"));
Slider15 = new wxSlider(this, ID_SLIDER15, 0, 0, 255, wxPoint(568,416), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER15"));
Slider16 = new wxSlider(this, ID_SLIDER16, 0, 0, 255, wxPoint(568,456), wxSize(216,24), 0, wxDefaultValidator, _T("ID_SLIDER16"));
StaticText2 = new wxStaticText(this, ID_STATICTEXT2, _("Channel 1"), wxPoint(32,288), wxDefaultSize, 0, _T("ID_STATICTEXT2"));
StaticText4 = new wxStaticText(this, ID_STATICTEXT4, _("Channel 4"), wxPoint(32,408), wxDefaultSize, 0, _T("ID_STATICTEXT4"));
StaticText3 = new wxStaticText(this, ID_STATICTEXT3, _("Channel 3"), wxPoint(32,368), wxDefaultSize, 0, _T("ID_STATICTEXT3"));
StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("Channel 2"), wxPoint(32,328), wxDefaultSize, 0, _T("ID_STATICTEXT1"));
StaticText5 = new wxStaticText(this, ID_STATICTEXT5, _("Label"), wxPoint(392,288), wxDefaultSize, 0, _T("ID_STATICTEXT5"));
StaticText6 = new wxStaticText(this, ID_STATICTEXT6, _("Label"), wxPoint(392,328), wxDefaultSize, 0, _T("ID_STATICTEXT6"));
StaticText7 = new wxStaticText(this, ID_STATICTEXT7, _("Label"), wxPoint(392,368), wxDefaultSize, 0, _T("ID_STATICTEXT7"));
StaticText8 = new wxStaticText(this, ID_STATICTEXT8, _("Label"), wxPoint(392,408), wxDefaultSize, 0, _T("ID_STATICTEXT8"));
StaticText9 = new wxStaticText(this, ID_STATICTEXT9, _("Status:"), wxPoint(32,20), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_STATICTEXT9"));
wxFont StaticText9Font(9,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
StaticText9->SetFont(StaticText9Font);
StaticText10 = new wxStaticText(this, ID_STATICTEXT10, _("Label"), wxPoint(80,20), wxSize(210,17), wxTAB_TRAVERSAL, _T("ID_STATICTEXT10"));
StaticText10->SetForegroundColour(wxColour(0,0,0));
wxFont StaticText10Font(9,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
StaticText10->SetFont(StaticText10Font);
StaticText12 = new wxStaticText(this, ID_STATICTEXT12, _("Channel 5"), wxPoint(488,16), wxDefaultSize, 0, _T("ID_STATICTEXT12"));
StaticText17 = new wxStaticText(this, ID_STATICTEXT17, _("Channel 10"), wxPoint(488,216), wxDefaultSize, 0, _T("ID_STATICTEXT17"));
StaticText18 = new wxStaticText(this, ID_STATICTEXT18, _("Channel 11"), wxPoint(488,256), wxDefaultSize, 0, _T("ID_STATICTEXT18"));
StaticText22 = new wxStaticText(this, ID_STATICTEXT22, _("Channel 16"), wxPoint(488,456), wxDefaultSize, 0, _T("ID_STATICTEXT22"));
StaticText21 = new wxStaticText(this, ID_STATICTEXT21, _("Channel 15"), wxPoint(488,416), wxDefaultSize, 0, _T("ID_STATICTEXT21"));
StaticText20 = new wxStaticText(this, ID_STATICTEXT20, _("Channel 14"), wxPoint(488,376), wxDefaultSize, 0, _T("ID_STATICTEXT20"));
StaticText19 = new wxStaticText(this, ID_STATICTEXT19, _("Channel 13"), wxPoint(488,336), wxDefaultSize, 0, _T("ID_STATICTEXT19"));
StaticText16 = new wxStaticText(this, ID_STATICTEXT16, _("Channel 12"), wxPoint(488,296), wxDefaultSize, 0, _T("ID_STATICTEXT16"));
StaticText15 = new wxStaticText(this, ID_STATICTEXT15, _("Channel 9"), wxPoint(488,176), wxDefaultSize, 0, _T("ID_STATICTEXT15"));
StaticText14 = new wxStaticText(this, ID_STATICTEXT14, _("Channel 8"), wxPoint(488,136), wxDefaultSize, 0, _T("ID_STATICTEXT14"));
StaticText13 = new wxStaticText(this, ID_STATICTEXT13, _("Channel 7"), wxPoint(488,96), wxDefaultSize, 0, _T("ID_STATICTEXT13"));
StaticText11 = new wxStaticText(this, ID_STATICTEXT11, _("Channel 6"), wxPoint(488,56), wxDefaultSize, 0, _T("ID_STATICTEXT11"));
StaticText23 = new wxStaticText(this, ID_STATICTEXT23, _("Label"), wxPoint(800,16), wxDefaultSize, 0, _T("ID_STATICTEXT23"));
StaticText24 = new wxStaticText(this, ID_STATICTEXT24, _("Label"), wxPoint(800,56), wxDefaultSize, 0, _T("ID_STATICTEXT24"));
StaticText25 = new wxStaticText(this, ID_STATICTEXT25, _("Label"), wxPoint(800,96), wxDefaultSize, 0, _T("ID_STATICTEXT25"));
StaticText26 = new wxStaticText(this, ID_STATICTEXT26, _("Label"), wxPoint(800,136), wxDefaultSize, 0, _T("ID_STATICTEXT26"));
StaticText27 = new wxStaticText(this, ID_STATICTEXT27, _("Label"), wxPoint(800,176), wxDefaultSize, 0, _T("ID_STATICTEXT27"));
StaticText28 = new wxStaticText(this, ID_STATICTEXT28, _("Label"), wxPoint(800,216), wxDefaultSize, 0, _T("ID_STATICTEXT28"));
StaticText29 = new wxStaticText(this, ID_STATICTEXT29, _("Label"), wxPoint(800,256), wxDefaultSize, 0, _T("ID_STATICTEXT29"));
StaticText30 = new wxStaticText(this, ID_STATICTEXT30, _("Label"), wxPoint(800,296), wxDefaultSize, 0, _T("ID_STATICTEXT30"));
StaticText31 = new wxStaticText(this, ID_STATICTEXT31, _("Label"), wxPoint(800,336), wxDefaultSize, 0, _T("ID_STATICTEXT31"));
StaticText32 = new wxStaticText(this, ID_STATICTEXT32, _("Label"), wxPoint(800,376), wxDefaultSize, 0, _T("ID_STATICTEXT32"));
StaticText33 = new wxStaticText(this, ID_STATICTEXT33, _("Label"), wxPoint(800,416), wxDefaultSize, 0, _T("ID_STATICTEXT33"));
StaticText34 = new wxStaticText(this, ID_STATICTEXT34, _("Label"), wxPoint(800,456), wxDefaultSize, 0, _T("ID_STATICTEXT34"));
StaticText35 = new wxStaticText(this, ID_STATICTEXT35, _("Profile Set:"), wxPoint(32,36), wxSize(96,20), wxTAB_TRAVERSAL, _T("ID_STATICTEXT35"));
wxFont StaticText35Font(9,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
StaticText35->SetFont(StaticText35Font);
StaticText36 = new wxStaticText(this, ID_STATICTEXT36, _("Label"), wxPoint(100,36), wxSize(184,13), wxTAB_TRAVERSAL, _T("ID_STATICTEXT36"));
wxFont StaticText36Font(9,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
StaticText36->SetFont(StaticText36Font);
MenuBar1 = new wxMenuBar();
Menu1 = new wxMenu();
MenuItem4 = new wxMenuItem(Menu1, ID_MENUITEM2, _("Light Programs"), _("Open up Lightput\'s Light Program Sub-Menu"), wxITEM_NORMAL);
Menu1->Append(MenuItem4);
MenuItem3 = new wxMenuItem(Menu1, ID_MENUITEM1, _("Options"), _("Change Lightput options"), wxITEM_NORMAL);
Menu1->Append(MenuItem3);
Menu1->AppendSeparator();
MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
Menu1->Append(MenuItem1);
MenuBar1->Append(Menu1, _("&File"));
Menu2 = new wxMenu();
MenuItem5 = new wxMenuItem(Menu2, idMenuHelp, _("Help\tF1"), wxEmptyString, wxITEM_NORMAL);
Menu2->Append(MenuItem5);
MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About"), _("Show info about this application"), wxITEM_NORMAL);
Menu2->Append(MenuItem2);
MenuBar1->Append(Menu2, _("Help"));
SetMenuBar(MenuBar1);
Timer1.SetOwner(this, ID_TIMER1);
Connect(ID_LISTBOX1,wxEVT_COMMAND_LISTBOX_SELECTED,(wxObjectEventFunction)&gui10Frame::OnListBox1Select);
Connect(ID_BUTTON4,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton4Click);
Connect(ID_BUTTON8,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton8Click);
Connect(ID_BUTTON7,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton7Click);
Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton2Click2);
Connect(ID_BUTTON6,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton6Click);
Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton1Click2);
Connect(ID_BUTTON9,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton1Click1);
Connect(ID_BUTTON11,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton11Click1);
Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton3Click);
Connect(ID_BUTTON12,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton12Click2);
Connect(ID_BUTTON5,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&gui10Frame::OnButton5Click);
Connect(ID_SLIDER1,wxEVT_SCROLL_TOP|wxEVT_SCROLL_BOTTOM|wxEVT_SCROLL_LINEUP|wxEVT_SCROLL_LINEDOWN|wxEVT_SCROLL_PAGEUP|wxEVT_SCROLL_PAGEDOWN|wxEVT_SCROLL_THUMBTRACK|wxEVT_SCROLL_THUMBRELEASE|wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider1CmdScroll1);
Connect(ID_SLIDER1,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider1CmdScroll);
Connect(ID_SLIDER1,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider1CmdScroll);
Connect(ID_SLIDER2,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider2CmdScroll);
Connect(ID_SLIDER2,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider2CmdScroll);
Connect(ID_SLIDER3,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider3CmdScroll);
Connect(ID_SLIDER3,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider3CmdScroll);
Connect(ID_SLIDER4,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider4CmdScroll);
Connect(ID_SLIDER4,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider4CmdScroll);
Connect(ID_SLIDER5,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider5CmdScroll);
Connect(ID_SLIDER5,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider5CmdScroll);
Connect(ID_SLIDER6,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider6CmdScroll);
Connect(ID_SLIDER6,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider6CmdScroll);
Connect(ID_SLIDER7,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider7CmdScroll);
Connect(ID_SLIDER7,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider7CmdScroll);
Connect(ID_SLIDER8,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider8CmdScroll);
Connect(ID_SLIDER8,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider8CmdScroll);
Connect(ID_SLIDER9,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider9CmdScroll);
Connect(ID_SLIDER9,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider9CmdScroll);
Connect(ID_SLIDER10,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider10CmdScroll);
Connect(ID_SLIDER10,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider10CmdScroll);
Connect(ID_SLIDER11,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider11CmdScroll);
Connect(ID_SLIDER11,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider11CmdScroll);
Connect(ID_SLIDER12,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider12CmdScroll);
Connect(ID_SLIDER12,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider12CmdScroll);
Connect(ID_SLIDER13,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider13CmdScroll);
Connect(ID_SLIDER13,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider13CmdScroll);
Connect(ID_SLIDER14,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider14CmdScroll);
Connect(ID_SLIDER14,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider14CmdScroll);
Connect(ID_SLIDER15,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider15CmdScroll);
Connect(ID_SLIDER15,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider15CmdScroll);
Connect(ID_SLIDER16,wxEVT_SCROLL_CHANGED,(wxObjectEventFunction)&gui10Frame::OnSlider16CmdScroll);
Connect(ID_SLIDER16,wxEVT_COMMAND_SLIDER_UPDATED,(wxObjectEventFunction)&gui10Frame::OnSlider16CmdScroll);
Connect(ID_MENUITEM2,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&gui10Frame::OnMenuItem4Selected);
Connect(ID_MENUITEM1,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&gui10Frame::OnMENUITEM1);
Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&gui10Frame::OnQuit);
Connect(idMenuHelp,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&gui10Frame::OnHelp);
Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&gui10Frame::OnAbout);
Connect(ID_TIMER1,wxEVT_TIMER,(wxObjectEventFunction)&gui10Frame::OnTimer1Trigger);
Connect(wxID_ANY,wxEVT_CLOSE_WINDOW,(wxObjectEventFunction)&gui10Frame::OnClose);
//*)
//initialize stuff
isconnected = false;
isconnectionattempt = true;
isactive = false;
isselectionchange = true;
isloading = true;
isnamevariable = false;
issavefirst = false;
isexporting = false;
isnewblankprofile = false;
issaveonquit = false;
iscancelquit = false;
isfirstruninitialize = true;
is24hmode = false;
isMidiControlmode = false;
isIconize = false;