File: panels.fl

package info (click to toggle)
xdiskusage 1.48-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 208 kB
  • ctags: 131
  • sloc: cpp: 969; sh: 152; makefile: 60
file content (140 lines) | stat: -rw-r--r-- 3,722 bytes parent folder | download | duplicates (4)
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
# data file for the Fltk User Interface Designer (fluid)
version 1.0009 
header_name {.H} 
code_name {.C} 
gridx 5 
gridy 5 
snap 3
Function {make_diskchooser()} {open
} {
  Fl_Window disk_chooser {
    label {Disk Usage Display} open
    xywh {192 212 404 252} resizable visible
  } {
    Fl_Button {} {
      label reload
      callback reload_cb
      xywh {290 10 65 20}
    }
    Fl_Button {} {
      label {}
      callback copyright_cb
      xywh {365 10 25 20} labelsize 18
    }
    Fl_Browser disk_browser {
      label {Pick a disk:}
      callback disk_browser_cb
      xywh {15 30 375 150} type Hold align 5 resizable
      code0 {static int widths[] = {200,0};}
      code1 {o->column_widths(widths);}
    }
    Fl_Input disk_input {
      label {Or type pathname in and hit Enter:}
      callback disk_input_cb
      xywh {15 200 335 25} align 5 when 10
      code0 {o->value("/");}
    }
    Fl_Button {} {
      label browser
      callback {const char* c = fl_file_chooser("Directory:", 0, disk_input->value());
if (c) disk_input->value(c);}
      xywh {350 200 40 25} labelsize 8
      code0 {\#include <FL/Fl_File_Chooser.H>}
    }
    Fl_Check_Button {} {
      label {measure directories only}
      xywh {15 225 185 25} type Radio down_box DIAMOND_DOWN_BOX value 1
    }
    Fl_Check_Button all_files_button {
      label {measure all files} selected
      xywh {190 225 145 25} type Radio down_box DIAMOND_DOWN_BOX
    }
  }
} 

Function {make_wait_window()} {open
} {
  Fl_Window wait_window {open
    xywh {362 558 229 100} resizable hotspot modal visible
  } {
    Fl_Slider wait_slider {
      label {Reading disk:}
      xywh {10 25 205 25} type {Horz Fill} color 12 selection_color 47 align 5 resizable
      code0 {o->set_output();}
    }
    Fl_Button {} {
      label Cancel
      callback cancel_cb
      xywh {70 60 80 25} shortcut 0xff1b
    }
  }
} 

Function {make_print_panel()} {open
} {
  Fl_Window print_panel {
    label Print
    xywh {881 436 345 173} hotspot modal visible
  } {
    Fl_Box {} {
      label {Print to:}
      xywh {10 5 85 25} labelfont 1 labelsize 18 align 20
    }
    Fl_Light_Button {} {
      label printer
      xywh {10 35 75 25} type Radio value 1
    }
    Fl_Input print_command_input {
      xywh {85 35 250 25}
      code0 {o->value("lpr");}
    }
    Fl_Light_Button print_file_button {
      label file
      xywh {10 65 75 25} type Radio
    }
    Fl_Input print_file_input {
      xywh {85 65 215 25}
      code0 {o->value("xdiskusage.ps");}
    }
    Fl_Button {} {
      label browser
      callback {const char* c = fl_file_chooser("Print to:", "*.ps", print_file_input->value());
if (c) print_file_input->value(c);}
      xywh {300 65 36 25} labelsize 8
      code0 {\#include <FL/Fl_File_Chooser.H>}
    }
    Fl_Group {} {open
      xywh {10 90 325 35} align 4
    } {
      Fl_Check_Button print_portrait_button {
        label portrait
        xywh {10 90 80 25} type Radio down_box DIAMOND_DOWN_BOX value 1
      }
      Fl_Check_Button {} {
        label landscape
        xywh {90 90 100 25} type Radio down_box DIAMOND_DOWN_BOX
      }
    }
    Fl_Group {} {open
      xywh {10 110 330 45} align 4
    } {
      Fl_Check_Button fill_page_button {
        label {reshape to fill page}
        xywh {10 115 150 25} type Radio down_box DIAMOND_DOWN_BOX value 1
      }
      Fl_Check_Button {} {
        label {same shape as window}
        xywh {160 115 175 25} type Radio down_box DIAMOND_DOWN_BOX
      }
    }
    Fl_Return_Button print_ok_button {
      label OK
      xywh {175 140 75 25}
    }
    Fl_Button {} {
      label Cancel
      callback {o->window()->hide();}
      xywh {260 140 75 25} shortcut 0xff1b
    }
  }
}