Commit Graph

346 Commits

Author SHA1 Message Date
François Revol
dea524f585 beos: gcc2 fix 2012-11-25 18:22:26 +01:00
François Revol
fde30ff958 beos: Fix gui_poll()
Reintroduce curl_multi_fdset() and fix timeout calculations.
2012-11-25 18:17:55 +01:00
François Revol
c496d9080f beos: gcc2 fixes
We'll probably drop gcc2 support soon though.
2012-11-25 18:12:50 +01:00
François Revol
7e5ac02785 Whitespace cleanup 2012-11-25 18:04:57 +01:00
Adrien Destugues - PulkoMandy
eb28188661 Update the BeOS/Haiku port
* Toolbar use HVIF icons on Haiku
* Download window
* Some tweaks to the event loop to let network traffic happen

Signed-off-by: François Revol <revol@free.fr>
2012-11-24 21:39:40 +01:00
John-Mark Bell
617d655c7b Remove libxml 2012-11-10 00:11:57 +00:00
John-Mark Bell
f824ab8af4 Port save complete to libdom. 2012-11-03 23:19:45 +00:00
Michael Drake
35eb251244 Fix "error setting certificate verify locations" problem when the Choices file doesn't exist. Now there's a single place for front ends to set options overrides. Fix nsoption_setnull_charp leak. 2012-10-17 14:20:18 +01:00
Michael Drake
d88a839937 Remove suspension of bmp/gif images. It's completely redundant with the convert on demand core image cache. 2012-10-14 20:03:18 +01:00
Michael Drake
d9e7d58106 Fix up ripples from urldb change. 2012-10-11 11:20:02 +01:00
Vincent Sanders
e237ebac8f Split install and package targets.
Install target is for installing on the local machine and package generates a package
2012-08-23 11:46:31 +01:00
Michael Drake
37d148f4d7 Stab at fixing beos build for private bw struct. 2012-08-22 17:47:20 +01:00
Michael Drake
d4ca800268 Use proper function for box tree dump. 2012-08-20 16:46:55 +01:00
Michael Drake
854e556041 Remove unused includes. 2012-08-20 15:00:23 +01:00
Michael Drake
b6c149f3d6 Convert to use selection_copy_to_clipboard() and font style passed via gui_add_to_clipboard. Note: untested. 2012-08-13 14:52:59 +01:00
Michael Drake
d106091d6e Pass font plot style out to front end clipboard append function. 2012-08-13 14:43:04 +01:00
Michael Drake
986bc5ff83 Simplify font colour acquisition. 2012-08-13 13:54:00 +01:00
François Revel
c48bb86cb1 Fix building on Haiku.
Some ui_color codes were renamed recently. Account for this.

svn path=/trunk/netsurf/; revision=13879
2012-04-17 19:08:30 +00:00
François Revel
5a42a7a791 Fix the fix. (we used a different name for this struct member than on other platforms) :p
svn path=/trunk/netsurf/; revision=13770
2012-03-29 00:05:54 +00:00
Michael Drake
ce20021df7 Fix colour string matching. Lose unneeded case insensitivity in matching.
svn path=/trunk/netsurf/; revision=13739
2012-03-27 11:02:35 +00:00
Michael Drake
eb189092c7 Constify param to gui_system_colour_char function.
svn path=/trunk/netsurf/; revision=13737
2012-03-27 10:47:29 +00:00
François Revel
b9a2def970 Fix BeOS build:
- comment out unneeded includes for now,
- fix static lib linking order.

svn path=/trunk/netsurf/; revision=13713
2012-03-25 23:03:11 +00:00
François Revel
a66adbbfef Rename BeOS frontend files to strip the useless beos_ prefix. Fix includes and the rest so it builds.
svn path=/trunk/netsurf/; revision=13554
2012-03-22 21:48:24 +00:00
François Revel
71956c0265 Build fix for BeOS:
- don't include options.h directly,
- typo.

