From ce40d4a0e67b79b48471d6328f46817d2e064544 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 25 Mar 2005 15:20:26 +0000 Subject: The Fl_File_Chooser window now properly resizes its controls (STR #766) The Fl_Help_Dialog window now properly resizes its controls (STR #768) The Fl_File_Chooser favorites window is now resizable (STR #770) Added more documentation on the file chooser filter pattern format (in both functions.html and Fl_File_Chooser.html) Added Fl_File_Chooser::save_label (for favorites dialog) and Fl_File_Chooser::ok_label() to change the default "OK" button label to something more appropriate according to the HIG. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Help_Dialog.fl | 109 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 74 insertions(+), 35 deletions(-) (limited to 'src/Fl_Help_Dialog.fl') diff --git a/src/Fl_Help_Dialog.fl b/src/Fl_Help_Dialog.fl index 4524cbda3..ba291593c 100644 --- a/src/Fl_Help_Dialog.fl +++ b/src/Fl_Help_Dialog.fl @@ -1,7 +1,36 @@ # data file for the Fltk User Interface Designer (fluid) -version 1.0105 +version 1.0107 header_name {../FL/Fl_Help_Dialog.H} code_name {.cxx} +comment {// +// "$Id$" +// +// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2005 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// +} {in_source in_header +} + decl {\#include "flstring.h"} {} decl {\#include } {} @@ -48,20 +77,23 @@ else if (view_->filename()) { strlcpy(file_[index_], view_->filename(), sizeof(file_[0])); line_[index_] = view_->topline(); -}} open +}} open selected private xywh {10 10 510 330} box DOWN_BOX selection_color 15 resizable code0 {\#include } class Fl_Help_View } {} - Fl_Button {} { - label Close - callback {window_->hide();} - private xywh {425 350 95 25} - code0 {o->label(fl_close);} - } - Fl_Button back_ { - label {@<-} - callback {if (index_ > 0) + Fl_Group {} {open + xywh {10 348 510 27} + } { + Fl_Button {} { + label Close + callback {window_->hide();} + private xywh {456 350 64 25} + code0 {o->label(fl_close);} + } + Fl_Button back_ { + label {@<-} + callback {if (index_ > 0) index_ --; if (index_ == 0) @@ -75,11 +107,11 @@ if (strcmp(view_->filename(), file_[index_]) != 0) view_->load(file_[index_]); view_->topline(l);} - private tooltip {Show the previous help page.} xywh {355 350 25 25} shortcut 0xff51 labelcolor 2 - } - Fl_Button forward_ { - label {@->} - callback {if (index_ < max_) + private tooltip {Show the previous help page.} xywh {386 350 25 25} shortcut 0xff51 labelcolor 2 + } + Fl_Button forward_ { + label {@->} + callback {if (index_ < max_) index_ ++; if (index_ >= max_) @@ -93,35 +125,36 @@ if (strcmp(view_->filename(), file_[index_]) != 0) view_->load(file_[index_]); view_->topline(l);} - private tooltip {Show the next help page.} xywh {390 350 25 25} shortcut 0xff53 labelcolor 2 - } - Fl_Button smaller_ { - label F - callback {if (view_->textsize() > 8) + private tooltip {Show the next help page.} xywh {421 350 25 25} shortcut 0xff53 labelcolor 2 + } + Fl_Button smaller_ { + label F + callback {if (view_->textsize() > 8) view_->textsize(view_->textsize() - 2); if (view_->textsize() <= 8) smaller_->deactivate(); larger_->activate();} - private tooltip {Make the help text smaller.} xywh {285 350 25 25} labelfont 1 labelsize 10 - } - Fl_Button larger_ { - label F - callback {if (view_->textsize() < 18) + private tooltip {Make the help text smaller.} xywh {316 350 25 25} labelfont 1 labelsize 10 + } + Fl_Button larger_ { + label F + callback {if (view_->textsize() < 18) view_->textsize(view_->textsize() + 2); if (view_->textsize() >= 18) larger_->deactivate(); smaller_->activate();} - private tooltip {Make the help text larger.} xywh {320 350 25 25} labelfont 1 labelsize 16 - } - Fl_Group {} {open - xywh {10 350 265 25} box DOWN_BOX color 7 - } { - Fl_Input find_ { - label {@search} - callback {find_pos_ = view_->find(find_->value(), find_pos_);} selected - private tooltip {find text in document} xywh {35 352 238 21} box FLAT_BOX labelsize 13 when 10 + private tooltip {Make the help text larger.} xywh {351 350 25 25} labelfont 1 labelsize 16 + } + Fl_Group {} {open + xywh {10 350 296 25} box DOWN_BOX color 7 resizable + } { + Fl_Input find_ { + label {@search} + callback {find_pos_ = view_->find(find_->value(), find_pos_);} + private tooltip {find text in document} xywh {35 352 268 21} box NO_BOX labelsize 13 when 10 resizable + } } } } @@ -210,3 +243,9 @@ else code {return (window_->y());} {} } } + +comment { +// +// End of "$Id$". +//} {in_source in_header +} -- cgit v1.2.3