Commit Graph

385 Commits

Author SHA1 Message Date
Vincent Sanders
886a3106db move utf8 local conversion operations to table 2014-02-01 22:17:36 +00:00
Vincent Sanders
654da2ffb5 move utf8 conversion routines to use nserror instead of their own error enum 2014-01-28 21:40:13 +00:00
François Revol
4b760c7e49 beos: Fix build
Add missing header due to moved function.
2014-01-28 15:15:49 +01:00
François Revol
443d6f3e04 beos: Account for change in atomic_add() prototype in Haiku
Since the scheduler branch merge, atomic_add() takes a pointer
to int32, doesn't require the target to be volatile anymore.
2014-01-28 15:14:34 +01:00
Vincent Sanders
8ce0a10670 move path_to_url and url_to_path to fetch operation table 2014-01-25 23:01:32 +00:00
Vincent Sanders
0475693394 create table for fetcher operations and move all operations into it 2014-01-23 00:00:18 +00:00
François Revol
c74bf433c3 beos: Fix updating system colors 2014-01-16 18:12:41 +01:00
François Revol
90742e6b4b beos: Fix build
gcc2 doesn't know about named initializers in C++...
2014-01-16 17:28:16 +01:00
François Revol
7c71ad4f5a whitespace 2014-01-16 17:28:15 +01:00
François Revol
55bf16d754 beos: Better implementation of NSIconTextControl for the url bar
Instead of adding a child view we draw the bitmap over the child.
Fixup the TextRect also in Draw() which is called just before the
TextView's Draw().

It flickers a little less, and also respects the background color of
the text control when using a desktop theme.

