diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-19 04:09:32 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-19 04:09:32 +0000 |
| commit | 59004878f3c36ec693737b631f5769f511fd74cb (patch) | |
| tree | b50238e6908abf76db0570e3cef65a2d973b1f33 /fluid/function_panel.fl | |
| parent | a218f44b5db233bbbd588b5766ec6f3e5e6cb822 (diff) | |
Many FLUID updates...
fluid/align_widget.cxx:
- Add widget_size_cb() to set default size and size of
labels and text for selected widgets.
fluid/factory.cxx:
- More normalization of menus - "..." when opening a window,
Capitalized Words.
- cb(): Assign default label/text size and resize to ideal
size.
- Make sure that all buttons, input, and valuator widgets
have default label strings.
- Fl_*_Button::ideal_size(): fix ideal width calcs to match
widget.
fluid/Fl_Menu_Type.cxx:
- Fl_Menu_Item_Type::make(): set default label size.
fluid/Fl_Type.h:
- Add Fl_Widget_Type::default_size global.
- Fl_Menu_Item_Type::type_name(): return "Menu_Item".
- Fl_Submenu_Type::type_name(): return "Submenu".
- Update ideal_size() methods to use a default height that
is evenly divisible by 5.
- Fl_Choice_Type::ideal_size() and
Fl_Menubutton_Type::ideal_size(): fix ideal width calcs to
match widget.
- Fl_Menu_Bar::ideal_size(): add, returning the window
width.
fluid/fluid.cxx:
- Add "Layout/Widget Size" submenu.
- "File/Write code..." becomes "File/Write Code..." and
"File/Write strings..." becomes "File/Write Strings..."
fluid/fluid.plist:
- Bump version number and copyright info.
fluid/Fl_Widget_Type.cxx:
- Fl_Widget_Type::ideal_size(): add box dw/dh and enforce a
minimum size of 15x15.
- labelsize_cb(): use Fl_Widget_Type::default_size instead
of FL_NORMAL_SIZE.
- textsize_cb(): use Fl_Widget_Type::default_size instead of
FL_NORMAL_SIZE.
fluid/Fl_Window_Type.cxx:
- Fl_Window_Type::newdx(): require at least 2 pixels of
movement.
- Fl_Window_Type::draw_overlay(): adjust bounding box for
outside labels above and below.
- Fl_Window_Type::handle(): reset dx/dy on FL_PUSH.
fluid/function_panel.cxx:
fluid/function_panel.fl:
fluid/function_panel.h:
- Update some of the windows for the "small" size.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/function_panel.fl')
| -rw-r--r-- | fluid/function_panel.fl | 88 |
1 files changed, 63 insertions, 25 deletions
diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index b73b64c98..5efc8bc60 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -2,6 +2,35 @@ version 1.0107 header_name {.h} code_name {.cxx} +comment {// +// "$Id$" +// +// Code dialogs 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 <FL/Fl_Pixmap.H>} {} decl {\#include "Fl_Type.h"} {} @@ -15,32 +44,32 @@ decl {extern void select_only(Fl_Type*);} {} Function {make_function_panel()} {open } { Fl_Window function_panel { - label {function/method} open - xywh {1046 445 285 170} type Single hide resizable modal + label {Function/Method} open + xywh {855 21 285 140} type Single resizable modal visible } { Fl_Light_Button f_public_button { label public - tooltip {Make the function or method publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0 + tooltip {Make the function or method publicly accessible.} xywh {10 10 58 20} labelsize 11 when 0 } Fl_Light_Button f_c_button { label {C declaration} - tooltip {Declare with a C interface instead of C++.} xywh {80 10 90 25} labelsize 10 + tooltip {Declare with a C interface instead of C++.} xywh {73 10 94 20} labelsize 11 } Fl_Input f_name_input { label {Name(args): (blank for main())} - tooltip {The name of the function or method.} xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable + tooltip {The name of the function or method.} xywh {10 49 265 19} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable } Fl_Input f_return_type_input { label {Return Type: (blank to return outermost widget)} - tooltip {The return type of the function or method.} xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4 + tooltip {The return type of the function or method.} xywh {10 87 265 19} labelsize 11 align 5 when 0 textfont 4 textsize 11 } Fl_Return_Button f_panel_ok { label OK - tooltip {Apply the changes.} xywh {110 135 80 25} hotspot + tooltip {Apply the changes.} xywh {175 113 47 20} labelsize 11 hotspot } Fl_Button f_panel_cancel { label Cancel - tooltip {Cancel the changes.} xywh {195 135 80 25} shortcut 0xff1b + tooltip {Cancel the changes.} xywh {227 113 48 20} shortcut 0xff1b labelsize 11 } } } @@ -48,26 +77,29 @@ Function {make_function_panel()} {open Function {make_code_panel()} {open } { Fl_Window code_panel { - label code open - xywh {327 261 545 175} type Single hide resizable modal + label Code open + xywh {327 261 545 175} type Single labelsize 11 resizable modal visible } { + Fl_Text_Editor code_input {selected + xywh {12 12 523 123} box DOWN_BOX labelsize 11 textsize 11 resizable + code0 {o->buffer(new Fl_Text_Buffer);} + code1 {o->textfont(FL_COURIER);} + code2 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);} + } Fl_Group {} {open - xywh {10 10 525 120} box DOWN_FRAME resizable + xywh {12 145 523 20} labelsize 11 } { - Fl_Text_Editor code_input { - xywh {12 12 521 116} box NO_BOX resizable - code0 {o->buffer(new Fl_Text_Buffer);} - code1 {o->textfont(FL_COURIER);} - code2 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);} + Fl_Return_Button code_panel_ok { + label OK + xywh {419 145 55 20} labelsize 11 hotspot + } + Fl_Button code_panel_cancel { + label Cancel + xywh {479 145 56 20} shortcut 0xff1b labelsize 11 + } + Fl_Box {} { + xywh {12 145 402 20} labelsize 11 resizable } - } - Fl_Return_Button code_panel_ok { - label OK - xywh {370 140 80 25} hotspot - } - Fl_Button code_panel_cancel { - label Cancel - xywh {455 140 80 25} shortcut 0xff1b } } } @@ -227,7 +259,7 @@ Function {make_comment_panel()} {open tooltip {Put the comment into the header (.h) file.} xywh {10 40 80 25} labelsize 10 when 0 } Fl_Menu_Button comment_predefined { - label predefined open selected + label predefined open xywh {10 75 80 25} labelsize 10 } {} Fl_Button comment_load { @@ -564,3 +596,9 @@ Function {make_widgetbin()} {open } } } + +comment { +// +// End of "$Id$". +//} {in_source in_header +} |