svn path=/trunk/netsurf/; revision=13551
2012-03-22 21:11:35 +00:00
Vincent Sanders
1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
François Revel
18b3ae0dec Since nsurl wants to add // to url schemes, just abide by it. Third / separates the type and name.
svn path=/trunk/netsurf/; revision=13534
2012-03-19 03:19:03 +00:00
François Revel
ea94b3210c Fix the BeOS build. The rsrc: fetcher was left behind some fetcher changes.
svn path=/trunk/netsurf/; revision=13533
2012-03-19 02:46:45 +00:00
Michael Drake
6794af012e Constify rect param to gui_window_drag_start.
svn path=/trunk/netsurf/; revision=13397
2012-01-11 16:45:17 +00:00
Michael Drake
04ece30fa9 Pass pointer constraints for drag out to front ends. Ensure content scrollbar drag termination always informs the browser window layer that the drag is over.
svn path=/trunk/netsurf/; revision=13395
2012-01-11 14:20:26 +00:00
Michael Drake
67f2470d5a Pass whether background images are wanted in redraw_context.
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +00:00
John Mark Bell
f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
John Mark Bell
07309888d6 return;
Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched.

svn path=/trunk/netsurf/; revision=13182
2011-11-27 14:14:36 +00:00
John Mark Bell
d5bb9d98e7 Build resource: map at start time
Remove stylesheet url globals -- the core will always use resource:{default,quirks,adblock}.css as appropriate

