Matthias Melcher
e3fde20cf8
Using FL_COMMAND in test/editor shortcuts to make it Mac Keyboard compatible.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 03:24:35 +00:00
Ian MacArthur
1e9e3970bd
File was changed to use FL_PATH_MAX so needed to have <FL/filename.H> added to the include files so that it would compile on WIN32 hosts.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 13:57:11 +00:00
Matthias Melcher
9092dccab8
Changed all fixed filename buffers (that I could find) to use FL_PATH_MX instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 21:20:10 +00:00
Manolo Gouy
f451946d42
Homogenize use of re-encoding and transcoding (in favor of the latter).
...
Also, makes clear that the code is ready to deal with any encoding, not just fixed-length ones.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 17:38:39 +00:00
Manolo Gouy
85a03a76c9
Fix STR #2348 . Files encoded with UTF-8 or CP1252 are accepted. Any non-UTF-8-encoded
...
data is interpreted according to CP1252 and transcoded to UTF-8. By default, a warning
message is displayed when the input file was transcoded. This default behavior can be
modified by changing a function pointer. A flag has been added to the Fl_Text_Buffer object
that informs the caller if the input file was transcoded to UTF-8.
The Fl_Text_Buffer.cxx file contains some preliminary code that could be used in the future
to input other encodings provided they are fixed-length (e.g., all ISO-8859-* character sets,
UTF-16). This code is not compiled at this point.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 19:24:28 +00:00
Albrecht Schlosser
f6975396a8
Reverted unintenional change of test/editor.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-04 12:06:29 +00:00
Albrecht Schlosser
2db2db587c
Fixed typos and reformatted some lines that were longer than 80 characters.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7947 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-04 12:03:08 +00:00
Matthias Melcher
e454f97acc
Fixed Copyright to 2010.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:06:39 +00:00
Matthias Melcher
f560b71b0a
Fixed Fl_Text_Display Tabulator calculations (STR #2450 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 21:15:52 +00:00
Matthias Melcher
1a793cdbc3
Tab is now alway 8 characters wide.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:49:27 +00:00
Matthias Melcher
c6e46fed45
Preliminary implementation of Tab characters insisde Fl_Text-*. We still need to test wrapping, etc.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:13:10 +00:00
Matthias Melcher
917e5991db
Removed UTF-8 codes that would make the SGI compiler crash. STR 2439.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 15:57:49 +00:00
Matthias Melcher
35c8c77e5e
This should fix all remaining issues with Fl_Text_*. Wrapping is no pixel aligned. Pressing up and down will be pixle bound. A few crashes removed (we still crash with faulty UTF-8svn diff | grep Index:). Fixed blinking selection when outside the widget. Added dnd sending and receiving.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 19:08:52 +00:00
Matthias Melcher
f099311481
Better alignment testing
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 23:58:57 +00:00
Matthias Melcher
0fb4feb11a
Working on correct line wrapping in Fl_Text_Display: starting to replace all byte based charracter calculations with utf8 functions. Current version wraps, but scroll bars are wrong. Non-wrapping text display starts to work better.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 00:29:58 +00:00
Matthias Melcher
38dcb5a463
Starting to rework Fl_Text_Display from scratch to make wrapping work correctly. Fixed a few issues that made wrapping crash. Using ASCII range only with fixed character sizes should still wrap as expected?!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-04 21:53:56 +00:00
Matthias Melcher
cac40a9b02
STR 2158: partially solved. This commit is huge, I admit. I recoded most of Fl_Text_Buffer and large chunks of Fl_Text_Display to make it UTF-8 safe. Rendering of all left-to-right scripts works well on OS X for all tested fonts. International input works AFAIK. Copy and paste of UTF-8 data works. ----> what's not working yet though is line wrapping. Also, text search for internationsl characters is not working yet.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03 22:01:43 +00:00
Albrecht Schlosser
9f1fdb0887
made test/editors textsize "configurable" (by macro TS)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-24 08:12:50 +00:00
Matthias Melcher
f62fa46736
Fixes to VisualC6 project setup
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-02 21:12:55 +00:00
Manolo Gouy
590020a945
Replaced fl_file_chooser() by Fl_Native_File_Chooser uses in test programs
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7509 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-15 11:27:15 +00:00
Matthias Melcher
769ebeeba7
Tearing my hairs out about terminology in utf-8
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 12:55:14 +00:00
Matthias Melcher
b737694f4a
test/Editor was freeing the text buffer too soon and no clearing callbacks. (STR #2294 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 21:08:34 +00:00
Matthias Melcher
a6e76c29fd
Cahngad copyrights in 'test'
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 16:35:13 +00:00
Fabien Costantini
ae697b80b2
Doxygen documentation : took the opportunity to update copyright info as we modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 07:26:22 +00:00
Matthias Melcher
93cb7b5487
STR 1264: Editor uses "delete" instead of the required "delete_widget"
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-05 13:38:47 +00:00
Matthias Melcher
d3db965083
Fixed a few memory faults found by Valgrind (yes, I finally got my Linux
...
machine up and running again)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 10:13:17 +00:00
Michael R Sweet
1c399af444
Update source file headers with STR web page.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:13:17 +00:00
Michael R Sweet
217f77c9ef
Eliminate compiler warnings on Solaris...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 12:29:51 +00:00
Michael R Sweet
325dc85b2c
Fix syntax highlighting bug in the editor demo, and port changes to the
...
CodeEditor widget in FLUID.
Use the CodeEditor widget for the other code windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-23 03:13:31 +00:00
Michael R Sweet
add37faa25
Copyright updates.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:55:12 +00:00
Michael R Sweet
a3d0905c9e
Copyright updates and prep for 1.1.5rc1.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 04:39:01 +00:00
Michael R Sweet
00cb676e11
Copyright update for 1.1.3 release (not quite yet, but soon...)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 21:46:07 +00:00
Michael R Sweet
5d33456506
Comment out debug statements...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-27 18:01:30 +00:00
Michael R Sweet
7ef44a5266
Fix editor syntax highlighting (bug #613089 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-26 20:43:03 +00:00
Michael R Sweet
e04a3734e7
Apply patch from George Garvey to make Fl_Text_Display/Buffer based on
...
NEdit 5.3...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-20 19:59:45 +00:00
Michael R Sweet
d0f18c45b5
Boy, aren't WIN32 compilers *so* much fun.
...
Fix more export problems, make some more static inline methods regular
functions, don't use FL_NORMAL_SIZE in a static initializer since BC++
doesn't seem to support it...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 21:25:39 +00:00
Matthias Melcher
319c89ab3c
minor changes to make FLTK compile as a DLL in CodeWarrior
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 22:43:53 +00:00
Matthias Melcher
2d30a9e6fa
Small changes to make Metrowerks CodeWarrior for Windows work.
...
See seperate posting with CodeWarrior project file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-29 00:10:05 +00:00
Michael R Sweet
ddd6ab5d83
Fix some editor problems; still have a few bugs that need to be resolved
...
before 1.1.0...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-10 21:04:20 +00:00
Michael R Sweet
c3cde61e98
Add documentation for using styles in text editor.
...
Add placeholder for style attributes - hidden + underlined - for
future use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 18:28:49 +00:00
Michael R Sweet
13ae564f03
Add color definitions for "dark red", etc.
...
Change "text" and "selecion" methods to return char *, not const char *,
since they return a changeable copy of the text.
Add range checking to style lookup in Fl_Text_Display.
Add syntax hilighting to editor example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 13:35:49 +00:00
Michael R Sweet
64b4177ef4
Copyright updates...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 15:11:33 +00:00
Michael R Sweet
cd9639c212
Update documentation screenshots (still have some to go...)
...
Cleanup some demos and the color chooser.
Restore code in Fl_Window::hotspot() to keep the window on the screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-12 21:33:34 +00:00
Michael R Sweet
3f6ff88fa5
Some files still had the old "fltk-bugs@easysw.com" address...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-09 12:52:13 +00:00
Michael R Sweet
09daf20b81
Documentation updates galore (up to chapter 7, still need to do chapter
...
8 and 9, tweek the appendices, and recapture the screenshots...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 19:24:00 +00:00
Michael R Sweet
a6ffe9abc0
Fix the editor demo and associated documentation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-18 19:21:45 +00:00
Michael R Sweet
74bb2305cb
Fl_File_Chooser.H and fl_file_chooser.H need to be the same...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-30 17:37:06 +00:00
Michael R Sweet
e4727142d4
Fl_Text* widgets backported to 1.1 (Carl, please confirm that I haven't
...
goofed with the layout->resize conversion. Also check fix for mMaxSize
being 0 so I set it to textsize())
contrast,inactive -> fl_contrast, fl_inactive, with defines for old names.
fl_rect() and fl_rectf() with color args.
fl_height, etc. with font,size args.
Send FL_RELEASE and FL_DRAG events to the pushed() widget by default.
Fix file chooser so it doesn't automatically change dirs if the only
matching name is a dir.
Updated Fl_Browser_ and Fl_Scrollbar for better mouse wheel support.
Moved DLL definitions to new Fl_Export.H.
Restore callback functionality in file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-04 12:21:34 +00:00
Michael R Sweet
94788c4628
Copyright 2001.
...
FLTK 1.0.11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-22 15:13:41 +00:00
Michael R Sweet
f87393aaa1
OK, now version 1.0.9
...
Updated email addresses to point to fltk.org domain...
Updated README and CHANGES files accordingly.
Updated makeinclude and Makefile files to put -L../lib before the
LDFLAGS/GLDFLAGS to avoid problem reported by Alexander.
documentation/Makefile wasn't including makeinclude.
Updated FLUID about window to show version 1.0.9.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:21:24 +00:00