Also drop a useless dynamic_cast.
2014-01-16 16:11:26 +01:00
Vincent Sanders
d47fed4524 move 401 login into operation table 2014-01-16 00:52:17 +00:00
Vincent Sanders
38cb39339a move filename_from_path and path_add_part into gui operation tables 2014-01-16 00:01:25 +00:00
Vincent Sanders
bd065d4a43 split browser gui operations up 2014-01-15 19:37:05 +00:00
Vincent Sanders
68eaec5cb4 complete move of remaining core gui functions 2014-01-15 12:28:55 +00:00
Vincent Sanders
8dfe225153 move download operations to download table 2014-01-14 16:04:02 +00:00
Vincent Sanders
d18c8ed452 move teh final optional window operations into the table 2014-01-13 22:54:19 +00:00
Vincent Sanders
e82d83f184 move four more optional window operations to table 2014-01-13 14:51:27 +00:00
Vincent Sanders
d70e371cd9 move two more mandantory window operations to table 2014-01-13 11:38:35 +00:00
Vincent Sanders
7227c29bba move window scroll getter and setter into operations table 2014-01-13 01:08:15 +00:00
Vincent Sanders
5a962586fb move mandantory window update and redraw operations into table 2014-01-12 23:50:54 +00:00
Vincent Sanders
4b49b4ac77 move more optional window operations into table including removing unused hide_pointer operation altogether 2014-01-12 22:55:26 +00:00
Vincent Sanders
b7736bae2f split gui operations into core and window and move more operations into tables 2014-01-12 17:07:34 +00:00
Vincent Sanders
56bb9582b1 move set title, set url, start and stop throbber window operations to gui table 2014-01-12 10:27:41 +00:00
Vincent Sanders
c8496df3df move window creation and destruction into table 2014-01-11 22:34:12 +00:00
Vincent Sanders
d3c392c3d3 Initial conversion of netsurf gui to callback vtable 2014-01-11 14:20:30 +00:00
Daniel Silverstone
692d4a328c Fix some log statements 2014-01-05 17:22:30 +00:00
Rob Kendrick
550c8cd73c Change gui_file_gadget_interface to pass gui_window not browser_window, add GTK implementation that of course does not work. 2014-01-05 16:45:32 +00:00
Rob Kendrick
d8ad3b8e78 Add new gui entry point for file open dialogue requests 2014-01-05 16:01:03 +00:00
François Revol
6c63adb1c1 beos: Remove Messages symlinks in res/*/
It seems the messages files aren't generated early enough
anymore, so building the resources fails.

We can't load them from the resource yet anyway.
2014-01-04 20:22:26 +01:00
François Revol
3a1bf5c20f beos: Also set LowColor on toolbar buttons when attached 2014-01-04 19:44:07 +01:00
François Revol
a7ef9dc4ab beos: Simplify about box
Just print some version infos, the buttons are there for credits
and licence.
2014-01-04 19:44:06 +01:00
François Revol
f713cdd90b beos: Add credits and licence buttons to about box
We'll simplify it to just mention version infos like on atari.
2014-01-04 19:44:05 +01:00
François Revol
1025a49cb6 beos: if no gui window, pass the first one to nsbeos_about() 2014-01-04 19:44:05 +01:00
François Revol
0dc8cd6625 beos: Fix about box 2014-01-04 19:44:04 +01:00
François Revol
967d930477 beos: Fix opening about from replicant popup 2014-01-04 19:44:03 +01:00
François Revol
bd89e5a088 beos: Fix background color for control on replicants
Still some redundancy there but it works.
2014-01-04 19:44:02 +01:00
François Revol
92afacbe6f beos: Add icon in url bar
A bit hackish, flickers on resize, but it works.
2014-01-04 19:44:01 +01:00
François Revol
fc782f55ba beos: Add a resize knob to replicants
The view resizes the base view by the relative mouse movement.

TODO: Add a bitmap to draw, for now it's ugly green.
2014-01-04 19:44:00 +01:00
François Revol
f8517f2e51 beos: remap resource:favicon.ico to favicon.png
We don't use it yet though.
2014-01-04 19:43:59 +01:00
François Revol
3c5317cf54 beos: Fix embedded files in resources
- drop the remaining hardcoded files in rdef file
- add favicon.png
- remove en/ symlink
- add real folders with symlinks for translated files like GTK
  Note the Messages files are also included although the current code
  is not able to load them from the resources.
- add symlinks for html files to the en/ version
  (TODO: try to remap automatically)
2014-01-04 19:43:58 +01:00
François Revol
e1e1b5c45b beos: Export icons/ resources with a lowercase i
That's what GTK does, and it fixes the dirlist icons too.
2014-01-04 19:43:57 +01:00
François Revol
917f8ca804 beos: Drop duplicate throbber PNG resources
They are also added with another path by the makefile.
2014-01-04 19:43:56 +01:00
François Revol
da504bbbb8 beos: Add comments to resources definition file 2014-01-04 19:43:55 +01:00
François Revol
053897d07d beos: Move some resources around
Move app signature and supported filetypes before icons for more visibility.
2014-01-04 19:43:54 +01:00
François Revol
f3455a7556 beos: Remove unused Tracker button bitmaps
We never used them, and we now have better looking HVIF ones anyway.
2014-01-04 19:43:53 +01:00
François Revol
6f4e293311 beos: Load Messages files for current language
For now we just check for LC_MESSAGES in the environment, which
should even work in BeOS. Someday we should probably use Haiku's
BLocale API instead.
2014-01-04 19:43:52 +01:00
François Revol
d69997c8a3 beos: Add missing call to lwc_string_unref() 2014-01-04 19:43:51 +01:00
François Revol
748b13c8ba beos: Fix permission on temp directories creation
TODO: use filename_initialize() instead when it's fixed.
2014-01-04 19:43:50 +01:00
Vincent Sanders
f7916866e3 remove all references to using libMNG 2014-01-04 17:07:11 +00:00
François Revol
375ee78d1c Fix indentation 2013-12-07 01:28:55 +01:00
François Revol
62f7cfb04b Fix Haiku build
Fix build of the BeOS code due to recent untested options commits.
2013-12-07 01:26:39 +01:00
Michael Drake
cf8ffa412a Remove old hotlist, cookies, and history_global_core modules.
New versions of expand/collapse node functions for these modules aren't yet implemented.
2013-09-02 22:41:04 +01:00
Michael Drake
4473f4b8a8 Remove tree icon_name globals from all the front ends. 2013-09-02 16:39:46 +01:00
Michael Drake
5c7ca39ada Remove tree_url_node module. Had to disable treeview scanning in amiga and cocoa front ends. Amiga front end very likely broken. 2013-09-02 14:17:09 +01:00
Michael Drake
68078d7ea7 Fix up for cookies_old rename. 2013-07-22 10:21:37 +01:00
Michael Drake
3f45e53539 s/history_core/local_history/ 2013-07-10 11:55:42 +01:00
Vincent Sanders
a92e5930ff fixup issues with new options API merge 2013-05-28 16:44:46 +01:00
Vincent Sanders
1b4e0d11d3 move beos to new options API 2013-05-28 14:16:11 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders
a5355ec557 change all core and frontend options headers to new format 2013-05-28 14:16:10 +01:00
Vincent Sanders
35dacc3671 move the logging initialisation out to be call by frontends
This allows each frontend to pass a distinct callback to configure the
output file stream appropriately for their use.
2013-05-23 11:50:57 +01:00
Michael Drake
631265ef6b Front ends have no reason to include desktop/selection.h now. 2013-05-10 12:16:05 +01:00
Michael Drake
9644d0594c Remove struct selection from gui_drag_save_selection, so gui.h doesn't need it now. 2013-05-10 11:54:26 +01:00
François Revol
48dc679d7b beos: Fix replicants
Waiting on the semaphore was not enough, it was causing a crash on
replicant removal. Now we wait for the replicant main thread to exit.
It fixes replicants, at least when a single one is used per application.
Using more than one still causes issues due to some libs not liking
being used twice (hlcache it seems).
2013-03-22 00:25:27 +01:00
François Revol
1f9e1ca84b beos: Fix nsfont_position_in_string off-by-1
The current width was tested after the index was already
updated to the next character, leading to an off-by-one error,
and the impossibility to select the first character of a string
in textarea.
2013-03-21 22:10:35 +01:00
François Revol
f3c0b643b6 beos: Set the filename in the download file panel 2013-03-09 21:03:16 +01:00
Adrien Destugues - PulkoMandy
29f062e963 beos: Fix some cpp warnings 2013-03-09 20:51:22 +01:00
Michael Drake
037beb44fb Pass caret clip rect out to front ends. (Nothing actually using them yet.) 2013-03-05 22:54:51 +00:00
Michael Drake
a3c00c7192 Fixup for core selection change. 2013-02-22 15:12:10 +00:00
Vincent Sanders
869c7245f5 clean out useless outdated #if 0 blocks they serve no purpose and keep causing confusion in core refactors. Better examples are available in other frontends or in teh revision control system if strictly necessary 2013-02-18 14:47:21 +00:00
Vincent Sanders
529ca251fc rename flags for browser_window routines to be shorter 2013-02-18 11:51:42 +00:00
Vincent Sanders
b112dec78d change browser_window_create and refactor all callsites 2013-02-18 11:23:48 +00:00
Vincent Sanders
3bfb5b96a7 browser_window_navigate refactor 2013-02-18 11:23:27 +00:00
Michael Drake
97c658fea1 Update for new nsfont_split expectations. Untested, but code similar to framebuffer. Looks /really/ slow. It only needs to measure the text when it finds a space, not for every character. 2013-02-10 18:33:27 +00:00
François Revol
87946c5de8 beos: Fix clipboard handling to use the new API 2013-01-20 18:00:36 +01:00
John-Mark Bell
3dff750ae2 Downgrade TLS version support if it turns out the server can't cope with TLSv1.1. 2013-01-04 23:13:23 +00:00
Vincent Sanders
484fa8b110 move common include path setup to core Makefile 2012-12-20 15:27:07 +00:00
Vincent Sanders
6582b4e075 fix change to CC_MAJOR for beos 2012-12-14 11:30:14 +00:00
Vincent Sanders
c87cbe5655 split target defaults out 2012-12-13 19:26:24 +00:00
Vincent Sanders
45906b9dc2 make macro name more correct 2012-12-13 16:31:05 +00:00
François Revol
2836c1775a beos: Don't link with libxml2 anymore 2012-11-25 23:23:54 +01:00
François Revol
e38c0f2c3b beos: comment on why the rdef file includes hexdump for icons 2012-11-25 21:01:06 +01:00
François Revol
2a01907ca1 beos: debug output cleanup 2012-11-25 20:55:34 +01:00
François Revol
08a659292e Mention the origin of the icons added by Adrien
They come from Zumi's site, were proposed for Haiku,
and should be usable under MIT licence but it is not mentionned there.
I'll probably replace them anyway.
2012-11-25 20:38:53 +01:00
François Revol
1765212be2 beos: Fix replicating with empty URL in archive
We just got to about: when no valid URL is passed.
2012-11-25 20:26:41 +01:00
François Revol
eb454ff9f2 beos: More debug output cleanup 2012-11-25 20:03:43 +01:00
François Revol
17e19b283f beos: Silence debug output
Either comment them or change to LOG() calls.
2012-11-25 20:00:27 +01:00
François Revol
38b17e1112 beos: Partial replicant instanciation fix
* use the correct resources
* work around a deadlock, allows BeHappy to start, though removing
the replicant from Tracker crashes
2012-11-25 19:47:48 +01:00
François Revol
9b009dfb01 beos: Fix toolbar border
Use B_PLAIN_BORDER instead of the default B_FANCY_BORDER.
Also force full redraw on resize to avoid artefacts.
2012-11-25 18:35:18 +01:00
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