svn path=/trunk/netsurf/; revision=12949
2011-10-05 08:32:52 +00:00
Michael Drake
231dfe5887 Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12931
2011-10-03 16:51:46 +00:00
John Mark Bell
f27d5a3e15 Remove gui_multitask
svn path=/trunk/netsurf/; revision=12828
2011-09-21 00:25:09 +00:00
François Revel
6814a07243 gcc 2.95 knows about named initializers... just not for C++ :(
svn path=/trunk/netsurf/; revision=12768
2011-09-06 22:22:22 +00:00
Michael Drake
0f40fbae49 Fill out struct after creation.
svn path=/trunk/netsurf/; revision=12762
2011-09-06 21:00:10 +00:00
Michael Drake
0401d52f51 Remove gui_window_frame_resize_start() functions.
svn path=/trunk/netsurf/; revision=12738
2011-09-05 15:35:34 +00:00
Michael Drake
65886b3539 Don't need to attach children to scaffolding, because there aren't any.
svn path=/trunk/netsurf/; revision=12728
2011-09-05 10:35:59 +00:00
Michael Drake
8d957ca286 Remove unused nsbeos_gui_window_attach_child function.
svn path=/trunk/netsurf/; revision=12726
2011-09-05 10:06:42 +00:00
Michael Drake
7758677c9e Delete same from GTK code copy in BeOS code.
svn path=/trunk/netsurf/; revision=12725
2011-09-05 10:02:46 +00:00
Michael Drake
e288ed24fc Remove frames handling from gui_create_browser_window().
svn path=/trunk/netsurf/; revision=12724
2011-09-05 09:58:57 +00:00
Michael Drake
5be6bd452d Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
svn path=/trunk/netsurf/; revision=12711
2011-09-04 18:20:24 +00:00
Vincent Sanders
cd554e6f1e make image content handlers build conditional from teh makefile
svn path=/trunk/netsurf/; revision=12673
2011-08-28 14:29:15 +00:00
Michael Drake
ddc9964907 Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12659
2011-08-24 13:43:54 +00:00
Michael Drake
008c5da9ba Fix up BeOS front end.
svn path=/trunk/netsurf/; revision=12600
2011-07-13 13:33:51 +00:00
Michael Drake
1b03b5dfae Fix up BeOS for r12574 API change.
svn path=/trunk/netsurf/; revision=12577
2011-07-06 12:45:38 +00:00
Michael Drake
eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
ee5dfee544 Remove search function that's implemented in the core.
svn path=/trunk/netsurf/; revision=12523
2011-06-28 12:18:56 +00:00
Michael Drake
2bedf4d88f Frond ends signal end of drag with call to browser_window_mouse_track.
svn path=/trunk/netsurf/; revision=12515
2011-06-27 17:45:17 +00:00
Michael Drake
dea7683985 Remove gui_window_set_scale().
svn path=/trunk/netsurf/; revision=12502
2011-06-24 12:01:24 +00:00
Michael Drake
5a4c8916ef If iframes are reformatted due to containing document reflow, don't need to redraw them since they will be redrawn when the containing document is redrawn. Make iframe handling more robust.
svn path=/trunk/netsurf/; revision=12497
2011-06-24 09:30:33 +00:00
François Revel
4ebb145a7d Automatically build an rdef file importing the resources listed as dependencies for BeOS.
svn path=/trunk/netsurf/; revision=12306
2011-05-08 01:03:44 +00:00
François Revel
20ae506d25 Add the icons to the BeOS resources.
svn path=/trunk/netsurf/; revision=12301
2011-05-07 22:03:17 +00:00
François Revel
e679fc7bf5 Fix BeOS build after the content_factory merge.
svn path=/trunk/netsurf/; revision=12290
2011-05-07 17:17:54 +00:00
John Mark Bell
e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
François Revel
9fef803d1a Even less debug output.
svn path=/trunk/netsurf/; revision=12234
2011-04-22 17:59:00 +00:00
François Revel
c64bd92922 Tone down debug output a bit.
svn path=/trunk/netsurf/; revision=12222
2011-04-22 10:58:28 +00:00
François Revel
d2174fa8cc Change rsrc: fetcher to check the mime type of resources from the extension. Add needed resource to get about: working.
svn path=/trunk/netsurf/; revision=12119
2011-03-21 21:15:58 +00:00
François Revel
fea411b71e Fix BeOS build:
- missing include,
- use css_computed_color() accessor instead of struct css_computed_style member as it's now opaque to us.

svn path=/trunk/netsurf/; revision=12100
2011-03-17 20:53:59 +00:00
Michael Drake
a70c32422a gui_find_resource --> gui_get_resource_url.
svn path=/trunk/netsurf/; revision=12089
2011-03-17 11:57:09 +00:00
John Mark Bell
408f78b737 Move schedule.h to utils/
svn path=/trunk/netsurf/; revision=12039
2011-03-13 22:50:54 +00:00
Michael Drake
55fd1d0133 Front ends don't need to call thumbnail_get_redraw_scale() now.
svn path=/trunk/netsurf/; revision=11946
2011-03-09 21:04:15 +00:00
Michael Drake
e8fe0e64fd Remove nsbeos_plot_set_scale(), nsbeos_plot_get_scale() and nsbeos_plot_scale.
svn path=/trunk/netsurf/; revision=11944
2011-03-09 18:37:50 +00:00
Michael Drake
a183951c23 Don't scale text plots in front end (BeOS).
svn path=/trunk/netsurf/; revision=11938
2011-03-08 18:48:46 +00:00
John Mark Bell
de688b59e1 Fix text selection
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
François Revel
064ab5bec9 Fix build: inline what used to be gui_window_redraw().
svn path=/trunk/netsurf/; revision=11902
2011-03-04 11:17:07 +00:00
François Revel
1842be491d Forward resources: to rsrc: which the BeOS port already has to use the stuff embedded in the binary. Doesn't seem to be used yet though !?
svn path=/trunk/netsurf/; revision=11836
2011-02-27 00:19:23 +00:00
John Mark Bell
e591889566 The frontend has no business calling fetch_poll(). Stop it.
svn path=/trunk/netsurf/; revision=11773
2011-02-23 22:30:31 +00:00
Vincent Sanders
0231675abf add resource handling
move gtk and framebuffer to use generic resource handling

svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
François Revel
e8ce7bd953 Fix the build.
svn path=/trunk/netsurf/; revision=11766
2011-02-22 23:50:18 +00:00
Michael Drake
ef18fe4384 Pass bw, not content.
svn path=/trunk/netsurf/; revision=11726
2011-02-20 16:13:50 +00:00
Michael Drake
1545c2bbae Port BeOS front end to browser_window_redraw().
svn path=/trunk/netsurf/; revision=11725
2011-02-20 16:07:43 +00:00
Michael Drake
77985f4faa Use core thumbnail_redraw() function in BeOS front end.
svn path=/trunk/netsurf/; revision=11722
2011-02-20 15:32:20 +00:00
Michael Drake
0bad971aec Impose maximum constraint on BeOS intrim thumbnail size.
svn path=/trunk/netsurf/; revision=11721
2011-02-20 15:30:23 +00:00
Michael Drake
a66575dfeb Remove thumbnail_create() from browser.h. Make RO front end use the core thumbnail_redraw function. Make other front ends include the right header for thumbnail_create().
svn path=/trunk/netsurf/; revision=11716
2011-02-19 22:17:54 +00:00
Michael Drake
94e7b44ebc Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
svn path=/trunk/netsurf/; revision=11683
2011-02-14 22:05:39 +00:00
Michael Drake
fe7921a387 Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
François Revel
e1c11a1d54 Pick the CSS system colours from ui_color() and BScreen::DesktopColor(). Update those when they are updated in ZETA. Also update the toolbar and statusbar background.
svn path=/trunk/netsurf/; revision=11535
2011-01-30 19:23:42 +00:00
François Revel
541864d501 Fix BeOS build.
svn path=/trunk/netsurf/; revision=11531
2011-01-30 17:25:36 +00:00
Vincent Sanders
fbb1139214 add default system colour handlers to each frontend
svn path=/trunk/netsurf/; revision=11530
2011-01-30 13:40:47 +00:00
François Revel
a5b5eedd50 Attempt to exit the main loop properly from the replicant view destructor. There are still some issues with multiple instances or on second instanciation though...
svn path=/trunk/netsurf/; revision=11030
2010-12-12 01:36:40 +00:00
François Revel
6b5a0c838a Fix passing replicant args. Remove debug output.
svn path=/trunk/netsurf/; revision=11029
2010-12-12 00:47:22 +00:00
François Revel
84ca0e364b Fix Replicant instanciation, though it doesn't get the url correctly yet, and leaves stuff behind when removed (like the main thread).
svn path=/trunk/netsurf/; revision=11028
2010-12-12 00:26:36 +00:00
Rob Kendrick
5285df8c33 Remove last remnants of Aliases
svn path=/trunk/netsurf/; revision=11003
2010-12-05 15:08:52 +00:00
Michael Drake
1a1bf3d2f0 Purge Aliases file stuff.
svn path=/trunk/netsurf/; revision=10982
2010-12-04 20:19:17 +00:00
Michael Drake
5eaeaed909 Remove Hubbub and Wapcaplet initialisation and finalisation.
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
Vincent Sanders
802f58f10d Futher simplification of the makefile
Use target makefiles to set build sources

svn path=/trunk/netsurf/; revision=10916
2010-10-29 00:54:27 +00:00
Vincent Sanders
72cf3adc78 Beginning of NetSurf build infrastructure cleanup
Provide makefile fragment for each target, isolates the target makefile changes into one place simplifying the top level makefile

svn path=/trunk/netsurf/; revision=10910
2010-10-27 18:39:24 +00:00
John Mark Bell
6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Michael Drake
aa877fe856 Remove todo comment for something already done.
svn path=/trunk/netsurf/; revision=10708
2010-08-14 17:09:13 +00:00
François Revel
8e84978562 Fix colors on copying to clipboard.
svn path=/trunk/netsurf/; revision=10704
2010-08-14 16:08:56 +00:00
Michael Drake
a84a8618f1 Remove printfs from bitmap plotter.
svn path=/trunk/netsurf/; revision=10699
2010-08-14 09:33:36 +00:00
Michael Drake
0612abef63 Delete dead code and tweak polygon plotter. Still wrong, but better.
svn path=/trunk/netsurf/; revision=10692
2010-08-13 10:59:40 +00:00
Michael Drake
01dc1ff435 Turn on knockout rendering.
svn path=/trunk/netsurf/; revision=10691
2010-08-13 08:41:44 +00:00
Michael Drake
2bd5c7a04a While bitmap_test_opaque() is unimplemented, it is unsafe to assume it is opaque, so return false instead.
svn path=/trunk/netsurf/; revision=10690
2010-08-13 08:38:26 +00:00
Michael Drake
312b1e9b4c Remove dead code. Fix bitmap_set_opaque() to apply the opacity value it's passed, rather than just setting it to true.
svn path=/trunk/netsurf/; revision=10689
2010-08-13 08:36:00 +00:00
François Revel
4cb2657d19 Copy over the gtk implementation of url_to_path/path_to_url(). This fixes getting the mime type of local files.
svn path=/trunk/netsurf/; revision=10688
2010-08-12 13:33:53 +00:00
François Revel
f1252a6ff1 Include the resource id enumeration header. Not used yet.
svn path=/trunk/netsurf/; revision=10682
2010-08-03 21:42:43 +00:00
François Revel
4c17317388 Move the resource id enum to its own header. Add a ersizing handle pic for the replicant.
svn path=/trunk/netsurf/; revision=10681
2010-08-03 21:24:55 +00:00
François Revel
982dc9e128 Fix BeOS build:
- struct content -> hlcache_handle
- login window (though it won't work yet as the message isn't handled, and since we don't have the window pointer anymore we can't add the alert as subset of the window...),
- rsrc fetcher,
- netsurf_init() args (but the replicant is still broken due to this),
- export the realpath() hack as it's needed elsewhere too.

svn path=/trunk/netsurf/; revision=10677
2010-08-02 23:35:35 +00:00
Chris Young
004aee8281 Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
selections within NetSurf window to text fields (does not work across windows).

todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back

svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Michael Drake
513793a060 Fix inventory file leafname.
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
1510bbd3ad Check the last character for a path separator, rather than the NULL string termination.
svn path=/trunk/netsurf/; revision=10622
2010-07-09 19:55:13 +00:00
Chris Young
d6eb28d5de Replace unnecessarily complicated path concatenation with something simpler and
easily adaptable to different platform path structures.

svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
Michael Drake
b010a25771 + Refactor input handling from browser window code into content
handlers.
+ Disentangle all box tree manipulation from browser window
  code and put it where it belongs.
+ Move other content specific and other irrelevant code from
  browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
  used by browser window code, and it is used by treeview
  windows on the treeview branch.

svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
John Mark Bell
000e6ad3de It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).

svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Vincent Sanders
03bb3e8636 remove _GNU_SOURCE define from everywhere.
strndup is not standard so provide an implementation.

svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
John Mark Bell
2748fe4f64 Make downloads work again.
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
Vincent Sanders
95e4a737de rationalise the usage of the file scheme
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
Vincent Sanders
7e67527267 first part of initialisation refactor move gui_init2 into frontends
svn path=/trunk/netsurf/; revision=10202
2010-03-29 16:59:30 +00:00
Daniel Silverstone
270ef59a98 Merge jmb/new-cache; r=dsilvers,rs=vince
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00
Chris Young
033b5d815a Move code which extracts the filename from a given path into frontend.
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
John Mark Bell
e01c0ea326 Use correct length definition
svn path=/trunk/netsurf/; revision=9867
2010-01-23 13:48:06 +00:00
John Mark Bell
9f69106ac4 Construct font_family from core family name.
svn path=/trunk/netsurf/; revision=9863
2010-01-22 07:40:25 +00:00
Vincent Sanders
e01d93f344 Refactor main into the frontends
remove unused embedded global

svn path=/trunk/netsurf/; revision=9851
2010-01-20 20:32:30 +00:00
François Revel
314dd0cd50 Add missing gui_window_scroll_visible().
svn path=/trunk/netsurf/; revision=9784
2010-01-03 21:06:53 +00:00
François Revel
a3a0044185 Default BeOS implementation for save_complete_gui_save() and save_complete_htmlSaveFileFormat().
svn path=/trunk/netsurf/; revision=9780
2010-01-02 20:41:24 +00:00
François Revel
3ea6fa1fd9 Fix getting the box style to a BFont. for the clipboard.
svn path=/trunk/netsurf/; revision=9778
2010-01-02 02:54:30 +00:00
François Revel
6c95f7b967 Accomodate for plotter API change.
svn path=/trunk/netsurf/; revision=9777
2010-01-02 02:52:33 +00:00
François Revel
7b6ca89c57 Actually fake stdbool inclusion here as well.
svn path=/trunk/netsurf/; revision=9776
2010-01-02 02:51:06 +00:00
François Revel
b1fc7d44ab Remove copy-paste leftover ?
svn path=/trunk/netsurf/; revision=9775
2010-01-02 02:26:21 +00:00
François Revel
33034bf6f3 Handle new parameter to fetch_send_callback().
svn path=/trunk/netsurf/; revision=9774
2010-01-02 02:24:45 +00:00
François Revel
ba2396e554 s/TRANSPARENT/NS_TRANSPARENT/
svn path=/trunk/netsurf/; revision=9773
2010-01-02 02:14:21 +00:00
John Mark Bell
355799ce0b Merge branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9729
2009-12-17 23:55:02 +00:00
François Revel
d16eb2d650 Typo.
svn path=/trunk/netsurf/; revision=8984
2009-08-02 11:31:35 +00:00
John Mark Bell
ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell
1e96962f6f Fix stupid
svn path=/trunk/netsurf/; revision=8672
2009-07-22 07:59:55 +00:00
John Mark Bell
6e13c2fb0a Scale font sizes, for better accuracy.
svn path=/trunk/netsurf/; revision=8657
2009-07-21 16:55:35 +00:00
John Mark Bell
2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Vincent Sanders
86232d72a6 next round of plotter refactor
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Vincent Sanders
680298e61c plotters line refactor
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
Vincent Sanders
f9ecd56f62 ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Vincent Sanders
0ade453958 Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
Vincent Sanders
1165edf662 remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
Vincent Sanders
aa26843411 Improve bitmap plotter API
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
John Mark Bell
243c1ba03f Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
svn path=/trunk/netsurf/; revision=7593
2009-05-28 10:39:53 +00:00
François Revel
e9fabbbc13 Moving the pen to 0,0 helps a lot making sure where we start drawing...
svn path=/trunk/netsurf/; revision=7313
2009-04-25 02:38:39 +00:00
François Revel
48726077be Add some support to handle transforms in plot_path, but it's disabled as it seems to be broken.
svn path=/trunk/netsurf/; revision=7312
2009-04-25 01:53:46 +00:00
François Revel
0ac498bffb Implement plot_path for BeOS, still missing transform support...
But already looks nice: http://revolf.free.fr/beos/shots/shot_beos_netsurf_svg_001.png

