Fix "create" handling of new-directory button.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-10-03 15:46:30 +00:00
parent b6e2aceb4a
commit 14f4321330
4 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.0 CHANGES IN FLTK 1.1.0
- Fl_File_Chooser::type() didn't enable/disable the new
directory button correctly.
- Fl_Preferences::entryExists() did not work properly. - Fl_Preferences::entryExists() did not work properly.
- FLUID's image file chooser pattern was incorrect. - FLUID's image file chooser pattern was incorrect.
- Fl_File_Icon::load_system_icons() now detects KDE - Fl_File_Icon::load_system_icons() now detects KDE

View File

@ -34,6 +34,7 @@ OTHER CONTRIBUTORS
Fabien Costantini Fabien Costantini
Stephen Davies Stephen Davies
Greg Ercolano Greg Ercolano
Yuri Fedorchenko
George Garvey George Garvey
Stuart Levy Stuart Levy
Mike Lindner Mike Lindner
@ -43,5 +44,6 @@ OTHER CONTRIBUTORS
Albrecht Schlosser Albrecht Schlosser
Andrea Suatoni Andrea Suatoni
Paul Sydney Paul Sydney
Emanuele Vicentini
Jim Wilson Jim Wilson
Ken Yarnall Ken Yarnall

View File

@ -355,9 +355,9 @@ if (t & MULTI)
else else
fileList->type(FL_HOLD_BROWSER); fileList->type(FL_HOLD_BROWSER);
if (t & CREATE) if (t & CREATE)
newButton->deactivate();
else
newButton->activate(); newButton->activate();
else
newButton->deactivate();
if (t & DIRECTORY) if (t & DIRECTORY)
fileList->filetype(Fl_File_Browser::DIRECTORIES); fileList->filetype(Fl_File_Browser::DIRECTORIES);
else else

View File

@ -79,7 +79,7 @@ window->hide();} open
} { } {
Fl_Check_Button previewButton { Fl_Check_Button previewButton {
label Preview label Preview
callback {preview(previewButton->value());} selected callback {preview(previewButton->value());}
xywh {10 275 170 20} down_box DOWN_BOX shortcut 0x80070 value 1 xywh {10 275 170 20} down_box DOWN_BOX shortcut 0x80070 value 1
code0 {previewButton->label(preview_label);} code0 {previewButton->label(preview_label);}
} }
@ -278,7 +278,7 @@ fileName->take_focus();} {}
} { } {
code {return (fileList->textsize());} {} code {return (fileList->textsize());} {}
} }
Function {type(int t)} {return_type void Function {type(int t)} {open return_type void
} { } {
code {type_ = t; code {type_ = t;
if (t & MULTI) if (t & MULTI)
@ -286,13 +286,14 @@ if (t & MULTI)
else else
fileList->type(FL_HOLD_BROWSER); fileList->type(FL_HOLD_BROWSER);
if (t & CREATE) if (t & CREATE)
newButton->deactivate();
else
newButton->activate(); newButton->activate();
else
newButton->deactivate();
if (t & DIRECTORY) if (t & DIRECTORY)
fileList->filetype(Fl_File_Browser::DIRECTORIES); fileList->filetype(Fl_File_Browser::DIRECTORIES);
else else
fileList->filetype(Fl_File_Browser::FILES);} {} fileList->filetype(Fl_File_Browser::FILES);} {selected
}
} }
Function {type()} {return_type int Function {type()} {return_type int
} { } {