summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-03-23Update tile image to 64x64 (STR #769)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21Fl_Progress didn't use a contrasting label color over the progress bar,Michael R Sweet
so dark bars would make it difficult to read the label. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21Image reading, template handling, and printing bug fixes.Michael R Sweet
CHANGES: - Add fl_read_image() note and move documentation STRs back to the top of the list... fluid/fluid.cxx: - Use printer choice data instead of the label text, since we have to escape / in printer names. - Change page number in header to n/N. fluid/print_panel.*: - Don't disable properties button, ever. - Quote / in printer names. - Put copy of real printer name in the user data. - Use user data instead of label text for printer name. fluid/template_panel.*: - Only free the files array if num_files > 0. src/fl_read_image.cxx: - Use fl_visual->visual->*_mask instead of fl_*mask and fl_*shift when the XGetImage() data does not have them set. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21Polygon drawing fixed #765, fl_message wrapped in Fl_Group::current(0), so ↵Matthias Melcher
it doesn't end up inside some current group #253. Undefined 'check' in Fl_Menu_Item_, so it will compile as an Apple XCode project (to be delivered later).. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-21Printing support for FLUID...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20Preliminary template save support in FLUID, plus some bug fixes.Michael R Sweet
fluid/Fl_Type.h: - Added read_image() declaration to Fl_Window_Type class. fluid/Fl_Window_Type.cxx: - Added Overlay_Window::read_image() and Fl_Window_Type::read_image() functions. - Fl_Window_Type::fix_overlay(): update menu indices. - toggle_overlays(): update menu indices. fluid/fluid.cxx: - save_template_cb(): Added to save to ~/.fltk/fltk.org/fluid/templates, along with PNG screenshot of first window. - "Save To" instead of "Save to". - Use fl_alert() for errors, not fl_message(). - Add "File/Save Template..." and "File/Print..." (not yet implemented) menu items. - toggle_widgetbin_cb(): update menu indices. fluid/undo.cxx: - Update menu item indices. - Don't need extra slash in undo checkpoint filename. src/Fl_PNG_Image.cxx: - Fix typo in #endif comment. src/Fl_Window.cxx: - Fl_Window::draw(): save/restore flags() when changing label. - Fl_Window::iconlabel(): save/restore flags() when changing label. src/fl_rect.cxx: - fl_not_clipped(): don't use current window for gross clipping. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-20Use uppercase letters for shortcut labels (e.g. "Ctrl+N", notMichael R Sweet
"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
2005-03-18Bug fixes and UI tweaking...Michael R Sweet
src/Fl_Menu_.cxx: - Fl_Menu_::find_item(): wasn't checking for a non-NULL label()... fluid/alignment_panel.*: fluid/widget_panel.*: - Use small controls, normalize layout. - Add FLTK header/footer comments. fluid/Fluid_Image.cxx: - Use relative paths for images. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-15fixed frame drawing of Fl_Text_Display (STR #762.2). Thanks for the patch ↵Matthias Melcher
proposal to Alessandro Portale. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-12STR 748: Fl_Clock_Output::value(ulong) does not change value_Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-08'Anonymous' reported a problem when using Fl_Value_Input. It seemed, Matthias Melcher
that contrary to the man pages, a fractional 'step' value above 1 would not create a floating point input. In fact it does, but the output was formatted wrong so that the digits after the decimal point were never rendered. I changed the Fl_Valuator::format(double v) function how I beleive it should format the output correctly, but as already stated by the original author in the source code, this is a hack that should be fixed by providing a 'precission' setting for valuators. Anyway. My fix makes sure that all digits right of the decimal point are always rendered, so that the step value will show full precision. This gives a much better behavior in respect to steps values like 2.5, 3.75, etc., but also leads to 8 digits after the decimal point for step(1.0/3.0)... . I suggest that we keep this change (hence the commit), risking that rendering of valuator text will change in a few cases (odd step() values). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-06Fix Fl_Input_Choice in FLUID, and make sure that we expose enough of theMichael R Sweet
text and box stuff for use in FLUID. Update dependencies. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05fl_filename_relative() didn't compare drive letters in aMichael R Sweet
case-insensitive way (STR #741) src/filename_absolute.cxx: - fl_filename_relative(): use tolower() when comparing drive letters. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05Fix menu drawing...Michael R Sweet
src/fl_draw.cxx: - fl_measure(): use "h" instead of "min(w,h)", since "w" is usually 0. src/Fl_Menu.cxx: - Revert previous "fix" in Fl_Menu_Item::measure() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05Fixed menu item width calculations with symbols (STR #740)Michael R Sweet
src/Fl_Menu.cxx: - Fl_Menu_Item::measure() - initialize w and h to label font size so that the symbol size is calculated properly. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05The keyboard shortcut handling code did not handle 8-bitMichael R Sweet
characters properly (STR #731) src/Fl.cxx: - Fl::handle(): use unsigned char * for event_text() shortcut key conversion. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-05Fl_JPEG_Image could still crash an app with a corrupt JPEG fileMichael R Sweet
(STR #739) src/Fl_JPEG_Image.cxx: - Use setjmp/longjmp to catch JPEG file errors and prevent the JPEG library from crashing the FLTK app. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Added QNX bug workaround for menu handling (STR #704)Michael R Sweet
src/Fl_Menu.cxx: - menuwindow::handle(): #ifdef QNX check for done menu git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Fl_Multiline_Input now scrolls the full height of the widgetMichael R Sweet
instead of 5 lines when the user presses PageUp or PageDown (STR #727) src/Fl_Input.cxx: - Set repeat_num to h()/textsize() instead of 5. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Fix builds without JPEG library...Michael R Sweet
src/Fl_JPEG_Image.cxx: - Surround FLTK JPEG state structure with #ifdef... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Fl_Browser::swap() didn't handle redraws properly when theMichael R Sweet
swapped lines had different heights (STR #729) src/Fl_Browser.cxx: - Fl_Browser::swap(): call redraw_lines() instead of redrawing individual lines. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-20FL_MOUSEWHEEL events are now sent first to the widget under theMichael R Sweet
mouse pointer and then to the first widget which accepts them. This is similar to the way shortcut events are handled and is consistent with the way the mouse wheel is handled by other toolkits. src/Fl.cxx: - Fl::handle(): Send FL_MOUSEWHEEL events to grab() or current window instead of focus widget. src/Fl_Group.cxx: - Fl_Group::handle(): Send FL_MOUSEWHEEL events first to an event_inside() widget, then to the first non-inside widget that accepts them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-14Fl::wait() could block on WIN32 if the window was deleted viaMichael R Sweet
Fl::delete_widget() (STR #679) src/Fl.cxx: - Post an application message when a window is hidden on WIN32. src/Fl_win32.cxx: - Change async select message to WM_APP + 1, and document our use of WM_APP. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-14Fl_Preferences::RootNode did not find the user's home directoryMichael R Sweet
on some non-US versions of Windows (STR #720) src/Fl_Preferences.cxx: - RootNode::RootNode(): if AppData key does not exist, try Personal key instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-14Fl_Window::hide() didn't delete the current clipping region onMichael R Sweet
WIN32, causing a GDI resource leak in some situations (STR #723) src/Fl.cxx: - Fl_Window::hide(): move XDestroyRegion() call outside of the X11-specific code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-12Fix initializers and error handling.Michael R Sweet
src/Fl_JPEG_Image.cxx: - Add custom error manager structure and update error and output handlers so we properly handle bad JPEG files. src/Fl_Shared_Image.cxx: - Add initializers for num_handlers, alloc_handlers, and handlers variables. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Check for no icon, and if so manually check for a directory...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fixed a few warnings in OS X. The fluid stuff was 'touche'd, but not changed.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fl_Menu now draws the arrow more like other toolkits and 2.0Michael R Sweet
(STR #651) src/Fl_Menu.cxx: - Change submenu drawing code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fixed a VC++ compiler error in Fl_JPEG_Image.cxx (STR #676)Michael R Sweet
src/Fl_JPEG_Image.cxx: - Cast array to (uchar *) in delete[]. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06FL_SHADOW_BOX/FRAME drew outside of the bounding box (STR #694)Michael R Sweet
src/fl_boxtype.cxx: - Adjust box dw/dh for shadow box/frame types. src/fl_shadow_box.cxx: - Adjust shadow box to draw inside the bounding box. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fl_Widget::copy_label(NULL) didn't work (STR #707)Michael R Sweet
src/Fl_Widget.cxx: - Check for NULL in Fl_Widget::copy_label() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fl_Choice now allows click selection like Fl_Menu_Button andMichael R Sweet
Fl_Menubar (STR #706) src/Fl_Choice.cxx: - Fl_Chocie::handle(): remove call to event_is_click(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Cmake updates (STR #645)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Fl_Check_Browser didn't draw properly when inactive (STR #681)Michael R Sweet
src/Fl_Check_Browser.cxx: - Update item_draw() function to check active_r() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06Removed some redundant code in Fl_Group::handle() (STR #669)Michael R Sweet
src/Fl_Group.cxx: - Don't need to check o->contains() twice. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05The file chooser didn't always deactivate the OK button whenMichael R Sweet
necessary (STR #653) src/Fl_File_Chooser2.cxx: - Fl_File_Chooser::fileListCB(): deactivate OK button when the current item is not the right type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05Fix FLUID text color (STR #662)Michael R Sweet
src/Fl_Double_Window.cxx: - Save/restore colors. src/Fl_Pixmap.cxx: - Save/restore colors. src/fl_draw_image_mac.cxx: - Save/restore colors. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05Fixed some compiler errors on WIN32 (STR #647)Michael R Sweet
src/scandir_win32.c: - Add casts for malloc and calloc calls. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05Fl_File_Chooser was slow with large directories (STR #654)Michael R Sweet
FL/Fl_File_Browser.H: - Don't reload the directory view unless asked to. FL/Fl_File_Chooser.H: - Rebuilt using current FLUID. src/Fl_File_Browser.cxx: - Don't reload the directory view unless asked to. src/Fl_File_Chooser.cxx: - Fl_File_Chooser::show() calls rescan(). src/Fl_File_Chooser.fl: - Fl_File_Chooser::show() calls rescan(). src/Fl_File_Chooser2.cxx: - Only call rescan() when chooser is shown. src/Fl_File_Icon.cxx: - Add optimization for Windows - filenames with trailing slash are directories. test/file_chooser.cxx: - Only call show() once... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-04Remove duplicate definitions and argument-hides-function warning.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-01Fix X11 DND support.Michael R Sweet
src/Fl_x.cxx: - Check the list of source types and pick the first one that starts with "text/". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-01-25Temporary fix for JPEG error handle; we need to flag the error inMichael R Sweet
the callback function and test for it in the main code... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-01-04Fix menu crash bug (STR #685)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-27Fl_Double_Windows would always redraw their full content, evenMatthias Melcher
if only little changes were done in the UI. OS X creates all windows double buffered, whch would lead FLTK to beleive that the background buffer was missing on every redraw, causing a complete redraw of the full UI. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-16Fl_JPEG_Image did not correctly handle errors reported by theMichael R Sweet
JPEG library (STR #652) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-14Fl_Menu now draws sub-menu arrows like other toolkits and FLTKMichael R Sweet
2.0 (STR #651) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3941 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-06Fixed a compiler warning in Fl_Window.H (STR #641)Michael R Sweet
Tooltips disabled shortcut processing (STR #643) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03Fl::event_number() didn't always match the value sent to theMichael R Sweet
handle() method (STR #634) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121