From 0a41e770c38a284612730ff7f4b229ef21123ddf Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 7 Nov 2005 08:39:23 +0000 Subject: STR #1062: updated code to resize the preview panel of the file chooser and hide it entirely if unused git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Chooser.fl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Fl_File_Chooser.fl') diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index 451fb567e..982811bae 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -60,7 +60,7 @@ class FL_EXPORT Fl_File_Chooser {open callback {fileName->value(""); fileList->deselect(); Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this); -window->hide();} selected +window->hide();} private xywh {387 242 490 380} type Double resizable code0 {if (title) window->label(title);} code1 {\#include } @@ -90,7 +90,7 @@ window->hide();} selected } } Fl_Tile {} { - callback {update_preview();} open + callback {update_preview();} private xywh {10 45 470 225} resizable } { Fl_File_Browser fileList { @@ -106,17 +106,17 @@ window->hide();} selected Fl_Group {} { private xywh {10 275 470 95} } { - Fl_Group {} { + Fl_Group {} {open private xywh {10 275 470 20} } { Fl_Check_Button previewButton { label Preview callback {preview(previewButton->value());} - xywh {10 275 170 20} down_box DOWN_BOX shortcut 0x80070 value 1 + xywh {10 275 73 20} down_box DOWN_BOX shortcut 0x80070 value 1 code0 {previewButton->label(preview_label);} } Fl_Box {} { - private xywh {10 275 395 20} resizable + private xywh {115 275 365 20} resizable } } Fl_File_Input fileName { @@ -138,7 +138,7 @@ window->hide();} selected if (callback_) (*callback_)(this, data_); -window->hide();} +window->hide();} selected private xywh {313 345 85 25} code0 {\#include } code1 {okButton->label(fl_ok);} @@ -299,7 +299,7 @@ okButton->parent()->init_sizes();} {} } decl {void rescan();} {public } - Function {show()} {open return_type void + Function {show()} {return_type void } { code {window->hotspot(fileList); window->show(); @@ -337,7 +337,7 @@ fileName->take_focus();} {} } { code {return (fileList->textsize());} {} } - Function {type(int t)} {open return_type void + Function {type(int t)} {return_type void } { code {type_ = t; if (t & MULTI) -- cgit v1.2.3