Commit Graph

47 Commits

Author SHA1 Message Date
François Revel f94f5cef35 Fix copying plain text selection.
svn path=/trunk/netsurf/; revision=5538
2008-10-11 16:58:22 +00:00
François Revel 4e79ee3d07 - support BITMAP_CLEAR_MEMORY in create_bitmap()
- copying to clipboard now constructs a text_run_array for StyledEdit, that is added to the clipboard. In applications supporting it it pastes the text with the correct fonts and sizes, and the text colors.
- tried to find which line in source code the selection starts to open the editor there, but it's not finished so it's disabled.

svn path=/trunk/netsurf/; revision=5533
2008-10-10 21:43:25 +00:00
François Revel 8710d3a814 - fix for copying selection to clipboard
- fix some leaks
- prepare for about box (use about html from rsrc: but it's broken yet)
- if more than 1 refs received at the same time, open the extra ones in a new window.

svn path=/trunk/netsurf/; revision=5511
2008-10-09 01:22:14 +00:00
François Revel 54013eb1fa Override checking the mime type for known extensions. At least on my system, the mime sniffer thinks css files are text/x-source-code, and NS didn't like that.
svn path=/trunk/netsurf/; revision=5509
2008-10-08 22:05:11 +00:00
François Revel 8b992259f1 Fix drawing the selection.
svn path=/trunk/netsurf/; revision=5508
2008-10-08 20:55:18 +00:00
François Revel c31a54788e Add clipboard support. Works mostly.
svn path=/trunk/netsurf/; revision=5507
2008-10-08 20:08:54 +00:00
François Revel bc3b994817 -enlarge invalidate rect by 1x1 in gui_window_redraw, this fixes caret updates.
- implement clipboard handling, not yet used though.

svn path=/trunk/netsurf/; revision=5506
2008-10-08 19:43:28 +00:00
François Revel 6ce8d637d6 Fix multibyte character input.
svn path=/trunk/netsurf/; revision=5505
2008-10-08 00:08:48 +00:00
François Revel 493fb9ed87 Fix app signature for Haiku's StyledEdit.
svn path=/trunk/netsurf/; revision=5504
2008-10-07 01:36:11 +00:00
François Revel 21f541fdef Dereference symlinks on B_REFS_RECEIVED. This way dropping a symlink to an html file actually opens the target, and succeeds in finding its related files. One can still enter the path to the symlink itself in the url bar as file:// anyway.
svn path=/trunk/netsurf/; revision=5503
2008-10-07 00:42:14 +00:00
François Revel 6fd280ad2e - fix using undefined fd_sets in case active was false. Looks like I was too quick at copy-pasting gtk code. This should fix the busy-loop behaviour on Haiku.
- remove dead gtk code.

svn path=/trunk/netsurf/; revision=5502
2008-10-07 00:15:19 +00:00
François Revel 2ab25ce7db Snif local files entirely the BeOS way, using the mime db, this fixes taking symlinks to html as plain text.
Make sure the mime db has the needed types just in case they are missing.

svn path=/trunk/netsurf/; revision=5501
2008-10-06 23:53:59 +00:00
François Revel 5e32d1ea12 Uncomment the code to focus the view on mouse click, much better.
svn path=/trunk/netsurf/; revision=5500
2008-10-06 22:34:03 +00:00
François Revel 497c218d4a - less debug output
- fixed mouse handling, now text input works again.

svn path=/trunk/netsurf/; revision=5496
2008-10-06 04:11:28 +00:00
François Revel bd276020aa - fix some coordinate handling
- bail out trying to redraw if there are more than 1 pending resize, this almost suppresses flicker on resize, and also avoids having the window busy for 10s redrawing 20 times.

svn path=/trunk/netsurf/; revision=5495
2008-10-06 02:07:55 +00:00
François Revel 482ffb2887 - Remove dead gtk code
- fix overlapping of toolbar and content by 1 pixel

svn path=/trunk/netsurf/; revision=5494
2008-10-06 01:56:54 +00:00
François Revel 1b37dbcd2e Remove dead GTK code & (c)
svn path=/trunk/netsurf/; revision=5493
2008-10-06 00:32:46 +00:00
François Revel de531c691a Make gui_poll() a little better. Don't check for the event pipe fd if select returned an error.
svn path=/trunk/netsurf/; revision=5492
2008-10-06 00:29:02 +00:00
François Revel eda397e028 Fix plot_fill and plot_clip coords.
Added some code to test plotters. -DTEST_PLOTTERS and call test_plotters_main() from main() to test. This should allow comparison on other platforms if they implement it too.

svn path=/trunk/netsurf/; revision=5491
2008-10-05 21:42:04 +00:00
François Revel 483bdf7987 Add Aliases to resources for later use.
svn path=/trunk/netsurf/; revision=5490
2008-10-05 21:38:57 +00:00
François Revel b36a6f7734 Add Hubbub support, should work much better when actually initializing it.
svn path=/trunk/netsurf/; revision=5487
2008-10-05 20:35:28 +00:00
François Revel 022616ce99 Fix the white flickering and bad redraws (text too dark due to being drawn twice), by setting the ViewColor to transparent (avoiding app_server to draw it), and doing it ourselves in plot_clg() just before drawing the rest.
svn path=/trunk/netsurf/; revision=5486
2008-10-05 15:41:24 +00:00
François Revel ae7290a2e2 Fix build and opening source file in editor.
svn path=/trunk/netsurf/; revision=5485
2008-10-05 15:10:22 +00:00
François Revel 54ccbc94ed Add support for editting page source.
svn path=/trunk/netsurf/; revision=5479
2008-10-03 03:42:10 +00:00
François Revel 0980d865b4 Fix prototype to get it as C linkage.
svn path=/trunk/netsurf/; revision=5477
2008-10-03 00:27:51 +00:00
François Revel 5de594527f - cleanup dead gtk code and copyrights
- fix refs received before we have a window open (as in OpenWith...), maybe I should just open a new window each time anyway ?

svn path=/trunk/netsurf/; revision=5476
2008-10-02 19:57:19 +00:00
François Revel e4cdeb178e Use find_directory() to find where to put settings instead of polluting ~/.
svn path=/trunk/netsurf/; revision=5475
2008-10-02 18:10:22 +00:00
François Revel 2dd3c20aab Make sure menu items all get the target set recursively.
svn path=/trunk/netsurf/; revision=5474
2008-10-02 17:26:06 +00:00
François Revel 0f71221134 Add window shortcuts for toolbar actions.
svn path=/trunk/netsurf/; revision=5473
2008-10-02 17:20:06 +00:00
François Revel d2f5d19da6 Partially fix menu shortcut handling, however I'm not sure how to set Function keys...
svn path=/trunk/netsurf/; revision=5472
2008-10-02 17:03:39 +00:00
François Revel 121ac2c698 Fix R5 BONE build.
svn path=/trunk/netsurf/; revision=5471
2008-10-02 16:52:45 +00:00
François Revel f9f9478901 Implemented the login dialog.
svn path=/trunk/netsurf/; revision=5470
2008-10-02 16:45:21 +00:00
François Revel 7f100d8d49 - Cleanup: remove dead gtk code and its copyrights
- remove unneeded fieltype hashlist code we just use the mime roster
- implemented saving bitmaps

svn path=/trunk/netsurf/; revision=5469
2008-10-02 14:10:52 +00:00
François Revel 08073fb3d6 - switch to using builtin css files from rsrc:
- add debug output to trace keyboard input as textinput doesn't work anymore.

svn path=/trunk/netsurf/; revision=5468
2008-10-02 13:34:20 +00:00
François Revel 9e640a2ab9 First try at implementing menus, from RiscOS ones but lots don't work yet.
svn path=/trunk/netsurf/; revision=5467
2008-10-02 00:11:30 +00:00
François Revel d4c4800fec - iMissing knockout option to false
- Use Begin/EndViewTransaction() though it doesn't seem to help much reduce flicker
- some fiddling with bitmaps

svn path=/trunk/netsurf/; revision=5466
2008-10-01 21:04:32 +00:00
François Revel dcb33e9835 Implemented thumbnails, though we don't use them yet.
svn path=/trunk/netsurf/; revision=5465
2008-10-01 20:44:39 +00:00
Michael Drake 2557b029ae Fix Amiga bitmap_get_bpp to be same as others. (It's bytes per pixel, not bits.) Fix param comments for vbitmap.
svn path=/trunk/netsurf/; revision=5281
2008-09-07 19:08:57 +00:00
François Revel 7330f726e5 Fix BeOS build. We don't handle tabs yet though.
svn path=/trunk/netsurf/; revision=5209
2008-08-26 23:58:27 +00:00
François Revel 44856d86d4 Fix the BeOS build:
- hack to work around stdbool.h issue with R5 devkit
- fix prototypes
- fix bitmap code
- fix copy-paste on forward button
- remove unused gif throbber loading code
- R5 rgb_color doesn't have != operator, use memcmp()
- switch back to file based [beos]default.css for the time being
- realpath() hack for R5
Regressions:
- asserts on haiku-os.org
- no libns* yet, so less image support
- text field input doesn't work anymore.

svn path=/trunk/netsurf/; revision=5109
2008-08-13 19:35:41 +00:00
Rob Kendrick 9eacc5ca04 Make user agent string and default homepage configurable from Makefile.config
svn path=/trunk/netsurf/; revision=4803
2008-07-29 15:10:31 +00:00
John Tytgat 35d3d6d0bb First merge of Adam Blokus' GSoC work from his branch 'branches/adamblokus/netsurf'.
Merged revisions 4212-4552,4554-4709,4711-4724 via svnmerge from 
svn://svn.netsurf-browser.org/branches/adamblokus/netsurf

........
  r4212 | adamblokus | 2008-05-26 19:42:31 +0200 (Mon, 26 May 2008) | 4 lines
  
  Pdf plotting skeleton pinned on Print Preview in GTK.
  Just creates a file and draws lines. 
........
  r4213 | adamblokus | 2008-05-27 00:11:03 +0200 (Tue, 27 May 2008) | 4 lines
  
  Pdf plotter - added drawing some graphic primitives.
  Still with limited functionality, but a snapshot of the
  currently viewed page can be made and resembles the original.
........
  r4214 | adamblokus | 2008-05-27 11:43:31 +0200 (Tue, 27 May 2008) | 2 lines
  
  Corrected encoding name
........
  r4215 | adamblokus | 2008-05-27 12:47:26 +0200 (Tue, 27 May 2008) | 3 lines
  
  Colours and polygons added.
........
  r4217 | adamblokus | 2008-05-27 21:39:35 +0200 (Tue, 27 May 2008) | 6 lines
  
  Added rectangles, filled boxes and clipping.
  Taken into consideration joty's comments.
  Added a todo list for this part.
  Added some debug stuff and checking boundaries.
........
  r4218 | adamblokus | 2008-05-28 12:37:30 +0200 (Wed, 28 May 2008) | 2 lines
  
  Added path ploting (not sure if valid argument order for bezier) and dashed/dotted line styles
........
  r4221 | adamblokus | 2008-05-28 22:11:05 +0200 (Wed, 28 May 2008) | 3 lines
  
  Some more options in graphic primitives and normalizing some parameters.
........
  r4235 | adamblokus | 2008-05-31 22:54:56 +0200 (Sat, 31 May 2008) | 4 lines
  
  Plotting changed as jmb suggested (is the least invasive one from the possible)
  Added dummy bitmap plotting - way of plotting an image is determined by its type. 
........
  r4251 | adamblokus | 2008-06-03 17:12:15 +0200 (Tue, 03 Jun 2008) | 3 lines
  
  Added plotting jpg and png images - quite a lot to improve in this code, but it seems to work ;)
........
  r4263 | adamblokus | 2008-06-05 14:20:32 +0200 (Thu, 05 Jun 2008) | 3 lines
  
  Added hadling images other than png and jpeg - with transparency.
........
  r4267 | adamblokus | 2008-06-06 15:36:34 +0200 (Fri, 06 Jun 2008) | 5 lines
  
  Added handling NULL-returns from all mallocs.
  Added plot_bitmap_tile handling.
  Changed code style a little.
........
  r4327 | adamblokus | 2008-06-12 17:46:34 +0200 (Thu, 12 Jun 2008) | 5 lines
  
  Added a first prototype of the paged-output organization.
  Still not sure about naming, file locations etc.
  Works with the same pdf plotting as before.
........
  r4328 | adamblokus | 2008-06-13 13:52:15 +0200 (Fri, 13 Jun 2008) | 4 lines
  
  Added primitive width adjustment and outputing the whole
  website in multiple pages.
........
  r4336 | joty | 2008-06-15 15:06:57 +0200 (Sun, 15 Jun 2008) | 1 line
  
  Fix RISC OS build failure (change r4235 wasn't complete).
........
  r4337 | joty | 2008-06-15 18:15:32 +0200 (Sun, 15 Jun 2008) | 16 lines
  
  This enables "Export PDF" in RISC OS build:
  
  - Docs/Doxyfile(PREDEFINED): Added WITH_PDF_EXPORT
  - Makefile.sources(S_PDF): Add to RISC OS target as well.
  - utils/config.h: Define WITH_PDF_EXPORT which controls if we want to have
    PDF export functionality or not.
  - riscos/save_pdf.c,riscos/save_pdf.h(save_as_pdf): Use PDF print API made
    by Adam Blokus to write a PDF file under RISC OS.
  - riscos/save.c: Call save_as_pdf added.
  - riscos/menus.c: Add 'Export->PDF' menu entry.
  - riscos/menus.h(menu_action): Added BROWSER_EXPORT_PDF.
  - desktop/gui.h(gui_save_type): Added GUI_SAVE_PDF.
  - desktop/print.c(print_run): Added return value.
  - Makefile(CCACHE): Moved closed to the place where CC is set for the first time.
    (LDFLAGS): Centralised adding all non-pkgconfig libraries and added Haru + PNG libs.
........
  r4343 | adamblokus | 2008-06-16 01:08:52 +0200 (Mon, 16 Jun 2008) | 3 lines
  
  Added margins and page size adjustment.
........
  r4412 | adamblokus | 2008-06-21 20:22:07 +0200 (Sat, 21 Jun 2008) | 4 lines
  
  Added 'fuzzy' margins on page bottom. 
  Disabled direct png embedding, because it is too unstable in Haru now.
........
  r4421 | adamblokus | 2008-06-22 18:52:28 +0200 (Sun, 22 Jun 2008) | 2 lines
  
  Added "Save as.." dialog and Export->PDF menu entry. Print preview still works with default path.
........
  r4437 | adamblokus | 2008-06-25 02:44:46 +0200 (Wed, 25 Jun 2008) | 4 lines
  
  Added skeleton of applying loose layout.
  Minor code cleaning-up.
........
  r4492 | adamblokus | 2008-07-02 09:02:42 +0200 (Wed, 02 Jul 2008) | 5 lines
  
  Implemented the elementar ideas of the loose layout.
  Added scaling in the printing routine.
  Added some basic demonstrations.
........
  r4493 | adamblokus | 2008-07-02 09:05:55 +0200 (Wed, 02 Jul 2008) | 3 lines
  
  Cleaned up the loosing code - commited to much of leftover rubbish code.
........
  r4507 | adamblokus | 2008-07-04 14:25:48 +0200 (Fri, 04 Jul 2008) | 4 lines
  
  Added duplicating box tree and current content - window flickering during printing solved.
  Minor error checking after new HPDF_Image_AddSMask call.
........
  r4515 | adamblokus | 2008-07-06 22:28:16 +0200 (Sun, 06 Jul 2008) | 2 lines
  
  Changes in loosen layout (image resizing).
........
  r4517 | adamblokus | 2008-07-06 22:38:23 +0200 (Sun, 06 Jul 2008) | 2 lines
  
  Added pdf font handling and rendering functions with the use of Haru functions.
........
  r4555 | adamblokus | 2008-07-10 00:59:05 +0200 (Thu, 10 Jul 2008) | 2 lines
  
  Added a very basic and still buggy GTK print implementation.
........
  r4565 | adamblokus | 2008-07-10 14:50:16 +0200 (Thu, 10 Jul 2008) | 2 lines
  
  Added gtk printing one more time - I have forgotten to add the main file.
........
  r4566 | adamblokus | 2008-07-10 14:57:02 +0200 (Thu, 10 Jul 2008) | 2 lines
  
  removed error with comment
........
  r4569 | adamblokus | 2008-07-10 15:52:55 +0200 (Thu, 10 Jul 2008) | 5 lines
  
  Major style improvements - added a lot of doxygen comments, 
  followed tlsa's style guide.
  Added some more error checking, too.
........
  r4575 | adamblokus | 2008-07-10 18:48:26 +0200 (Thu, 10 Jul 2008) | 2 lines
  
  Cleaned up the code.
........
  r4687 | adamblokus | 2008-07-17 14:17:19 +0200 (Thu, 17 Jul 2008) | 2 lines
  
  Changed everything according to jmb's review plus some minor bug fixes to gtk_print.
........
  r4688 | adamblokus | 2008-07-17 17:16:34 +0200 (Thu, 17 Jul 2008) | 2 lines
  
  Solved the netsurf.glade clash from r4421.
........
  r4693 | adamblokus | 2008-07-18 18:11:51 +0200 (Fri, 18 Jul 2008) | 2 lines
  
  Fixed bug with wrong number of pages in gtk printing.
........
  r4695 | adamblokus | 2008-07-18 19:59:24 +0200 (Fri, 18 Jul 2008) | 3 lines
  
  - fixed uncommented line from the previous commit
  - fixed bug with scale bigger than 1.0 (incorretly clipped page)
........
  r4696 | adamblokus | 2008-07-18 23:28:00 +0200 (Fri, 18 Jul 2008) | 2 lines
  
  Fixed bug in gtk_print_font_paint (and nsfont_paint).
........
  r4697 | adamblokus | 2008-07-18 23:35:38 +0200 (Fri, 18 Jul 2008) | 2 lines
  
  Bug fix in nsfont_paint.
........
  r4711 | adamblokus | 2008-07-19 22:44:15 +0200 (Sat, 19 Jul 2008) | 2 lines
  
  Added gtk_selection files.
........
  r4712 | adamblokus | 2008-07-20 11:15:06 +0200 (Sun, 20 Jul 2008) | 2 lines
  
  Addam missing glade files.
........
  r4713 | joty | 2008-07-20 17:13:10 +0200 (Sun, 20 Jul 2008) | 1 line
  
  Follow change r4517 for RISC OS and BeOS platforms : Added pdf font handling and rendering functions with the use of Haru functions.
........
  r4714 | joty | 2008-07-20 18:19:50 +0200 (Sun, 20 Jul 2008) | 1 line
  
  Declare haru_nsfont iso define an instance for each C source including the font_haru.h header.  This fixes breakage of PDF export on RISC OS.
........
  r4724 | adamblokus | 2008-07-23 03:30:08 +0200 (Wed, 23 Jul 2008) | 6 lines
  
  Applied changes according to joty's review.
  Added checking the dimensions of a plotted image to pdf plotter.
  Commented out jpg embedding (it seems to cause some problems
  I'll bring it back when I figure out what's wrong) .
  Added back some files removed by mistake.
........


svn path=/trunk/netsurf/; revision=4741
2008-07-26 16:01:59 +00:00
François Revel 5e393e19ce Use bundled resources instead of separate files. throbber uses 'data' type also now.
svn path=/trunk/netsurf/; revision=4297
2008-06-07 02:48:31 +00:00
François Revel 8c1a5323e6 - We don't need the XPM icon.
- import res/* in the resource file to bundle them with the binary.

svn path=/trunk/netsurf/; revision=4293
2008-06-07 01:53:43 +00:00
François Revel b0fa2b299d Add copyrights
Notes on a plot_path implementation.

svn path=/trunk/netsurf/; revision=4292
2008-06-07 01:13:07 +00:00
François Revel 524e29c4df - fixed alpha bitmap drawing
- fixed polygon drawing
- newstyle throbber, loosely copied from the gtk one.

svn path=/trunk/netsurf/; revision=4259
2008-06-04 01:53:20 +00:00
François Revel 90a15a9753 The BeOS-specific part of the BeOS (and Haiku) port, modeled mostly from the GTK version.
Some fixes are needed elsewhere but non-obvious ones I'll post on the mailing list for discussion.
Currently it opens windows with a toolbar, url and status bar, a (yet empty) menu bar.
Rendering seems to work including scrolling at scale 1 (other non-tested).
framesets seems broken though.

svn path=/trunk/netsurf/; revision=4253
2008-06-03 19:07:09 +00:00