Commit Graph

245 Commits

Author SHA1 Message Date
Michael Drake adbc2b0315 Avoid name clash.
svn path=/trunk/netsurf/; revision=12684
2011-08-31 11:52:08 +00:00
Michael Drake ca162211f5 Use API to find out if a browser window has a selection.
svn path=/trunk/netsurf/; revision=12683
2011-08-31 11:47:02 +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 c263a77d36 Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12657
2011-08-24 13:39:28 +00:00
Michael Drake 1625022882 Cocoa changes for core search update (r12646). Note: untested.
svn path=/trunk/netsurf/; revision=12648
2011-08-24 12:32:13 +00:00
Michael Drake 810fb1a919 Fix up Cocoa for r12574 API change.
svn path=/trunk/netsurf/; revision=12578
2011-07-06 12:48:45 +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 673a51a0e5 Fix up apple image content handler.
svn path=/trunk/netsurf/; revision=12540
2011-06-29 08:15:52 +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
Sven Weidauer ed7e65c74b Netsurf now appears in the 'Open with' menu for HTML files.
svn path=/trunk/netsurf/; revision=12435
2011-05-19 16:04:54 +00:00
Sven Weidauer 65dc81668c Importing UTI types for HTML and CSS.
svn path=/trunk/netsurf/; revision=12434
2011-05-19 16:04:11 +00:00
Sven Weidauer 3cae7a7d86 Handling animations in apple_image.m. Loop counts are ignored for now
svn path=/trunk/netsurf/; revision=12433
2011-05-19 13:18:01 +00:00
Sven Weidauer 658959bc88 Reverting r12367, cannot get incremental image loading to work correctly.
svn path=/trunk/netsurf/; revision=12432
2011-05-19 13:17:58 +00:00
Sven Weidauer 830da3a915 Fixing warning about unused result of expression.
svn path=/trunk/netsurf/; revision=12431
2011-05-19 11:47:57 +00:00
Sven Weidauer 3d71976607 Replacing deprecated method createDirectoryAtPath:attributes: with non-deprecated version createDirectoryAtPath:withIntermediateDirectories:attributes:error:
svn path=/trunk/netsurf/; revision=12430
2011-05-19 11:47:53 +00:00
Sven Weidauer eb0570f39d Adding quarantine attributes to downloaded files.
svn path=/trunk/netsurf/; revision=12429
2011-05-19 07:27:21 +00:00
François Revel 6dbb38cac9 Italian OSX localized strings, contributed by Samir Hawamdeh.
svn path=/trunk/netsurf/; revision=12426
2011-05-17 20:06:38 +00:00
Vincent Sanders 6c2977ec29 If you do not have xcode installed many critical mime mappings (like css and html) are missing so this adds rudimentry filename extension mappings so teh browser does not explode on non develoepr machines.
svn path=/trunk/netsurf/; revision=12411
2011-05-14 15:11:16 +00:00
Vincent Sanders a7a2759ec9 Fix Segfault at start if ca resource bundle path cannot be found
svn path=/trunk/netsurf/; revision=12410
2011-05-14 15:09:19 +00:00
François Revel eafcb685c4 Add netsurf.png to the OSX resources.
svn path=/trunk/netsurf/; revision=12406
2011-05-14 00:16:40 +00:00
François Revel 092c62f0e0 Add code to open the source file into Xcode. Currently called by the context menu because I didn't want to dig the .xib files, feel free to move it to the View main menu.
svn path=/trunk/netsurf/; revision=12387
2011-05-12 17:31:55 +00:00
Sven Weidauer 27386a45ad Using the file name and size of an image as title.
svn path=/trunk/netsurf/; revision=12370
2011-05-10 16:11:54 +00:00
Sven Weidauer b56cbd365b Stop keeping all lwc strings for mime types in apple_image.m
svn path=/trunk/netsurf/; revision=12369
2011-05-10 15:12:09 +00:00
Sven Weidauer e23fdcae82 Incremental loading images using ImageIO
svn path=/trunk/netsurf/; revision=12367
2011-05-10 13:28:17 +00:00
Sven Weidauer a2b1e4bcd0 Remove NSLog calls (unnecessary)
svn path=/trunk/netsurf/; revision=12366
2011-05-10 11:12:28 +00:00
François Revel c4efa5593b Don't say "registering" when we actually skipped the type...
svn path=/trunk/netsurf/; revision=12355
2011-05-09 19:30:44 +00:00
François Revel 4f2e8aa2e5 Skip image/gif when registering Apple Image handlers, to give precedence to nsgif since it handles animated GIF.
svn path=/trunk/netsurf/; revision=12354
2011-05-09 19:26:31 +00:00
François Revel 1c753c0707 OSX: Always empty the Resources folder in the .app bundle when populating it, to avoid errors when copying .svn stuff over a 2nd time. Ideally those shouldn't be copied over anyway, but I didn't yet find an easy way to use tar the way I need.
svn path=/trunk/netsurf/; revision=12353
2011-05-09 18:39:42 +00:00
Sven Weidauer 5e1a9bbfc0 Registering all image types NSBitmapImageRep can load and using ImageIO instead of other image libraries by default.
Regression: animated GIF doesn’t work anymore.

