Fluid would add pasted widgets as the last child of the
current group, even if they were cut at the beginning
of the group. This patch adds a 'startegy' to adding
widgets to allow merging closer to the 'current' widget.
Also added d'n'd for the widget bin and some other
UI improvements.
STR 3442: some preparation, variable renaming
STR 3442: unifying functions to add widgets.
Adding widgets interactively is merged into one function,
making undo/redo work as expected and removing
unexpected differences between adding by menu or bin.
STR 3442: adding drag'n'drop for windows from bin.
Just drag the window symbol out of the tree and drop it anywhere
on the desktop.
Visual representation of dragged Window.
STR 3442: insert individual nodes after 'current'
STR 3442: adding new widget at expected positions.
The widget bin can finally do drag'n'drop.
Widgets appear in the tree close to the last selection.
Duplicating now ads right below.
Cut and paste inserts after last selection.
Fluid: replaced #define with strict enum type.
tl;dr : making Fluid maintainable, no changes in code execution and logic.
This is a pretty extensive restructuring of the Fluid source tree.
It was neccessary because source and header files were getting
much too big to handle. Many source files had no header, and many
headers declared functions that were in diffrent source files.
Reorganized much of the include statements.
Added comments to some of the files.
Added Doxygen configuration file for standalone Fluid docs.
Tested everything by rebuilding Fluid .fl designs with the resorted
version of Fluid.
If a user adds a new widget using the right mouse button in any of the
design's windows, the new widget will be located with its top left corner
at the selected position.
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
Remove leading underscore from _FL_IMAGE_LABEL.
Remove redundant assignment of image().
Thanks to Greg for finding these issues.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This option opens a fluid ('.fl') file and saves it overwriting the old
file with the current syntax and library version number.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This new temporary fix improves handling of strcasecmp() for
CMake-generated Makefiles (cmake -G "MSYS Makefiles" ..).
For some unknown reason (maybe other compiler flags?) this showed
lots of *warnings* again. A better fix (replacing direct calls to
strcasecmp() with fl_strcasecmp() or similar will follow later.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Note: This fix is temporary and should be revisited later.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit must be considered partial because there is no shortcut handling for Fl_Text_Display derived widgets or Fl_Value_Input which is derived form Fl_Valuator.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
- added textsize etc. support for Fluid Live Mode for Fl_Input type.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Fl_Tabs would steal focus away from its children on a window
focus change (STR #870)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Set the window callback to do the same as the cancel button in the template
panel.
Clean up widget bin + tooltips (didn't have correct tooltips for new widgets)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
preview images that are generated when you save the template.
Use @INSTANCE@ anywhere you want to substitute an instance name.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
"Ctrl+n") to be consistent with other toolkits.
Remove debug printf from undo_checkpoint().
Change "Show Widget Panel" to "Show Properties" since it displays any
Fl_Type dialog, not just the widget panel.
Add "properties" to all of the type dialogs (UI consistency)
Remove extra elipsis (...) from code items in the new menu.
Revert Grid shortcut to Ctrl+G, since Alt+G is used to run a shell
command again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
fluid/*.fl:
- Go through all of the UIs and make sure they conform to the
UI guidelines.
fluid/fluid.cxx:
- Change fl_ask() and fl_choice() to use the "Save"/"Don't
Save" and similar button labels instead of "Yes" and "No",
per UI guidelines.
fluid/factory.cxx:
fluid/Fl_Type.h:
- Make sure that widget and type names are capitalized.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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
- simply add the 'Comment' type from the 'New' menu or the Widget Bin
- comments in the very first position will be added at the very beginning of the source file or header. Comments at the end are at the very end in source and headers as well.
- if the users enters simple text, FLUID will add '// ' in front of every line. If a line already starts with '//' or a block starts with '/*', the text will be copied verbatim.
- text can be loaded from files
- text can be stored in a database and quickly retrieved later via a pulldown menu. The pulldown menu is customizable.
Enjoy!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
own custom ideal_size() function, and we now snap when showing the
alignment guides.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121