svn path=/trunk/netsurf/; revision=7311
2009-04-25 01:42:46 +00:00
John Mark Bell
daf7a52dd6 Hubbub is no longer optional.
Remove libxml2 parser binding.

svn path=/trunk/netsurf/; revision=7115
2009-04-17 00:54:27 +00:00
François Revel
451c8a69a3 Fix Haiku vector icon
svn path=/trunk/netsurf/; revision=6617
2009-02-25 03:31:02 +00:00
François Revel
e89384911f Fix BeOS build. Please try to patch all platforms when breaking things like this :p
svn path=/trunk/netsurf/; revision=6541
2009-02-16 19:08:20 +00:00
John Tytgat
fbf6d4cd41 - Constify parameters of struct plotter_table::polygon and struct plotter_table::path
- riscos/save_draw.c(ro_save_draw_plotters): Make it static.
- desktop/save_pdf/pdf_plotters.c(pdf_plot_path): fix broken implementation (coordinates path were wrong, no clip/text mode update, transformation matrix was overwritten); only update fill and/or 
stroke color when fill and/or stroke is done.
  (pdf_begin): disable compression when PDF_DEBUG is set

svn path=/trunk/netsurf/; revision=6361
2009-02-03 01:27:54 +00:00
John Tytgat
aa61544828 strlen() on constant string can be replaced by sizeof()-1
svn path=/trunk/netsurf/; revision=6333
2009-02-01 13:59:35 +00:00
François Revel
174a8dcca2 - when replicated, forbid creating windows, even though it initially works it crashes as soon as the menus are used.
- added an about box from the infos in the gtk code, still not perfect.

svn path=/trunk/netsurf/; revision=5590
2008-10-17 21:59:44 +00:00
François Revel
3f0ded25ba Call netsurf_init() from the thread creating the replicant, then the main loop from the thread we created. This avoids a deadlock with the replicant in BeHappy in Haiku. (I should probably make BTranslatorRoster not lock be_app anyway though).
svn path=/trunk/netsurf/; revision=5588
2008-10-16 20:52:00 +00:00
François Revel
ce07ebcea8 - handle NetPositive what codes; this makes it easy to use NetSurf instead by just changing the archived message used to instantiate it.
- fix background view color, some host apps hide the BDragger, making it visible.
- handle mailto: urls as a special case, we historically use the prefered app for text/x-email.

svn path=/trunk/netsurf/; revision=5584
2008-10-16 16:01:44 +00:00
François Revel
b3a5250f99 Add Replicant support. No it's not about cyborgs, just embedding NetSurf into another app, like Tracker (the desktop), or documentation browsers like BeHappy...
svn path=/trunk/netsurf/; revision=5583
2008-10-16 14:24:09 +00:00
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