summaryrefslogtreecommitdiff
path: root/amiga/filetype.c
Commit message (Collapse)AuthorAgeFilesLines
* fix memory leakChris Young2011-06-191-0/+3
| | | | svn path=/trunk/netsurf/; revision=12493
* translate / to - when guessing mime typesChris Young2011-06-191-1/+2
| | | | svn path=/trunk/netsurf/; revision=12492
* convert from mimetype to filetype rather than simple content type to ↵Chris Young2011-06-151-2/+21
| | | | | | | | filetype, where available svn path=/trunk/netsurf/; revision=12484
* Only show external app context menu item if an external app is actually definedChris Young2011-06-091-1/+16
| | | | svn path=/trunk/netsurf/; revision=12470
* Don't modify the DataType name within the structure.Chris Young2011-06-061-1/+2
| | | | | | Update mimetypes file a bit, add some more descriptive text. svn path=/trunk/netsurf/; revision=12467
* don't unref pointerChris Young2011-05-301-1/+0
| | | | svn path=/trunk/netsurf/; revision=12452
* Remove ami_datatype_to_mimetypeChris Young2011-05-301-61/+9
| | | | svn path=/trunk/netsurf/; revision=12451
* Guess MIME type from DataType only if there isn't already a valid entry in ↵Chris Young2011-05-301-2/+114
| | | | | | the list svn path=/trunk/netsurf/; revision=12450
* Convert the supplied MIME type to the DefIcons type *before* doing the ↵Chris Young2011-05-301-1/+5
| | | | | | comparison svn path=/trunk/netsurf/; revision=12448
* Migrate to new MIMEtyperChris Young2011-05-101-4/+57
| | | | svn path=/trunk/netsurf/; revision=12375
* Add function to convert MIME types to DefIcons types, and make ↵Chris Young2011-05-101-58/+163
| | | | | | ami_mime_compare use it svn path=/trunk/netsurf/; revision=12371
* Fix crashingChris Young2011-05-091-1/+3
| | | | svn path=/trunk/netsurf/; revision=12362
* New style MIME typing; maps MIME types to DataTypes and DefIcon format names.Chris Young2011-05-091-0/+168
| | | | | | | | | | | | | | Currently only able to resolve DataTypes to MIME Types. TODO: - DT MIME type guessing needs mostly removing (only use if no matches in mimetypes file) - Migrate the rest of filetype.c to the new format (can filetype using icon.library and reverse lookup MIME type, for example) - Use to distinguish between CONTENT_IMAGE types - Simplify so DefIcon type defaults to lowercase DataType name svn path=/trunk/netsurf/; revision=12360
* Rename DataTypes related code/files/defines to avoid confusion and aid ↵Chris Young2011-05-061-0/+4
| | | | | | | | | | adding support for other DataType classes. Disable MNG/WebP by default as they aren't common and the required libs are quite large; DataTypes can handle these formats for now. svn path=/trunk/netsurf/; revision=12284
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-49/+15
| | | | svn path=/trunk/netsurf/; revision=12283
* More rigourous MIME type checking for CSS allows us to remove the icons from ↵Chris Young2011-03-141-12/+26
| | | | | | | | included CSS files. svn path=/trunk/netsurf/; revision=12049
* Check for RISC OS CSS filetype in case we have got redirected (ie. we are ↵Chris Young2011-03-141-0/+11
| | | | | | | | running from the SVN tree and using resource: addressing) svn path=/trunk/netsurf/; revision=12041
* Fix broken CONTENT_PLUGIN API.Chris Young2011-03-061-48/+54
| | | | | | | Add a default content handler for Amiga using the plugin interface, which passes unknown files (currently images only) through DataTypes. svn path=/trunk/netsurf/; revision=11924
* Amiga icon loader. Treeviews will now use the user's icons for content types.Chris Young2010-10-301-10/+28
| | | | svn path=/trunk/netsurf/; revision=10925
* Merge branches/vince/netsurf-file-fetcher to trunkJohn Mark Bell2010-09-091-5/+0
| | | | | | r=jmb svn path=/trunk/netsurf/; revision=10750
* Show an icon under the pointer for drag save operations. Might need ↵Chris Young2010-07-281-0/+71
| | | | | | | | disabling under 4.0. svn path=/trunk/netsurf/; revision=10670
* Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow ↵Chris Young2010-07-241-0/+4
| | | | | | | | | | | 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
* Missing typesChris Young2010-07-111-7/+13
| | | | svn path=/trunk/netsurf/; revision=10626
* HTML files with an icon but no MIMETYPE tooltype were being picked up by theChris Young2008-11-161-0/+6
| | | | | | | | | | | | simplehtml datatype. As I'm using dth_BaseName rather than dth_Name, they were being tagged with the MIME type text/simplehtml. Have made an exception for this case to translate it to text/html, may in the future consider whether using dth_Name may be better. Minor adjustments to the local file requester to prevent .info files from being displayed. svn path=/trunk/netsurf/; revision=5711
* NetSurf will now check if it is already running (ie. if ARexx port NETSURF ↵Chris Young2008-11-161-1/+8
| | | | | | | | | | | | | | | exists), and quit and send an OPEN command to the one in memory if this is the case. Setting files as projects of NetSurf is now possible, as is multi-select launching from Workbench. Multi-selects are not passed through using ARexx yet, only the first file in the list will be opened if NetSurf is already running. Plain text files which have no MIMETYPE tooltype are now correctly identified as text/plain instead of text/ascii, allowing them to be opened locally. svn path=/trunk/netsurf/; revision=5698
* Allow opening of local files from anywhere, not just the parent of the ↵Chris Young2008-11-151-8/+15
| | | | | | current dir. svn path=/trunk/netsurf/; revision=5695
* mime type overflow and tab switching fixes.Chris Young2008-11-091-2/+2
| | | | svn path=/trunk/netsurf/; revision=5660
* Local file handling improvements (fetch_file is incomplete and not being ↵Chris Young2008-11-081-19/+65
| | | | | | | | | | | | | | used yet) filetype.c has been changed to get the MIME type of a file from the MIMETYPE tooltype of the icon or default icon for the file. The install script will set the basic of these, and icons for default.css and AdBlock.css have been added to ensure these always return the correct MIME type. If the MIMETYPE tooltype is not found, the code will use datatypes.library to identify the file and make a guess as to what the MIME type is. svn path=/trunk/netsurf/; revision=5651
* Fix problem with file uploads to amigans.net always returning error to the ↵Chris Young2008-10-111-1/+2
| | | | | | | | effect of: files of type text/plain cannot be uploaded svn path=/trunk/netsurf/; revision=5544
* Initial Amiga port files, mostly empty stub functions.Chris Young2008-08-021-0/+55
svn path=/trunk/netsurf/; revision=4864