-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathicc_betrachter.fl
1197 lines (1072 loc) · 34.4 KB
/
icc_betrachter.fl
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
# data file for the Fltk User Interface Designer (fluid)
version 1.0300
i18n_type 1
i18n_include <fl_i18n/fl_i18n.H>
i18n_function _
header_name {.h}
code_name {.cxx}
decl {\#include "icc_examin.h"} {public local
}
decl {\#include "icc_profile.h"
\#include "config.h"
\#include "icc_utils.h"
\#include "icc_ueber.h"
\#include "icc_helfer.h"
\#include "icc_helfer_fltk.h"} {public local
}
decl {\#include <cassert>} {public local
}
decl {\#include <iostream>} {public local
}
decl {//\#include <sstream>} {public local
}
decl {\#include <stdio.h>} {public local
}
decl {\#include <string>} {public local
}
decl {\#include <FL/Fl.H>} {public local
}
decl {\#include <FL/Fl_Window.H>} {public local
}
decl {\#include <FL/Fl_Menu_Bar.H>} {public local
}
decl {\#include <FL/Fl_Box.H>} {public local
}
decl {\#include "Flmm_Message.H"} {private local
}
decl {\#include "Flmm_Tabs.H"} {public local
}
decl {\#include "Oy_Fl_Group.h"} {public local
}
decl {\#include "icc_gl.h"} {private local
}
decl {\#include "icc_draw.h"
\#include "icc_kette.h"
\#include "icc_oyranos_extern.h"
\#include "fl_i18n/fl_i18n.H"} {private local
}
decl {\#include "icc_fenster.h"
\#include "icc_dateiwahl.h"
\#include <FL/Fl_Hold_Browser.H>
\#include <FL/Fl_Choice.H>} {public local
}
decl {class TagDrawings;
class TagBrowser;
class TagTexts;
class TableChoice;
class GL_View;} {public local
}
decl {using namespace icc_examin_ns;} {private local
}
Function {iccReadInfo(char* filename)} {return_type {const char*}
} {
code DBG_PROG_START {}
code {char systemBefehl[1024];
const char *textfile = "/tmp/icc_temp.txt";
sprintf (systemBefehl, "iccdump \\"%s\\" > %s",
filename, textfile);
int ret = system (systemBefehl);
if(ret) ret = 0;
return textfile;} {}
code DBG_PROG_ENDE {}
}
class TagBrowser {open : {public Fl_Hold_Browser}
} {
decl {int X; int Y; int W; int H; const char* start_info; std::string selectedTagName;} {public local
}
Function {TagBrowser(int X,int Y,int W,int H,const char* start_info) : Fl_Hold_Browser(X,Y,W,H,start_info), X(X), Y(Y), W(W), H(H)} {open
} {
code {} {}
}
Function {TagBrowser(int X,int Y,int W,int H) : Fl_Hold_Browser(X,Y,W,H), X(X), Y(Y), W(W), H(H)} {open
} {
code {} {}
}
Function {reopen_nicht()} {open
} {
code DBG_PROG_START {}
code {} {}
code DBG_PROG_ENDE {}
}
Function {selectItem(int item)} {open
} {
code DBG_PROG_START {}
code {// selection from tag_browser
status("")
item -= 6;
DBG_PROG_S( item << ". Tag " )
std::string text = icc_examin->selectTag(item);
if (text != "")
selectedTagName = text;
DBG_PROG_V( text );} {}
code DBG_PROG_ENDE {}
}
Function {visible()} {return_type int
} {
code {return Fl_Widget::visible();} {}
}
}
decl {typedef const char* (*tagTextsCB_f)(int * line);} {public local
}
class TagTexts {: {public Fl_Hold_Browser}
} {
decl {int X; int Y; int W; int H; const char* start_info;} {private local
}
decl {int inspekt_topline;} {public local
}
Function {TagTexts(int X,int Y,int W,int H,const char* start_info) : Fl_Hold_Browser(X,Y,W,H,start_info), X(X), Y(Y), W(W), H(H)} {open
} {
code {cb = NULL;} {}
}
Function {TagTexts(int X,int Y,int W,int H) : Fl_Hold_Browser(X,Y,W,H), X(X), Y(Y), W(W), H(H)} {open
} {
code {cb = NULL;} {}
}
Function {hinein(std::string text, ICClist<int> patches)} {open
} {
code DBG_PROG_START {}
code {//show text from tag_browser
inspekt_topline = this->topline();
this->clear();
ICClist <std::string> texte = icc_parser::zeilenNachVector( text );
int odd = 1;
unsigned k = 0;
for (unsigned int i = 0; i < texte.size(); i++)
{
std::string text;
if( patches.size() > k )
if( patches[k] == (int)i )
{
if(odd) {
\#if 0
char t[8];
sprintf(t, "%d", k/2); // test for a goof colour @31
text = "@B";
text.append( t );
text.append("@.");
\#else
text = "@B7@.";
\#endif
}
odd = !odd;
++k;
}
text.append( texte[i] );
this->add( text.c_str(), 0);
}
this->topline(inspekt_topline);
this->textfont(FL_COURIER);
this->textsize(14*scale);} {}
code DBG_PROG_ENDE {}
}
Function {hinein(std::string text)} {open
} {
code DBG_PROG_START {}
code {ICClist<int> patches;
this->hinein( text, patches );} {}
code DBG_PROG_ENDE {}
}
decl {tagTextsCB_f cb;} {public local
}
Function {selectItem(int item)} {open
} {
code DBG_PROG_START {}
code {// selection from tag_browser
int i = item;
status("")
DBG_PROG_S( item << ". Tag " )
if (cb)
(*cb) ( &i );
if(i != item)
select(i);} {}
code DBG_PROG_ENDE {}
}
}
decl {\#include <FL/fl_draw.H>} {private local
}
class TableChoice {open : {public Fl_Choice}
} {
decl {int X; int Y; int W; int H; const char* start_info; char type[5];} {private local
}
decl {ICClist<std::string> Info; int gewaehlter_eintrag;} {public local
}
Function {TableChoice(int X,int Y,int W,int H,const char* start_info) : Fl_Choice(X,Y,W,H,start_info), X(X), Y(Y), W(W), H(H)} {open
} {
code {gewaehlter_eintrag = 0;} {}
}
Function {profilTag(int _tag, std::string text)} {open
} {
code DBG_PROG_START {}
code {icc_examin->icc_betrachter->tag_nummer = _tag;
// = profile.profil()->printTagInfo(icc_examin->icc_betrachter->tag_nummer);
sprintf (&type[0], "%s", profile.profil()->printTagInfo(icc_examin->icc_betrachter->tag_nummer)[1].c_str());
DBG_PROG_V( profile.profil()->printTagInfo(icc_examin->icc_betrachter->tag_nummer)[1].c_str() )
Info = icc_parser::zeilenNachVector (text);
if ( strstr (type,"mft2") != 0 )
{ DBG_PROG
Fl_Menu_Item *mft_menue = (Fl_Menu_Item *)calloc (sizeof (Fl_Menu_Item), 6);
mft_menue[0].text = Info[0].c_str();
mft_menue[1].text = Info[4].c_str();
mft_menue[2].text = Info[5].c_str();
mft_menue[3].text = Info[6].c_str();
mft_menue[4].text = Info[7].c_str();
mft_menue[5].text = 0;
icc_examin->icc_betrachter->table_choice->menu(mft_menue);
} else
if ( strstr (type,"mft1") != 0 )
{
Fl_Menu_Item *mft_menue = (Fl_Menu_Item *)calloc (sizeof (Fl_Menu_Item), 6);
mft_menue[0].text = Info[0].c_str();
mft_menue[1].text = Info[4].c_str();
mft_menue[2].text = _("lineare entrance curve with 256 steps");
mft_menue[3].text = Info[5].c_str();
mft_menue[4].text = _("lineare exit curve with 256 steps");
mft_menue[5].text = 0;
icc_examin->icc_betrachter->table_choice->menu(mft_menue);
} else
{
int count = Info.size();
Fl_Menu_Item *table_menue = (Fl_Menu_Item *)calloc (sizeof (Fl_Menu_Item),
count+1);
for(int i = 0; i < count; ++i)
table_menue[i].text = Info[i].c_str();
table_menue[count].text = 0;
icc_examin->icc_betrachter->table_choice->menu(table_menue);
}
icc_examin->icc_betrachter->table_choice->value( gewaehlter_eintrag );
//auswahlCb();} {}
code DBG_PROG_ENDE {}
}
Function {auswahlCb(void)} {open
} {
code DBG_PROG_START {}
code {//Auswahl aus table_choice
status("")
Fl_Menu_* mw = (Fl_Menu_*)this;
const Fl_Menu_Item* m = mw->mvalue();
if (!m) {
DBG_PROG_S("NULL \\n")
} else if (m->shortcut()) {
DBG_PROG_S("%s - %s \\n" << m->label() << fl_shortcut_label(m->shortcut()))
} else {
DBG_PROG_S("%s \\n" << m->label())
}
icc_examin->selectTable( mw->value() );
DBG_PROG} {}
code DBG_PROG_ENDE {}
}
}
class My_Fl_Box {open : {public Fl_Box}
} {
Function {My_Fl_Box(int X,int Y,int W, int H, const char* title = 0) : Fl_Box(X,Y,W,H,title)} {open
} {
code {} {}
}
Function {handle( int event )} {open return_type int
} {
code {int ergebnis = 0;
DBG_NUM_S( dbgFltkEvent(event) << dndCommes() );
if(dndCommes())
ergebnis = Fl_Box::handle(event);
int erg = event_handler(event);
if(erg)
ergebnis = erg;
return ergebnis;} {selected
}
}
}
Function {table_gl_menueCb_(Fl_Widget * w, void * data)} {private
} {
code {icc_examin->icc_betrachter->table_gl->menuEvents( (intptr_t) data );} {}
}
class ICCfltkBetrachter {open
} {
decl {bool setTitleUrl;
int px,py,pw,ph;
int fullscreen;
int tag_nummer;
enum{ WID_0, WID_3D, WID_INSPEKT }; int widget_oben;} {public local
}
Function {init(int argc, char** argv)} {open
} {
code DBG_PROG_START {}
code {fullscreen = false;
setTitleUrl = true;
table_gl_tables_buttons = 0;
px=py=pw=ph=0;
tag_nummer = -1;
widget_oben = -1;} {}
Fl_Window ueber {
label {About ICC Examin} open
xywh {852 501 365*scale 295*scale} type Double resizable
code0 {o->hide();}
code1 {o->use_escape_hide = true;}
class {icc_examin_ns::MyFl_Double_Window} visible
} {
Fl_Group {} {open
xywh {0 0 375 295}
} {
Fl_Tabs {} {open
xywh {0 0 365 260} resizable
class Flmm_Tabs
} {
Fl_Help_View ueber_html {
label About
xywh {0 25 365 235} box THIN_UP_BOX color 49 selection_color 47 hide
}
Fl_Help_View hilfe_html {
label Help
xywh {0 25 365 235} box THIN_UP_BOX color 49 selection_color 47 hide
}
Fl_Help_View lizenz_html {
label License
xywh {0 25 365 235} box THIN_UP_BOX color 49 selection_color 47 hide resizable
}
Fl_Help_View dank_html {
label Acknowlegement
xywh {0 25 365 235} box THIN_UP_BOX color 49 selection_color 47 hide
}
Fl_Help_View info_html {
label Info
xywh {0 25 365 235} box THIN_UP_BOX color 49 selection_color 47
}
}
Fl_Button ja {
label Yes
callback {ueber->hide();}
xywh {130 264 110 25}
}
}
}
Fl_Window vcgt {
label {Grafic Card Gamma Table} open
xywh {436 391 370*scale 405*scale} type Double resizable
code0 {o->hide();}
code1 {o->use_escape_hide = true;}
class {icc_examin_ns::MyFl_Double_Window} visible
} {
Fl_Group {} {open
xywh {0 0 370 395}
} {
Fl_Box vcgt_viewer {
xywh {0 0 370 360} resizable
code0 {o->show();}
class TagDrawings
}
Fl_Button vcgt_set_button {
label Set
callback {icc_examin->moniSetzen();}
tooltip {Set the current profile as monitor profile and upload vcgt tag to the video card} xywh {10 370 85 25} hotspot
}
Fl_Button vcgt_reset_button {
label Reset
callback {icc_examin->standardGamma();}
tooltip {reset to standard gamma} xywh {95 370 90 25} hotspot
}
Fl_Button vcgt_load_button {
label Load
callback {icc_examin->moniHolen();}
tooltip {Load the current monitor profile} xywh {185 370 90 25} hotspot
}
Fl_Button vcgt_close_button {
label Close
callback {icc_examin->vcgtStoppen();}
xywh {275 370 90 25}
}
}
}
Fl_Window DD {
label Gamut open
xywh {1426 269 385 520} type Double box NO_BOX resizable
class {icc_examin_ns::MyFl_Double_Window} visible
} {
Fl_Group {} {open
xywh {0 0 385 520}
} {
Fl_Menu_Bar DD_menueleiste {open
xywh {0 0 385 25} align 20 when 3
} {
Submenu {} {
label File open
xywh {0 0 100 20}
} {
MenuItem menueintrag_gl_vrml_speichern {
label {Save as VRML}
callback {DBG_PROG_START
icc_examin->gamutSpeichern (icc_examin_ns::GL_VRML);
DBG_PROG_ENDE}
tooltip {Save scene as VRML useful for visualisation.} xywh {30 30 100 20} shortcut 0x40073
}
MenuItem {} {
label Quit
callback {quit()}
xywh {30 30 100 20} shortcut 0x40071
}
}
Submenu {} {
label View open
xywh {25 25 100 20}
} {
MenuItem DD_menueintrag_Voll {
label {Whole Screen on/off}
callback {Fl_Window *w = o->window();
if (!fullscreen) {
px = w->x();
py = w->y();
pw = w->w();
ph = w->h();
w->fullscreen();
fullscreen = true;
} else {
w->fullscreen_off(px,py,pw,ph);
fullscreen = false;
}}
xywh {25 25 100 20} shortcut 0x40076
}
}
Submenu {} {
label Settings open
xywh {35 35 100 20}
} {
MenuItem menueintrag_gamutwarn {
label {Gamut Warning}
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
icc_examin->gamutwarn(m->value());}
tooltip {Gamut Warning will gray out all colours not in your monitors gamut.} xywh {35 35 100 20} type Toggle shortcut 0x40077
code0 {if(icc_examin->gamutwarn()) o->set();}
}
MenuItem menueintrag_phot_intent {
label Perceptual
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
menueintrag_rel_col_intent->clear();
menueintrag_abs_col_intent->clear();
if(m->value())
icc_examin->intent(0,1);
else
icc_examin->intent(-1,1);}
tooltip {Enable Perceptual Intent} xywh {45 45 100 20} type Toggle shortcut 0x40066
}
MenuItem menueintrag_rel_col_intent {
label {Relative Colorimetric}
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
menueintrag_phot_intent->clear();
menueintrag_abs_col_intent->clear();
if(m->value())
icc_examin->intent(1,1);
else
icc_examin->intent(-1,1);}
tooltip {Enable Whitepoint Adaption; useful for gamut comparisions} xywh {55 55 100 20} type Toggle shortcut 0x40072
}
MenuItem menueintrag_abs_col_intent {
label {Absolute Colorimetric}
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
menueintrag_phot_intent->clear();
menueintrag_rel_col_intent->clear();
if(m->value())
icc_examin->intent(3,1);
else
icc_examin->intent(-1,1);}
tooltip {Enable Whitepoint Adaption; useful for gamut comparisions} xywh {65 65 100 20} type Toggle shortcut 0x40061
}
MenuItem menueintrag_bpc {
label BPC
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
if(m->value())
icc_examin->bpc(1);
else
icc_examin->bpc(0);}
tooltip {Black Point Compensation} xywh {65 65 100 20} type Toggle shortcut 0x40062
}
MenuItem menueintrag_nativeGamut {
label {Native Gamut}
callback {Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
if(m->value())
icc_examin->nativeGamut(1);
else
icc_examin->nativeGamut(0);}
tooltip {Native - or Separation Gamut} xywh {75 75 100 20} type Toggle shortcut 0x40062
code0 {if(icc_examin->nativeGamut()) o->set();}
}
}
Submenu {} {
label Windows open
xywh {0 0 100 20}
} {
MenuItem {} {
label {Show Main Window}
callback {DBG_PROG_START
details->show();
DBG_PROG_ENDE}
xywh {65 65 100 20} shortcut 0x4006d
}
MenuItem {} {
label Log
callback {log_show();
DBG_NUM_S("Show Log window")}
xywh {50 50 100 20} shortcut 0x4006c
}
}
}
Fl_Tile {} {open
xywh {0 25 385 495} resizable
} {
Fl_Box DD_farbraum {
xywh {0 25 385 470} box THIN_DOWN_BOX resizable
code0 {o->hide();}
code1 {o->type( 1 ); // wandert ins 1. Nebenfenster}
class GL_View
}
Fl_Group DD_box_stat_oy {open
xywh {0 495 385 25}
class Oy_Fl_Group
} {
Fl_Box DD_box_stat {
xywh {0 495 385 25} box FLAT_BOX align 21
}
}
}
}
Fl_Box no_box2 {
xywh {0 0 385 520}
code0 {o->box(FL_NO_BOX);}
class My_Fl_Box
}
}
Fl_Window details {
label {ICC Examin} open
xywh {686 151 385 520} type Double box NO_BOX
code0 {o->main_win = o;}
class {icc_examin_ns::MyFl_Double_Window} visible
} {
Fl_Group {} {open
xywh {0 0 385 520}
} {
Fl_Box {} {
label {invisible box}
xywh {0 0 385 520} box FLAT_BOX align 16
}
Fl_Menu_Bar menueleiste {
xywh {0 0 385 25} align 4 when 3
} {
Submenu {} {
label File open
xywh {15 15 100 20}
} {
MenuItem {} {
label Open
callback {icc_examin->oeffnen()}
xywh {15 15 100 20} shortcut 0x4006f
}
MenuItem menueintrag_html_speichern {
label {Save Report}
callback {DBG_PROG_START
icc_examin->berichtSpeichern ();
DBG_PROG_ENDE}
xywh {0 0 100 20} deactivate divider
}
MenuItem menueintrag_gamut_speichern {
label {Save Gamut as Profile}
callback {DBG_PROG_START
icc_examin->gamutSpeichern (icc_examin_ns::ICC_ABSTRACT);
DBG_PROG_ENDE}
tooltip {Save gamut as abstract profile useful for proofing} xywh {10 10 100 20} deactivate
}
MenuItem menueintrag_gamut_vrml_speichern {
label {Save Gamut as VRML}
callback {DBG_PROG_START
icc_examin->gamutSpeichern (icc_examin_ns::ICC_VRML);
DBG_PROG_ENDE}
tooltip {Save gamut as VRML useful for visualisation.} xywh {20 20 100 20} deactivate divider
}
MenuItem {} {
label Quit
callback {quit()}
xywh {15 15 100 20} shortcut 0x40071
}
}
MenuItem menueintrag_huelle {
label Gamut
callback {DBG_PROG_START
icc_examin->zeig3D();
DBG_PROG_ENDE}
xywh {60 60 100 20} shortcut 0x40068 hide
}
Submenu {} {
label View open
xywh {15 15 100 20}
} {
MenuItem menueintrag_Voll {
label {Whole Screen on/off}
callback {Fl_Window *w = (Fl_Window *)details;
if (!fullscreen) {
px = w->x();
py = w->y();
pw = w->w();
ph = w->h();
w->fullscreen();
fullscreen = true;
} else {
w->fullscreen_off(px,py,pw,ph);
fullscreen = false;
}}
xywh {15 15 100 20} shortcut 0x40076
}
}
Submenu menu_einstellungen {
label Settings open
xywh {25 25 100 20} hide
} {
MenuItem menueintrag_oyranos {
label {Oyranos Settings}
callback {icc_examin->oyranos_einstellungen();}
xywh {25 25 100 20}
}
MenuItem menueintrag_lang {
label LANG
callback {int ret = system("echo $LANG");
if(ret) ret = 0;
\# ifdef USE_GETTEXT
DBG_NUM_S( "domain : " << textdomain(NULL) );
DBG_NUM_S( "domain_path: " << bindtextdomain(NULL,NULL) );
\# endif}
tooltip {test LANG} xywh {80 80 100 20} hide deactivate
}
}
Submenu {} {
label Windows open
xywh {10 10 100 20} divider
} {
MenuItem menueintrag_3D {
label Gamut
callback {DBG_PROG_START
icc_examin->zeig3D();
DBG_PROG_ENDE}
xywh {55 55 100 20} shortcut 0x40068
}
MenuItem menueintrag_inspekt {
label {Report View}
callback {icc_examin->zeigPrueftabelle();}
xywh {45 45 100 20} shortcut 0x40062 deactivate
}
MenuItem menueintrag_zeigcgats {
label {CGATS View}
callback {\#ifdef DEBUG
Fl_Menu_* mw = (Fl_Menu_*)o;
const Fl_Menu_Item* m = mw->mvalue();
DBG_PROG_S (m->value())
\#endif
icc_examin->zeigCGATS();}
xywh {55 55 100 20} shortcut 0x40067 deactivate divider
}
MenuItem menueintrag_vcgt {
label {Videocard Gamma}
callback {icc_examin->vcgtStoppen();
vcgt->show();
icc_examin->vcgtZeigen();}
xywh {20 20 100 20} shortcut 0x40074
code0 {o->hide();}
}
MenuItem menueintrag_testkurven {
label {Test Curves}
callback {vcgt->show();
icc_examin->testZeigen();}
xywh {30 30 100 20} shortcut 0x50074 hide
}
MenuItem {} {
label Log
callback {log_show();
DBG_NUM_S("Show Log window")}
xywh {45 45 100 20} shortcut 0x4006c
}
}
Submenu menu_hilfe {
label Help open
xywh {0 0 100 20}
} {
MenuItem {} {
label About
callback {ueber->hotspot(ueber_html);
ueber->show();
initHilfe();
/* set visible */
Fl_Tabs *tb = dynamic_cast<Fl_Tabs*>(hilfe_html->parent());
if(tb)
tb->value(icc_examin->icc_betrachter->ueber_html);}
xywh {5 5 100 20}
}
MenuItem {} {
label Help
callback {ueber->hotspot(hilfe_html);
ueber->show();
initHilfe();
/* set visible */
Fl_Tabs *tb = dynamic_cast<Fl_Tabs*>(hilfe_html->parent());
if(tb)
tb->value(icc_examin->icc_betrachter->hilfe_html);}
xywh {15 15 100 20} shortcut 0xffbe
}
MenuItem {} {
label License
callback {ueber->hotspot(lizenz_html);
ueber->show();
initHilfe();
/* set visible */
Fl_Tabs *tb = dynamic_cast<Fl_Tabs*>(hilfe_html->parent());
if(tb)
tb->value(icc_examin->icc_betrachter->lizenz_html);}
xywh {25 25 100 20}
}
}
}
Fl_Group {} {open
xywh {0 25 385 470} align 4 resizable
} {
Fl_Group {} {open
xywh {0 25 385 470} align 4
} {
Fl_Help_View inspekt_html {
xywh {0 25 385 470} box FLAT_BOX color 49 align 4 resizable
code0 {o->hide();}
}
}
Fl_Tile examin {open
xywh {0 25 385 470} align 4 resizable
} {
Fl_Browser tag_browser {
callback {o->selectItem( o->value() );}
tooltip {Choose one profile tag} xywh {0 25 385 135} box THIN_DOWN_BOX color 49 align 4
class TagBrowser
}
Fl_Group ansichtsgruppe {open
xywh {0 160 385 335} align 4
} {
Fl_Group tabellengruppe {open
xywh {0 160 385 335} align 4
code0 {o->show();}
} {
Fl_Pack {} {open
xywh {0 160 385 335} align 4 resizable
} {
Fl_Choice table_choice {
label {Chain selection}
callback {o->auswahlCb();} open
tooltip {Choose a attribute} xywh {0 160 385 25} box NO_BOX down_box BORDER_BOX
code0 {o->show();}
class TableChoice
} {}
Fl_Group {} {open
xywh {0 185 385 310} align 4 resizable
} {
Fl_Box table_viewer {
xywh {0 185 385 310} align 4
code0 {o->show();}
class TagDrawings
}
Fl_Browser table_text {
callback {o->selectItem( o->value() );}
xywh {0 185 385 310} box FLAT_BOX color 49 align 4
code0 {o->show();}
class TagTexts
}
Fl_Group table_gl_group {open
xywh {0 185 385 310} align 4 resizable
} {
Fl_Box {} {
xywh {0 185 385 310} box FLAT_BOX align 4
}
Fl_Box table_gl {
xywh {0 185 360 310} align 4 resizable
code0 {o->hide();}
code1 {o->type( 2 ); // bleibt zumeist im Hauptfenster}
class GL_View
}
Fl_Pack table_gl_button_pack {open
xywh {360 185 25 310}
} {
Fl_Button table_gl_alltables_button {
label o
callback {icc_examin->showTables();}
tooltip {Show all channels of this table a own window.} xywh {360 185 25 25}
code0 {o->show();}
}
}
Fl_Pack table_gl_slider_pack {open
xywh {0 185 25 310}
} {
Fl_Choice table_gl_slider_choice {
callback {ICClist<int> channels = table_gl->channels();
table_gl_slider->value( channels[ 3 + o->value() ] );} open
xywh {0 185 25 25} down_box BORDER_BOX
} {}
Fl_Value_Slider table_gl_slider {
callback {icc_examin->tableChannel( (int)table_gl_slider_choice->value()+3, (int)table_gl_slider->value() );}
xywh {0 210 25 285} resizable
}
}
}
}
}
}
Fl_Pack twoD_pack {open
xywh {0 160 385 335} align 4
} {
Fl_Box {} {
xywh {0 160 385 5} box UP_BOX align 4
}
Fl_Group {} {open
xywh {0 165 385 330} align 4 resizable
} {
Fl_Browser tag_text {
callback {o->selectItem( o->value() );}
xywh {0 165 385 330} box FLAT_BOX color 49 align 4
code0 {o->show();}
class TagTexts
}
Fl_Box tag_viewer {
xywh {0 165 385 330} align 4
code0 {o->hide();}
class TagDrawings
}
}
}
}
}
}
Fl_Group {} {open
xywh {0 495 385 25} align 4
} {
Fl_Box box_stat {
label {...}
xywh {0 495 385 25} box THIN_DOWN_BOX align 20
}
Fl_Progress load_progress {
label {Loading ..}
xywh {0 495 385 25} box THIN_UP_BOX color 49
code0 {o->hide();}
code1 {o->minimum(0.0);}
code2 {o->maximum(1.0);}
}
}
}
Fl_Box no_box {
xywh {0 0 385 520} align 4
class My_Fl_Box
}
}
code {tag_text->inspekt_topline = 0;
details->resizable(tag_text);
//Fl::background(190,190,190);
//Fl::background(255,255,255);
//Fl::scheme(NULL);
Fl_Shared_Image::add_handler(iccImageCheck);
Fl_File_Icon::load_system_icons();
Fl::get_system_colors();
details->show();
{ // plastic sets a background image, for others unset a transparent box
// the background is not redrawn for new text
const char* style = Fl::scheme();
if(!style || (style && strstr(style,"plastic") == 0))
;//box_stat->box(FL_BORDER_BOX);
}
DBG_PROG} {}
code DBG_PROG_ENDE {}
}
Function {run(int argc, char** argv)} {open return_type int
} {
code DBG_PROG_START {}
code {int ret = Fl::run();
DBG_PROG_ENDE;
return ret;} {}
}
Function {open_veraltet(ICClist<std::string> dateinamen)} {open return_type {ICClist<std::string>}
} {
code DBG_PROG_START {}
code {\#include "icc_vrml.h"
//Fl_File_Icon *icon; // New file icon
DBG_PROG
const char* ptr = NULL;
if (dateinamen.size()) {
ptr = dateinamen[0].c_str();
dateiwahl()->value(ptr);