Manolo Gouy
c029bba113
Fix STR#2600 for the MSWindow and Mac OS platforms.
...
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-30 08:03:22 +00:00
Greg Ercolano
9f9c16ac16
Limit columns to 26 to ensure column labels are only A-Z.
...
(previous value of 30 was creating non-alpha label names..)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29 21:10:59 +00:00
Greg Ercolano
7d44e7f378
Solve Fl_Tree issues w/ STR#2714 (shadow variable issue for apps)
...
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-29 20:08:54 +00:00
Manolo Gouy
d9cda5c3aa
Fix STR#2695 & 2697: correct computation of work areas with multiple screens.
...
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-29 16:04:24 +00:00
Matthias Melcher
bc1b17056a
STR 2708: simple inline hint may reduce executable size quite a lot.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 20:43:05 +00:00
Matthias Melcher
dc7ac4e770
STR 2707: nested class and namespace support
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 20:31:27 +00:00
Matthias Melcher
7ed9960a28
STR 2677: new cursor shape for Fl_Text_Display
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 20:08:48 +00:00
Matthias Melcher
6c3555c0de
STR 2710: limited scheme names to known schemes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 19:54:05 +00:00
Manolo Gouy
0faba4e3cb
Mac only: further fine tuning in clipping/rectf needed for scroll demo after changes in r.9050.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 09:07:50 +00:00
Matthias Melcher
1fba7d0f46
STR 2673: stop the annoying beeps when opening modal dialogs (this was so '80s)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 03:39:23 +00:00
Matthias Melcher
8f41d85454
STR 2711: fixed radio menu button drawing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 03:35:51 +00:00
Matthias Melcher
d5822e35e7
STR 2711: fitting Menu_Button label text into the part that does not have 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-28 02:44:56 +00:00
Matthias Melcher
4de066bd0e
STR 2706: fixed wrong parent() count for Fluid generated Fl_Input_Choice callback code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 02:21:06 +00:00
Matthias Melcher
b2399e393f
STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of 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-28 02:11:14 +00:00
Matthias Melcher
0ee9324268
Removed accidental commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27 22:16:43 +00:00
Matthias Melcher
1231d41366
STR 2702: body of fl_draw_image_mone was missing for one case.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27 21:18:54 +00:00
Matthias Melcher
6a14cfb34e
STR #2691 : fixed possible invalid text pointer in Text Display
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27 17:10:04 +00:00
Matthias Melcher
4a7eb9cb0c
STR 2683: calling show_cursor() before a text buffer is assigned to an 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-27 17:00:35 +00:00
Greg Ercolano
e76a22d6c0
Fixed build problem on Linux.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22 23:03:12 +00:00
Manolo Gouy
5b04fd35fc
Mac OS: simplified use of #define MAC_OS_X_VERSION_10_x
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22 11:40:53 +00:00
Manolo Gouy
76b50461ed
Changed doc of fl_draw() functions to state that strings are UTF-8 encoded and lengths are in bytes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22 09:01:14 +00:00
Manolo Gouy
45ad71dbc3
Use the Fl_Printer and Fl_Native_File_Chooser classes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-21 14:11:44 +00:00
Manolo Gouy
bdb000bf2f
Mac OS: simplified use of CGRectMake() for rectangle drawing and clipping on display and printer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-19 19:03:22 +00:00
Manolo Gouy
1eb3664e7a
Don't draw the resize window corner under Mac OS X 10.7-Lion.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-16 08:29:23 +00:00
Manolo Gouy
d7a17442fd
Added the name of the type of the fl_gc global variable under Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-14 15:19:20 +00:00
Manolo Gouy
1a9b72429e
Improved how the system-dependent global variable fl_gc is declared
...
with or without declaring the FL_INTERNALS preprocessor variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-14 15:17:32 +00:00
Manolo Gouy
58076d7a26
Mac OS: - Correct application hiding when modal or menu window is on.
...
- 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-13 13:03:07 +00:00
Manolo Gouy
28d33a29ad
Mac OS: print dialog uses only one window instead of two.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08 10:56:51 +00:00
Manolo Gouy
8c6aad459d
Mac OS: center on page the "Print Front Window" application menu command.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08 08:09:20 +00:00
Ian MacArthur
fef14a7a58
Fix trivial documentation discrepancy in Fl_Round_Button
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-07 12:18:14 +00:00
Manolo Gouy
19b3e33944
Keep filter attached to an Fl_Native-File_Chooser after it's closed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-05 16:52:16 +00:00
Manolo Gouy
bb9dd96ad3
Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does not end with \n.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-04 13:50:31 +00:00
Greg Ercolano
7d8c00cc09
Backing out r9025; the correct info is at the top of the document
...
(to use <FL/x.H> instead of define FL_INTERNALS).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02 21:01:28 +00:00
Manolo Gouy
28c559aa3f
Added missing declaration of the fl_find() function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02 14:42:02 +00:00
Manolo Gouy
21ddc8900c
Before deleting a window, it's better to check whether it contains the 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-09-02 12:15:43 +00:00
Greg Ercolano
e758e6aac2
Mention the need for #define FL_INTERNALS for fl_xid().
...
(STR #2696 , http://fltk.org/newsgroups.php?gfltk.development+v:12524 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-01 20:14:26 +00:00
Albrecht Schlosser
62b30f85cb
Fixed fl_pie() drawing too small on X11 (STR #2703 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-30 07:50:16 +00:00
Albrecht Schlosser
d75ad25e5e
Fixed typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-26 17:54:01 +00:00
Albrecht Schlosser
6967e05cab
Updated documentation, removed customized html stylesheet, updated html footer.
...
Note: you need Doxygen 1.7.5 or later to generate proper documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-26 17:25:44 +00:00
Albrecht Schlosser
06ec8900f0
Fix window positioning on screen (Fl_X::fake_X_wm()) by testing the
...
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-19 14:11:30 +00:00
Ian MacArthur
ce3185a94f
Initial fixes for window position at or beyond (0,0) under win32.
...
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-18 16:23:07 +00:00
Matthias Melcher
041a459814
Fluid -c would destroy the file history every time it was run.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18 13:43:39 +00:00
Manolo Gouy
2beb43cf85
Fix STR #2695 (continued). Use of Fl::x() is appropriate only under Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08 15:24:19 +00:00
Manolo Gouy
59fdc24b16
Fix STR #2688 . fl_width(' ') was wrong under X11 without XFT.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08 12:24:54 +00:00
Manolo Gouy
de0be01e23
Fix STR #2695 : to scroll menus properly, use Fl::x(),y(),w() and h() 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-08 10:07:03 +00:00
Albrecht Schlosser
b9e2720061
Added missing svn properties to test/rotated_text.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-05 08:43:26 +00:00
Ian MacArthur
e3a53da439
Add a #warning to scandir.c with the intent of trying to flag up which,
...
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-03 11:04:30 +00:00
Ian MacArthur
ec42758183
fix typo in debug output, as per #2690
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03 08:17:34 +00:00
Greg Ercolano
0fbe0257ab
Fixed problem with Fl_Table::add() as per thread on fltk.general
...
entitled "Fl_Table::add() doesn't work properly?"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-23 01:10:26 +00:00
Manolo Gouy
0c0305865a
Fixed crash under Solaris if no printer is defined.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20 16:06:02 +00:00