summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-09-30Horizontal scrollbar in TextDisplay is not shown if text wrappes at the ↵Matthias Melcher
right edge git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30OSX: Fixed screen updates durin DND operationsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30Fix STR#2600 for the MSWindow and Mac OS platforms.Manolo Gouy
A new event FL_SCREEN_CONFIGURATION_CHANGED is introduced. Fl::add_handler() allows to register a callback for this event. The unix/X11 implementation is still missing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29Solve Fl_Tree issues w/ STR#2714 (shadow variable issue for apps)Greg Ercolano
by moving code implementations from Fl_Tree.H -> Fl_Tree.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29Fix STR#2695 & 2697: correct computation of work areas with multiple screens.Manolo Gouy
This introduces 3 new functions static void Fl::screen_work_area(X,Y,W,H) static void Fl::screen_work_area(X,Y,W,H,mx,my) static void Fl::screen_work_area(X,Y,W,H,screen_no) that compute screen work areas and are used by FLTK to position menu windows. The Fl::x(),y(),w(),h() functions are made consistent across platforms: they return the origin/size of the work area of the main screen (as far as possible, see below). On the Mac OS platform, all screen functions reflect changes in screen number and positions without requiring the application to restart. On the X11 platform, I did not find an API to compute the main screen work area in all conditions. What's used does compute the correct work area when there's a single screen, but not when there are several, because it returns an area that encompasses all screens. The implemented workaround is that Fl::x(),y(),w(),h() and Fl::screen_work_area(X,Y,W,H,0) return the exact work area when there's a single screen, and return the full screen area when there are several. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2677: new cursor shape for Fl_Text_DisplayMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2710: limited scheme names to known schemes.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28Mac only: further fine tuning in clipping/rectf needed for scroll demo after ↵Manolo Gouy
changes in r.9050. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2673: stop the annoying beeps when opening modal dialogs (this was so '80s)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2711: fixed radio menu button drawing.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2711: fitting Menu_Button label text into the part that does not have ↵Matthias Melcher
the pulldown symbol. This does not fix clipping: if a label is too big, it's still ugly (and too big)! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of ↵Matthias Melcher
a line would always be fully visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27STR #2691: fixed possible invalid text pointer in Text DisplayMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27STR 2683: calling show_cursor() before a text buffer is assigned to an ↵Matthias Melcher
Fl_Text_Diisplay deos not crash any longer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22Mac OS: simplified use of #define MAC_OS_X_VERSION_10_xManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-19Mac OS: simplified use of CGRectMake() for rectangle drawing and clipping on ↵Manolo Gouy
display and printer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-16Don't draw the resize window corner under Mac OS X 10.7-Lion.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-13Mac OS: - Correct application hiding when modal or menu window is on.Manolo Gouy
- Removed useless FL_FOCUS events when unhiding application. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08Mac OS: print dialog uses only one window instead of two.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08Mac OS: center on page the "Print Front Window" application menu command.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-05Keep filter attached to an Fl_Native-File_Chooser after it's closed.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-04Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does ↵Manolo Gouy
not end with \n. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02Before deleting a window, it's better to check whether it contains the ↵Manolo Gouy
currently focused NSView, and unlock focus there. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-30Fixed fl_pie() drawing too small on X11 (STR #2703)Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-19Fix window positioning on screen (Fl_X::fake_X_wm()) by testing theAlbrecht Schlosser
entire window area instead of the top left corner only to find the screen to put the window on (Windows only). Note that this *should* be changed to use the work area instead of the screen area, as discussed in fltk.development. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18Initial fixes for window position at or beyond (0,0) under win32.Ian MacArthur
This is not the whole story, but is better. We were messing up the initialisation of num_screens on Win32 in that it was being set to a non-zero value by a call to GetSystemMetrics(SM_CMONITORS) but was then subsequently incremented even higher by each iteration call to the screen_cb(...) function, so what we were storing for the screen rectangles was a bit messed up. Under fltk-1.1, the code used to explicitly reset num_screens to zero before starting to iterate the screen_cb(...) function, so that worked OK. I have sort-of restored that behaviour, and removed the (now redundant) call to GetSystemMetrics(SM_CMONITORS) since we *always* enumerate the monitors now to get the per-screen DPI values out. I've also put in a commented out stub where we could store the per-screen work-area, which it seems we do also need now, though I have not yet contrived to actually implement that. Volunteers welcomed... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2695 (continued). Use of Fl::x() is appropriate only under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2688. fl_width(' ') was wrong under X11 without XFT.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08Fix STR #2695: to scroll menus properly, use Fl::x(),y(),w() and h() ↵Manolo Gouy
functions that return the work area rather than the screen size. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03Add a #warning to scandir.c with the intent of trying to flag up which,Ian MacArthur
if any, hosts actually use this code now. Will only trigger on hosts using gcc though, so may not help at all... This is part of trying to remove this (possibly) not fltk license compliant code from the codebase. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03fix typo in debug output, as per #2690Ian MacArthur
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20Fixed crash under Solaris if no printer is defined.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20Fixed Fl_Menu issue with unusual menu flags (STR #2680).Albrecht Schlosser
Setting some flags in a terminating Fl_Menu_Item (one with a NULL label/text/name) caused an endless loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Mac OS: Greatly simplified the open document handler.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-17Fixing STR #2679; Fl_Table makes use of FLTK's Fl::scrollbar_size() global.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-13Under X11, allow to call printable_rect() before any start_page() call.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11Mac OS: fix STR #2666 allowing to display copyright info in the default ↵Manolo Gouy
About window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11Mac OS: added missing lock/unlock pairs when running system menu items.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_window().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04Added initial value of _driver member in Fl_Printer constructor.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04Fl_Paged_Device::print_window() now works with any output surface on Mac ↵Manolo Gouy
platform. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04Arguments x_offset & y_offset of function Fl_Paged_Device::print_window() ↵Manolo Gouy
were partially ignored by the Mac version. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-26Mac OS: use cmd-A and cmd-C to select all and copy (instead of ctrl-A and ↵Manolo Gouy
ctrl-C). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-20Added %%PageBoundingBox clause in each PostScript page so Evince, the Gnome doc Manolo Gouy
viewer recognizes page formats. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-18Fixed Windows DLL import of fl_xid() (STR #2670)Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-18Fix STR #2671: added missing object deallocation.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-17Removed Doxygen documentation of function Fl_File_Chooser::browser() that ↵Manolo Gouy
had been removed at r. 8785. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fix STR #2668.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fix STR #2665: Mac OS: use bundle name when available.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121