Commit Graph

3617 Commits

Author SHA1 Message Date
Matthias Melcher
bede6e4810 Typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17 22:44:08 +00:00
Matthias Melcher
bcff4ec8e0 International menu shortcuts working on Mac OS (and probably the other OS's)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17 22:12:24 +00:00
Matthias Melcher
c0e4cf48a4 Starting to allow international (unicode) keystrokes as shortcuts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17 20:40:02 +00:00
Matthias Melcher
9ba790be3b Added the counterpart for FL_COMMAND (F_CONTROL). Added GTK Boxtype to the Forms test. Made utf function more fail-safe. Testing SCM on Xcode (wish me luck)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17 20:00:33 +00:00
Albrecht Schlosser
d631c334a2 Fixed Fl_Choice contrast with light-on-dark settings (STR #2219).
Patch provided by Aaron M. Ucko, thanks.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-16 07:06:41 +00:00
Albrecht Schlosser
3cf8672173 Fixed X server "lock", if a modal dialog window is opened while a menu
is active (STR #1986).

This is only an intermediate fix. The full fix should dismiss the menu
when the mouse is clicked outside the menu area.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 21:57:46 +00:00
Matthias Melcher
517fb60eb5 Updated mirror sites in documentation (STR #2220)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 10:57:38 +00:00
Matthias Melcher
f229cd8b00 Setting a default font for Xft
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 10:17:04 +00:00
Matthias Melcher
dc5a320cc6 Setting a default font for Xft
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 10:15:42 +00:00
Albrecht Schlosser
9017c16ecd Improved documentation of Fl_Widget::clear_damage(uchar).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 10:04:51 +00:00
Matthias Melcher
b863eed5ec Fixed occasional international keyboard problems on OS X thanks to misleading indentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 09:53:07 +00:00
Albrecht Schlosser
cec4292c32 removed wsock32 from CMakeLists.txt, because it's not needed any more
(STR #2244)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-13 09:25:04 +00:00
Matthias Melcher
2245a98873 Made CMake work on OS X Snow Leopard by removing the assumption that a Unix system (which includes OS X) automatically is an X11 system (which OS X is not).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-09 21:37:51 +00:00
Greg Ercolano
a3d42a78b1 Docs for Fl_Menu_::add() needed clarification; single letter
parameter names converted to more meaningful names for doxygen.

doxygen docs strengthened, flags documented.

This solves part of STR #2226 (item submitted 20:14 Jul 25, 2009).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-09 09:41:14 +00:00
Greg Ercolano
d018dd0971 Docs added for Fl_Menu_Item flags -- solves STR #2157.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-09 06:04:36 +00:00
Greg Ercolano
4c816df99a Document NULL return value for Fl_Browser::find_line().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-09 05:29:47 +00:00
Greg Ercolano
ee1cd223a9 Added warnings re: duplicate definition of Fl_Browser.cxx's private FL_BLINE
struct in Fl_File_Browser.cxx.

Currently changes to one struct must be manually kept in sync with the other.

todo: Fl_File_Browser should be fixed to not do this.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-09 05:16:41 +00:00
Greg Ercolano
0e29d4a553 Added Albrecht's patch to solve height calculation problem.
Added replacing() call to handle horiz scroll calculations.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-08 01:43:57 +00:00
Greg Ercolano
e60b85f94c Small mod to FL_BLINE to follow similar mod in Fl_Browser's FL_BLINE
which was made in order to solve STR #1739.

    Thanks to SebHoll for pointing this out.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-07 21:17:08 +00:00
Greg Ercolano
89870d0114 Solves STR#1739.
This allows icons to be defined for items in Fl_Browser.

In addition to the OP's patch:

    o Added doxygen docs

    o Fixed redraw handling of icons larger than the items

    o Some methods made const

    o Conformed indent to FLTK standards

See the STR for a test program that verifies the modifications.
Mods tested on linux,osx,windows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-07 02:25:51 +00:00
Matthias Melcher
184c1092e9 Temporarily limited builds to 32-bit on OX S to stay compatible to Snow Leopard
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-06 18:09:24 +00:00
Albrecht Schlosser
1b2df88ed0 More CMake updates (STR #2244):
- added missing files in src/CMakeLists.txt
 - added -DUSE_X11 for Unix builds
 - added new test/unittests program

Thanks to Yassine (yostane) for testing and helping to update the CMake files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-30 21:15:43 +00:00
Greg Ercolano
af570d2be4 Solves STR #2244.
See also, fltk.general newgroup thread:
    Subject: "probelm to build fltk 1.3 svn using msys, gcc3.4 and cmake"
    (Dates 08/28/09 - 08/29/09)

Applied Yostane's zip file mods to the two CMakeLists.txt to support 
msys/gcc3.4/cmake environment. Verified consistency, fixed indents.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-30 03:45:52 +00:00
Greg Ercolano
41cef82137 Applied patch from STR#2115.
This fix to fl_height(int,int) solves the "digital drit"
problem in Fl_Text_Editor, where doing insert/delete 
operations was leaving a trail of dead pixels. 

Also fixes problem with font display problem in fluid's
code editor. See the STR for screenshots of the problem.

NOTE: THIS IS A WORKAROUND FOR A DEEPER PROBLEM.
Somewhere during the port of UTF8, the actual pixel size
of the displayed font is a little off, causing FLTK to
miscalculate line height, causing 'digital drit'.

It used to be that when you specified a font size,
the font's actual displayed pixel size matched the
font size value.

This fix makes the fl_height(int,int) function more robust,
actually inquiring the font system for its font size, instead
of assuming the font size is the same as the 'size' argument.

Since Fl_Text_Editor makes use of this function, it helps
that widget calculate font sizes correctly.

The real fix will be restoring FLTK's old behavior where the 
font size specified is the actual pixel size of the displayed font.
Then this function can be reverted to just returning the 'size' argument.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-28 20:14:41 +00:00
Albrecht Schlosser
2cf1337c44 Fixed Windows compile bug with "#define USE_COLORMAP 0" (STR #2241)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-24 19:55:29 +00:00
Albrecht Schlosser
5e21c7ce23 Added new Fl_Window:: flags() and methods:
- set_menu_window() to mark a window as a menu window
 - set_tooltip_window() to mark a window as a tooltip window

and the corresponding get methods:

 - menu_window()
 - tooltip_window().

This is a first step for providing more information for correct parenting
and properties to support modern (X) window managers (STR #2230).

Please see also the information in fltk.development:

http://www.fltk.org/newsgroups.php?gfltk.development+v:8003

ToDo: Another point is to be able to handle menu windows and popup windows
that are opened while a menu is active properly (will follow later).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-03 06:26:32 +00:00
Albrecht Schlosser
7e8ba419c6 Fixed a few typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-29 16:29:26 +00:00
Albrecht Schlosser
4fb3b8c80d Added comments about removing widgets from their parent group or window
before deleting them with delete or Fl_Widget::delete_widget(). This is not
necessary any more, but it was necessary in FLTK 1.1.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-25 12:56:16 +00:00
Albrecht Schlosser
f42c541529 Fixed glibc 2.10 compiler problems (Fedora 11 and others) with scandir()
and strchr() (STR #2222).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-23 22:51:56 +00:00
Albrecht Schlosser
a32ec7f20e svn properties on test/ (svn:ignore) and test/unittest_scrollbarsize.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-19 19:21:40 +00:00
Matthias Melcher
49dc93677e Typos and alignments
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-18 11:03:44 +00:00
Greg Ercolano
5045d2e834 Added to allow testing of scrollbar sizing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-12 00:29:36 +00:00
Greg Ercolano
fe687baefd Fl_Scroll mods for global scrollbar size control.
Also, unittest added (scrollbar size) to test these changes.
    Thanks to Albrecht for testing/peer review.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-12 00:15:06 +00:00
Fabien Costantini
9eaf693d4a Fl_Text_Display C code simple refactoring:
+ Replaced uninitialized C parameters archaisms, by on the fly C++ local var. decl.
  Not only it will be more optimized by modern c++ compilers,
  code is easier to read, maintain and debug and is shorter.
  Most local variables are now explicitly intialized when declared.
+ Replaced some non const vars by const equivalents when required.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 05:18:29 +00:00
Fabien Costantini
80ce73bc22 UTF8: Fl_Text_Display and related:
+ more const methods modifications for Fl_Text_Display.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 01:09:43 +00:00
Fabien Costantini
1b4b02f7a1 UTF8: Fl_Text_Display and related:
+ Constrained many Fl_Text_Display (get and measurement) methods to const.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 00:57:46 +00:00
Fabien Costantini
691ab84503 UTF8: Fl_Text_Display and related:
+ Modified selection buffer access methods to return const Fl_Text_Selection pointers. Added a non const get method for the main selection buffer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 00:24:26 +00:00
Fabien Costantini
06b58d92bd Updated CHANGES with recent Fl_Text_Buffer and Fl_Text_Selection changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 00:10:51 +00:00
Fabien Costantini
9182195f17 UTF8: Fl_Text_Display and related:
+ Even more const constraints added to Fl_Text_Selection and Fl_Text_Buffer methods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-04 00:06:32 +00:00
Fabien Costantini
e982ba24a9 UTF8: Fl_Text_Display and related:
+ Added more const constraints to Fl_Text_Selection and Fl_Text_Buffer methods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-03 23:54:34 +00:00
Fabien Costantini
d4e85cef93 UTF8: Fl_Text_Display and related:
+ Made char * text() const., this method should be further checked for UTF8 compat.
  + Added a fixme comment to remember we must check for the potential incorrect
  assumption that that a buffer size equals the string length + 1.
  + Correct a protected attrib. typo as we  don't need to care about ABI compat. for now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-03 23:32:47 +00:00
Albrecht Schlosser
510ad42f4e changed $Id$ statement to proper format
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-01 16:09:13 +00:00
Albrecht Schlosser
a3a4086f12 set properties on unittest files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-01 15:57:08 +00:00
Albrecht Schlosser
d34e9521ec fixed some typos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-01 15:47:45 +00:00
Albrecht Schlosser
e29c327c65 Fixed some more typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-01 07:32:14 +00:00
Albrecht Schlosser
79eebf2a18 Fixed some typos in docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-07-01 07:27:25 +00:00
engelsman
61261c2917 added html_stylesheet.css for control over doxygen generated html
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-06-30 18:51:09 +00:00
engelsman
dc40b3708a corrected typo in src/Fl_Gl_Choice.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-06-30 18:48:22 +00:00
Matthias Melcher
0de26b628e Typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-06-30 13:57:45 +00:00
Matthias Melcher
f1473b972f Fixed OpenGL shared context handling (STR #2135)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-06-30 13:38:45 +00:00