115 Commits

Author SHA1 Message Date
Thomas Bernard
7c79cf41e2
Add "Set Rel" for directory bookmarks
see
http://pulkomandy.tk/projects/GrafX2/ticket/45
It is disabled under AmigaOS, AROS and MorphOS
2019-02-10 10:56:08 +01:00
Thomas Bernard
175ea62b02
Allow directory bookmarks to be relative to Data_directory
see http://pulkomandy.tk/projects/GrafX2/ticket/45
Still to do : the "Set Rel" which is the difficult part :)

Also it may be better to use Program_directory instead of Data_directory
2019-02-10 10:56:08 +01:00
Thomas BERNARD
379dc4a092 Copy to pasteboard support for MacOS 2019-01-05 00:04:37 +01:00
Thomas BERNARD
8c03202df6 Support for Pasting from macOS PasteBoard 2019-01-04 22:43:30 +01:00
Thomas Bernard
7331ad9bdf
X11 picture paste support (PNG format)
works with what GIMP puts in the X11 CLIPBOARD
2018-12-30 10:20:50 +01:00
Thomas Bernard
5143a93b16 CTRL-V pastes the brush. Very convinient
only avaiblable under win32...
2018-12-20 13:23:02 +01:00
Thomas Bernard
90acb24c40 WIN32: Save to clipboard 2018-12-20 13:05:16 +01:00
Thomas Bernard
7ce94604a3 better "load from clipboard" integration in the file selector 2018-12-20 13:02:50 +01:00
Thomas Bernard
e68c16dd34 move Get_unicode_filename() to io.c. correclty select last directory in
filesel
2018-12-19 14:03:30 +01:00
Thomas Bernard
b67ce603a7 move New_preview_is_needed to filesel.c 2018-12-19 13:17:10 +01:00
Thomas Bernard
3876bb03e1 Load from clipboard 2018-12-19 13:10:07 +01:00
Thomas Bernard
ee992c6b5f fix Find_filename_match()
issue introduced in commit 49b7d101
2018-12-17 10:42:14 +01:00
Thomas Bernard
49b7d1017e Make the quick search work with unicode characters 2018-12-09 21:04:34 +01:00
Thomas Bernard
7e3e39a753
enum FSOBJECT_TYPE for object type : File / Directory / Drive 2018-12-09 00:09:01 +01:00
Thomas Bernard
83d2b5de7a
Properly set Selected_type when entering Button_Load_or_Save()
fixes bug #91 http://pulkomandy.tk/projects/GrafX2/ticket/91
2018-12-09 00:09:01 +01:00
Thomas Bernard
a65b31fece correctly populate Format for CONTEXT_PREVIEW 2018-12-08 18:12:35 +01:00
Thomas Bernard
e6f8d532c8
Read_list_of_drives(): use me_type_malloced to free() me_type
fixes a bug with OpenBSD
2018-10-17 16:07:32 +02:00
Thomas Bernard
69142724ef
drive list : Add icon for network drives. Add debug log
also add HDD icon for ufs and zfs
2018-10-17 16:05:15 +02:00
Thomas Bernard
dc49ed4698
fix replacement of extension in unicode filename 2018-09-15 14:17:54 +02:00
Thomas Bernard
44f24b3508
Change the way we change to bookmarked directories
fixes http://pulkomandy.tk/projects/GrafX2/ticket/12
2018-09-15 13:59:52 +02:00
Thomas Bernard
c65f9f8903
Prepare_and_display_filelist() can optionnaly update filename 2018-09-15 12:18:14 +02:00
Thomas Bernard
12050cd068
update Find_file_in_fileselector() to return -1 when not found 2018-09-15 11:11:48 +02:00
Thomas Bernard
16799113fc
properly keep filename when changing extension in the SAVE file selector
unicode string was not restored
2018-09-14 20:43:37 +02:00
Thomas Bernard
72972a8b49 doxygen comments in main.c.
Includes the mainpage section
2018-07-27 14:29:25 +02:00
Thomas Bernard
56df5080a5 filesel.c/.h: improvements in doxygen
Translated a few comments from French to English.
also improved the code slightly
2018-07-27 14:29:25 +02:00
Thomas Bernard
13dc203eaf remove leftover printf 2018-07-12 19:11:39 +02:00
Adrien Destugues
6dc5b89232 Try to fix some doxygen warnings. 2018-07-08 08:04:00 +02:00
Thomas Bernard
84070b43b2 fix display of filename in fileselector.
always redraw filename text after editing it
2018-07-02 11:38:52 +02:00
Thomas Bernard
cb2d479867 add GFX2_Get_Window_Handle() to get the win32 HWND
and use it
2018-07-02 11:38:51 +02:00
Thomas Bernard
3e4f3d0313 WIP. build under Win32 without SDL 2018-07-02 11:38:51 +02:00
Thomas Bernard
4d86b8a0c1 change all references to SDLK_xxxxx to KEY_xxxx
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780 use screen.h instead of sdlscreen.h, etc.
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
5c761ace2c Use KEY_NONE for buttons without key shortcuts
SDLK_LAST was used, but it is SDL 1.x specific
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Nic Soudée
a01e7eea69 Implement shortcut/underscore for input button 2018-06-24 15:25:26 +00:00
Thomas Bernard
3a29a653ca remove a warning in WIN32 build 2018-05-22 17:55:00 +02:00
Thomas BERNARD
6c1e011de7 Fix "Select Drive" in file selector
Add HDD icon for /.
HFS Volumes have icon
2018-04-06 20:03:54 +02:00
Thomas Bernard
c8bc04e413 Fix filebackup when saving.
It was the wrong filename that was backuped when using "Save As".
Now it is the filename selected.
2018-04-06 16:45:35 +02:00
Thomas Bernard
10997509c8 File selector Fix "long" extensions detection under Win32 2018-03-19 14:54:19 +01:00
Thomas Bernard
b6c3852aad Display unicode names in script factory as well
So in windows the long filename is shown instead of the short filename
2018-02-23 18:46:28 +01:00
Thomas Bernard
854d787e59 io.c: Add Remove_directory() and Remove_path()
Also implement WIN32 version of File_length()
2018-02-20 15:45:45 +01:00
Thomas Bernard
60beebc9ac fixes for MSVC non-standard C library
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf

a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
be824627ce loadsave.c: Add functions to open file with alternate extension.
Used by CPC format which are in several files :
PPH format uses PPH, ODD, EVE
CM5 uses CM5 + GFX
2018-02-20 15:45:45 +01:00
Thomas Bernard
ad219c84d2 Make saving of unicode named files work under Win32
the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
2018-02-20 15:45:45 +01:00
Thomas Bernard
bbdee15990 Filename input in unicode for Win32 2018-02-20 15:45:45 +01:00
Thomas Bernard
6f48d7fefe Add MSVC 2010 project file and a make the project compile 2018-02-20 15:45:45 +01:00
Thomas Bernard
689aebf264 Unicode support in keyboard editable field for filename 2018-02-20 15:44:39 +01:00
Thomas Bernard
9fb6d650b5 pass unicode name when clicking Load or Save button 2018-02-20 15:44:39 +01:00
Thomas Bernard
a4593da4d4 display unicode filename in menu 2018-02-20 15:44:39 +01:00
Thomas Bernard
de8379aab8 Print_current_directory(): use ELLIPSIS_CHARACTER instead of ... 2018-02-20 15:44:39 +01:00