Manolo Gouy
f309c395fc
STR#2600 again: under X11, dynamically load the libXrandr shared library.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-04 09:21:47 +00:00
Manolo Gouy
5c7800ea61
OSX: transferred from 3.0 the great speed improvement of text width computation when
...
many substitute fonts are involved.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-03 09:22:57 +00:00
Greg Ercolano
f86e7e318a
Fix drawing problem with Fl_Input as child of Fl_Tree.
...
(fixes STR#2725)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-02 19:56:19 +00:00
Matthias Melcher
c1caad3e62
STR 2714: remove lint (variables that have the same name as a function in the same scope).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-02 06:25:13 +00:00
Manolo Gouy
e3b758c6f0
Fix STR#2724: #if HAVE_XRANDR instead of #ifdef
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 17:33:02 +00:00
Matthias Melcher
95692bf287
STR 2722: Fluid widget browser was not UTF8 reay yet.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 16:25:30 +00:00
Matthias Melcher
8e95ba0700
STR 2713: less restrictive XClass handling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 15:53:57 +00:00
Matthias Melcher
8709753e1b
STR 2701: more tolerant Xft Font Attribute interpretation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 15:42:39 +00:00
Matthias Melcher
dde4dbd61f
If a vertical scrollbar is added, wrapped lines must be recalculated.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 06:48:50 +00:00
Manolo Gouy
9bdc310346
Fix STR#2600 : screens configuration changes are now detected under all platforms.
...
Requires the RandR X extension.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 14:46:08 +00:00
Manolo Gouy
2df4196d8b
About STR#2600 : some code factorization.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 13:09:06 +00:00
Matthias Melcher
7694e9b0a6
STR 2719: removed double comment
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:34:42 +00:00
Matthias Melcher
b7abad288e
Horizontal Scrollbar in TextDisplay is now even smarter.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:31:08 +00:00
Matthias Melcher
7446a4d5bb
Text area width needs to be recalculated if vertical scrollbar changes visibility.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:20:09 +00:00
Matthias Melcher
41876bf00a
Horizontal scrollbar in TextDisplay is not shown if text wrappes at the right edge
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:09:16 +00:00
Matthias Melcher
00e8e44cf4
OSX: Fixed screen updates durin DND operations
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 09:38:35 +00:00
Albrecht Schlosser
309742dab3
Fixed doxygen comment.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 08:10:44 +00:00
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