Commit Graph

34 Commits

Author SHA1 Message Date
Michael Drake
008c5da9ba Fix up BeOS front end.
svn path=/trunk/netsurf/; revision=12600
2011-07-13 13:33:51 +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
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
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
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
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
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
John Mark Bell
6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +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
John Mark Bell
355799ce0b Merge branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9729
2009-12-17 23:55:02 +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
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
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
c31a54788e Add clipboard support. Works mostly.
svn path=/trunk/netsurf/; revision=5507
2008-10-08 20:08:54 +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
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
54ccbc94ed Add support for editting page source.
svn path=/trunk/netsurf/; revision=5479
2008-10-03 03:42:10 +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
f9f9478901 Implemented the login dialog.
svn path=/trunk/netsurf/; revision=5470
2008-10-02 16:45:21 +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
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
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