svn path=/trunk/netsurf/; revision=12350
2011-05-09 18:13:36 +00:00
Sven Weidauer bf69743db9 Include correct header in schedule.m, fixes warning
svn path=/trunk/netsurf/; revision=12344
2011-05-09 16:43:28 +00:00
François Revel 6d180ce9b3 Use named initializers.
svn path=/trunk/netsurf/; revision=12343
2011-05-09 16:23:31 +00:00
François Revel e7986379f0 Fix the apple_image handler to only have a redraw method that also does tiling.
svn path=/trunk/netsurf/; revision=12342
2011-05-09 16:19:16 +00:00
François Revel dd43363d57 Add internal.css to OSX resources. This fixes the dirlist display.
svn path=/trunk/netsurf/; revision=12297
2011-05-07 18:37:07 +00:00
François Revel 0cc1dade3c When passed WITH_MACPORTS to make, add /opt/local/{include,lib} to the search paths for Cocoa builds.
svn path=/trunk/netsurf/; revision=12286
2011-05-06 23:58:58 +00:00
François Revel 6b0982c2e3 Partial Cocoa build fix: missing definition of NOF_ELEMENTS.
svn path=/trunk/netsurf/; revision=12285
2011-05-06 23:37:38 +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 d0e7a5ecac Skip command line arguments starting with - (including the annoying -psn_0_... one when launched from Finder).
svn path=/trunk/netsurf/; revision=12242
2011-04-26 22:40:17 +00:00
François Revel 06f80d731f Accept urls as arguments to the OSX binary and open them in different windows.
svn path=/trunk/netsurf/; revision=12240
2011-04-26 15:38:28 +00:00
Daniel Silverstone 1a47f49bdc Fix testament rule for cocoa's build system's prefixed paths
svn path=/trunk/netsurf/; revision=12123
2011-03-22 12:42:30 +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
Sven Weidauer 7acc13d863 Passing $(DEVELOPER_PATH) to the compile-xib script to select the right ibtool.
svn path=/trunk/netsurf/; revision=12048
2011-03-14 18:36:41 +00:00
Sven Weidauer 6a561dc6dd Added Makefile setting for the SDK version.
svn path=/trunk/netsurf/; revision=12046
2011-03-14 18:22:42 +00:00
Sven Weidauer 5c63c4cd4a Adding ability to specify /Developer dir in Makefiles
svn path=/trunk/netsurf/; revision=12043
2011-03-14 14:17:53 +00:00
Sven Weidauer 19c5c44e7a Getting rid of cocoa_set_font_scale_factor
svn path=/trunk/netsurf/; revision=12042
2011-03-14 14:17:46 +00:00
Chris Young 5e168309c2 Revert previous change
svn path=/trunk/netsurf/; revision=11960
2011-03-09 23:18:27 +00:00
Chris Young d672d153d9 Updated translation from Samir Hawamdeh
svn path=/trunk/netsurf/; revision=11959
2011-03-09 23:09:24 +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
Sven Weidauer 721b73bc55 Using feature_enabled in Makefile.target to see if Apple ImageIO should be used.
svn path=/trunk/netsurf/; revision=11931
2011-03-07 16:47:39 +00:00
Sven Weidauer fc6125f79a Minimal implementation of NSTextInput protocol. Allows accented characters to be typed. Might not work with other, more complex input methods (chinese, ...)
svn path=/trunk/netsurf/; revision=11930
2011-03-07 09:01:42 +00:00
John Mark Bell de688b59e1 Fix text selection
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
Sven Weidauer 208b98bb44 Created content handler CONTENT_APPLE_IMAGE for Mac OS X that can handle all image file formats supported by Apples ImageIO framework. Right now used only for JPEG to get rid of libjpeg dependency.
svn path=/trunk/netsurf/; revision=11911
2011-03-05 09:49:15 +00:00
Sven Weidauer b73a68edab Fixed text scaling.
svn path=/trunk/netsurf/; revision=11905
2011-03-04 14:53:16 +00:00
Sven Weidauer d2626ece45 Fixed text splitting.
svn path=/trunk/netsurf/; revision=11904
2011-03-04 14:53:12 +00:00
Sven Weidauer 7473f1625f Remove unused function gui_window_redraw.
svn path=/trunk/netsurf/; revision=11903
2011-03-04 11:38:08 +00:00
Sven Weidauer 45c30cd3d1 Checking for public.url pasteboard type first, so dragging a .webloc file from the Finder opens the URL and not the .webloc file itself.
svn path=/trunk/netsurf/; revision=11901
2011-03-04 10:38:07 +00:00
Sven Weidauer f2bc0163c0 Accepting URLs dropped onto the browser view.
svn path=/trunk/netsurf/; revision=11900
2011-03-04 09:18:26 +00:00
Sven Weidauer 905b230a3c Allow dragging of URLs from the URL field out of NetSurf.
svn path=/trunk/netsurf/; revision=11899
2011-03-04 09:18:23 +00:00
Sven Weidauer c7605db9d5 Renamed files in Xcode project to match actual file names.
svn path=/trunk/netsurf/; revision=11897
2011-03-03 15:40:31 +00:00
Sven Weidauer 5c091d5be9 Adding ca-bundle to the resources
svn path=/trunk/netsurf/; revision=11895
2011-03-03 14:36:44 +00:00
Sven Weidauer 4aef849eba More keyboard shortcuts: scroll down with space bar and go back with backspace key.
svn path=/trunk/netsurf/; revision=11885
2011-03-02 15:05:26 +00:00
Sven Weidauer c03890339e Implemented menu for back and forward buttons.
svn path=/trunk/netsurf/; revision=11857
2011-02-28 15:24:38 +00:00
Sven Weidauer 8eda3390da Adding tool tips and changing the cursor in the local history view.
svn path=/trunk/netsurf/; revision=11855
2011-02-28 15:24:15 +00:00
Sven Weidauer e66c7f9313 Setting path for tree icons when tree class is initialized.
svn path=/trunk/netsurf/; revision=11853
2011-02-28 15:23:56 +00:00
Sven Weidauer 6d11881575 Handling keyboard events for local history view.
svn path=/trunk/netsurf/; revision=11851
2011-02-27 20:41:17 +00:00
Sven Weidauer bb0549c0ce Remove padding for scrollers in local history.
svn path=/trunk/netsurf/; revision=11845
2011-02-27 14:28:58 +00:00
Sven Weidauer c7977d4ed2 Fixing display/transparency of ArrowWindow for 10.5.
svn path=/trunk/netsurf/; revision=11844
2011-02-27 14:28:55 +00:00
Sven Weidauer c9bc37f8bd Fix pixel alignment for rendering paths with stroke_width == 0.
svn path=/trunk/netsurf/; revision=11843
2011-02-27 14:15:56 +00:00
Sven Weidauer d84f818887 Adding icons for tree views.
svn path=/trunk/netsurf/; revision=11842
2011-02-27 13:21:46 +00:00
Sven Weidauer ff0aa37393 Implementing path utility functions.
svn path=/trunk/netsurf/; revision=11841
2011-02-27 13:21:42 +00:00
Sven Weidauer 7e42318684 Resetting cursor when mouse moves out of browser view.
svn path=/trunk/netsurf/; revision=11839
2011-02-27 10:40:41 +00:00
Sven Weidauer b486dace3b Using NSTrackingArea to get mouseMoved: events in the browser view.
svn path=/trunk/netsurf/; revision=11838
2011-02-27 10:40:37 +00:00
Sven Weidauer e190188969 Local history view now is responsible for hiding itself after selecting a web page. Also gets redrawn when selecting other pages using the back/forward buttons.
svn path=/trunk/netsurf/; revision=11837
2011-02-27 09:46:54 +00:00
Sven Weidauer 8b1a36e2db Correctly centering lines on pixel grid if their width is even.
svn path=/trunk/netsurf/; revision=11823
2011-02-26 11:14:11 +00:00
Sven Weidauer 2a693de4df Not retaining outlets. Fixing memory leak for favicon.
svn path=/trunk/netsurf/; revision=11821
2011-02-26 10:35:44 +00:00
Sven Weidauer bccdea6026 Implemented gui_find_resource and using resource: URIs for builtin stylesheets.
svn path=/trunk/netsurf/; revision=11819
2011-02-26 09:43:48 +00:00
Sven Weidauer a4303a3d43 Updated preferences and search window xib to allow more space for localized text.
svn path=/trunk/netsurf/; revision=11806
2011-02-25 22:23:24 +00:00
Sven Weidauer 556030503b Translated UI strings to german.
svn path=/trunk/netsurf/; revision=11805
2011-02-25 22:23:19 +00:00
John Mark Bell 97a0229414 Lose space: make can sometimes be picky about such things, so avoid the potential for failure
svn path=/trunk/netsurf/; revision=11804
2011-02-25 22:09:16 +00:00
Sven Weidauer de74250a3e Building translated nib files if strings file exist.
svn path=/trunk/netsurf/; revision=11802
2011-02-25 21:50:21 +00:00
Sven Weidauer c419e726b1 Added 'Localizable.strings' to bundle resources and added german translations. Other languages use english original.
svn path=/trunk/netsurf/; revision=11796
2011-02-25 16:20:16 +00:00
Sven Weidauer 2bb6987d39 Prepared for localizing string literals in source code.
svn path=/trunk/netsurf/; revision=11795
2011-02-25 16:20:10 +00:00
Sven Weidauer ba20058f2c Saving bookmarks before quitting NetSurf.
svn path=/trunk/netsurf/; revision=11794
2011-02-25 15:31:48 +00:00
Sven Weidauer c392e4606e Get filename for downloads from core.
svn path=/trunk/netsurf/; revision=11784
2011-02-24 11:43:08 +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
Sven Weidauer 7fb4e84c77 Fix typo so the mac port compiles
svn path=/trunk/netsurf/; revision=11747
2011-02-21 18:28:28 +00:00
Michael Drake a06b4b4302 Port cocoa front end to use thumbnail_redraw(). Note: untested.
svn path=/trunk/netsurf/; revision=11720
2011-02-20 12:39: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
Sven Weidauer f9f1c0c3b3 Remove padding in arrow box.
svn path=/trunk/netsurf/; revision=11709
2011-02-17 17:30:36 +00:00
Sven Weidauer d092b9ca35 Making sure history popup stays on screen.
svn path=/trunk/netsurf/; revision=11708
2011-02-17 17:23:58 +00:00
Sven Weidauer 1989a09c51 Cleanup in redraw code for browser view.
svn path=/trunk/netsurf/; revision=11706
2011-02-17 12:12:55 +00:00
Sven Weidauer abe3300ea1 New local history panel with scrollbars. Still needs to resize itself to fit the history.
svn path=/trunk/netsurf/; revision=11705
2011-02-17 12:12:51 +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 5cefc9584a Pass clip rect to browser_window_redraw as pointer.
svn path=/trunk/netsurf/; revision=11672
2011-02-13 23:04:26 +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
Michael Drake fedcbf6656 Pass clip rect to browser_window_redraw as struct.
svn path=/trunk/netsurf/; revision=11648
2011-02-11 19:36:33 +00:00
Vincent Sanders 9a183018ea improve browser_window_redraw width and height handling
svn path=/trunk/netsurf/; revision=11642
2011-02-11 00:14:22 +00:00
Vincent Sanders 2a8e8a5cf1 add browser_window_redraw() method to make content_redraw calls from frontends common RISC OS, atari, amiga and beos have not been updated
svn path=/trunk/netsurf/; revision=11640
2011-02-10 22:35:41 +00:00
John Mark Bell 86c2948eb4 Fix copying text/plain to clipboard
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00