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
|
// generated by Fast Light User Interface Designer (fluid) version 1.0300
#include "panels.H"
Fl_Double_Window *disk_chooser=(Fl_Double_Window *)0;
Fl_Browser *disk_browser=(Fl_Browser *)0;
Fl_Input *disk_input=(Fl_Input *)0;
static void cb_browser(Fl_Button*, void*) {
const char* c = fl_dir_chooser("Folder", disk_input->value());
if (c) disk_input->value(c);
}
Fl_Check_Button *all_files_button=(Fl_Check_Button *)0;
Fl_Double_Window* make_diskchooser() {
{ disk_chooser = new Fl_Double_Window(404, 252, "Disk Usage Display");
{ Fl_Button* o = new Fl_Button(290, 10, 65, 20, "Reload");
o->callback((Fl_Callback*)reload_cb);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(365, 10, 25, 20, "\251");
o->labelsize(18);
o->callback((Fl_Callback*)copyright_cb);
} // Fl_Button* o
{ Fl_Browser* o = disk_browser = new Fl_Browser(15, 30, 375, 150, "Select a file system:");
disk_browser->type(2);
disk_browser->callback((Fl_Callback*)disk_browser_cb);
disk_browser->align(Fl_Align(FL_ALIGN_TOP_LEFT));
Fl_Group::current()->resizable(disk_browser);
static int widths[] = {200,0};
o->column_widths(widths);
} // Fl_Browser* disk_browser
{ Fl_Input* o = disk_input = new Fl_Input(15, 200, 335, 25, "[OR] Enter a full path:");
disk_input->callback((Fl_Callback*)disk_input_cb);
disk_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
disk_input->when(FL_WHEN_ENTER_KEY_ALWAYS);
o->value("/");
} // Fl_Input* disk_input
{ Fl_Button* o = new Fl_Button(350, 200, 40, 25, "browser");
o->labelsize(8);
o->callback((Fl_Callback*)cb_browser);
} // Fl_Button* o
{ Fl_Check_Button* o = new Fl_Check_Button(15, 225, 185, 25, "Measure folders only");
o->type(102);
o->down_box(FL_DIAMOND_DOWN_BOX);
} // Fl_Check_Button* o
{ all_files_button = new Fl_Check_Button(190, 225, 145, 25, "Measure every file");
all_files_button->type(102);
all_files_button->down_box(FL_DIAMOND_DOWN_BOX);
all_files_button->value(1);
} // Fl_Check_Button* all_files_button
disk_chooser->end();
} // Fl_Double_Window* disk_chooser
return disk_chooser;
}
Fl_Double_Window *wait_window=(Fl_Double_Window *)0;
Fl_Slider *wait_slider=(Fl_Slider *)0;
Fl_Double_Window* make_wait_window() {
{ wait_window = new Fl_Double_Window(229, 100);
wait_window->hotspot(wait_window);
{ Fl_Slider* o = wait_slider = new Fl_Slider(10, 25, 205, 25, "Scanning ...");
wait_slider->type(3);
wait_slider->color((Fl_Color)12);
wait_slider->selection_color(FL_DARK1);
wait_slider->align(Fl_Align(FL_ALIGN_TOP_LEFT));
Fl_Group::current()->resizable(wait_slider);
o->set_output();
} // Fl_Slider* wait_slider
{ Fl_Button* o = new Fl_Button(70, 60, 80, 25, "Cancel");
o->shortcut(0xff1b);
o->callback((Fl_Callback*)cancel_cb);
} // Fl_Button* o
wait_window->set_modal();
wait_window->end();
} // Fl_Double_Window* wait_window
return wait_window;
}
Fl_Double_Window *print_panel=(Fl_Double_Window *)0;
Fl_Input *print_command_input=(Fl_Input *)0;
Fl_Light_Button *print_file_button=(Fl_Light_Button *)0;
Fl_Input *print_file_input=(Fl_Input *)0;
static void cb_browser1(Fl_Button*, void*) {
const char* c = fl_file_chooser("Print to:", "*.ps", print_file_input->value());
if (c) print_file_input->value(c);
}
Fl_Check_Button *print_portrait_button=(Fl_Check_Button *)0;
Fl_Check_Button *fill_page_button=(Fl_Check_Button *)0;
Fl_Return_Button *print_ok_button=(Fl_Return_Button *)0;
static void cb_Cancel(Fl_Button* o, void*) {
o->window()->hide();
}
Fl_Double_Window* make_print_panel() {
{ print_panel = new Fl_Double_Window(345, 173, "Print");
print_panel->hotspot(print_panel);
{ Fl_Box* o = new Fl_Box(10, 5, 85, 25, "Print to:");
o->labelfont(1);
o->labelsize(18);
o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE));
} // Fl_Box* o
{ Fl_Light_Button* o = new Fl_Light_Button(10, 35, 75, 25, "printer");
o->type(102);
o->value(1);
} // Fl_Light_Button* o
{ Fl_Input* o = print_command_input = new Fl_Input(85, 35, 250, 25);
o->value("lpr");
} // Fl_Input* print_command_input
{ print_file_button = new Fl_Light_Button(10, 65, 75, 25, "file");
print_file_button->type(102);
} // Fl_Light_Button* print_file_button
{ Fl_Input* o = print_file_input = new Fl_Input(85, 65, 215, 25);
o->value("xdiskusage.ps");
} // Fl_Input* print_file_input
{ Fl_Button* o = new Fl_Button(300, 65, 36, 25, "browser");
o->labelsize(8);
o->callback((Fl_Callback*)cb_browser1);
} // Fl_Button* o
{ Fl_Group* o = new Fl_Group(10, 90, 325, 35);
o->align(Fl_Align(FL_ALIGN_LEFT));
{ print_portrait_button = new Fl_Check_Button(10, 90, 80, 25, "portrait");
print_portrait_button->type(102);
print_portrait_button->down_box(FL_DIAMOND_DOWN_BOX);
print_portrait_button->value(1);
} // Fl_Check_Button* print_portrait_button
{ Fl_Check_Button* o = new Fl_Check_Button(90, 90, 100, 25, "landscape");
o->type(102);
o->down_box(FL_DIAMOND_DOWN_BOX);
} // Fl_Check_Button* o
o->end();
} // Fl_Group* o
{ Fl_Group* o = new Fl_Group(10, 110, 330, 45);
o->align(Fl_Align(FL_ALIGN_LEFT));
{ fill_page_button = new Fl_Check_Button(10, 115, 150, 25, "reshape to fill page");
fill_page_button->type(102);
fill_page_button->down_box(FL_DIAMOND_DOWN_BOX);
fill_page_button->value(1);
} // Fl_Check_Button* fill_page_button
{ Fl_Check_Button* o = new Fl_Check_Button(160, 115, 175, 25, "same shape as window");
o->type(102);
o->down_box(FL_DIAMOND_DOWN_BOX);
} // Fl_Check_Button* o
o->end();
} // Fl_Group* o
{ print_ok_button = new Fl_Return_Button(175, 140, 75, 25, "OK");
} // Fl_Return_Button* print_ok_button
{ Fl_Button* o = new Fl_Button(260, 140, 75, 25, "Cancel");
o->shortcut(0xff1b);
o->callback((Fl_Callback*)cb_Cancel);
} // Fl_Button* o
print_panel->set_modal();
print_panel->end();
} // Fl_Double_Window* print_panel
return print_panel;
}
|