Thomas Bernard
811cb619b6
remove a few #include <windows.h>
...
also #include <direct.h>
2020-04-11 22:42:33 +02:00
Thomas Bernard
9b88e522c5
check Selector->filename_unicode for null
...
fixes http://pulkomandy.tk/projects/GrafX2/ticket/157
2020-03-11 08:43:14 +01:00
Thomas Bernard
eb0effaf3f
move some functions from filesel.c to fileseltools.c
2020-02-15 11:46:36 +01:00
Jaume Delclòs Coll
bce6cc7aaa
call strlen one less time
2019-10-08 23:14:48 +02:00
Jaume Delclòs Coll
3fc8c92ecd
fix segfault
2019-10-08 20:52:20 +02:00
Thomas Bernard
24fee41e41
Allow closing window in more dialog
...
see http://pulkomandy.tk/projects/GrafX2/ticket/141
see e72bb8cab16a237f74db0cde1ed43e9f45ff0bd0
2019-08-14 23:24:12 +02:00
Thomas Bernard
7c58f10721
fix warning comparison of integer expressions of different signedness: 'int' and 'unsigned int'
2019-07-25 00:06:59 +02:00
Thomas Bernard
58eaeda164
Win32: browse Network Neighborhood
2019-06-01 13:15:57 +02:00
Thomas Bernard
b170fce29d
change directory and highlight file when pasting a file path
2019-05-11 12:09:25 +02:00
Thomas Bernard
b5d61472e5
factory.c: remove static selected_file[] string buffer
2019-05-07 17:25:18 +02:00
Thomas Bernard
05175292a6
several fixes for WIN32
...
better handle minimize/maximize
http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-07 17:25:18 +02:00
Thomas Bernard
7d5f287737
Change Selector_filename to Selector->filename
2019-05-07 17:25:17 +02:00
Thomas Bernard
e0401e8205
Remove usage of MAX_PATH_CHARACTERS in filesel.c
2019-05-07 17:25:17 +02:00
Thomas Bernard
6e83791dde
Improve Print_current_directory()
2019-05-07 17:25:17 +02:00
Thomas Bernard
79446a9c72
get rid of MAX_PATH_CHARACTERS in T_Page and T_Selector_Settings
...
strdup() the dynammicaly allocated filename and directory strings
2019-05-07 17:25:17 +02:00
Thomas Bernard
98811b6363
Get rid of Get_full_filename()
2019-05-07 17:25:17 +02:00
Romain Graillot
d36e59ca9c
Add Nintendo Switch support (including gitlab-ci, gitlab-pages etc.)
2019-04-28 11:18:23 +02:00
Thomas Bernard
653593ba66
Fix unicode filename compare when wchar_t is not 16bit
...
Do not use wcscmp() which takes wchar_t arguments.
wchar_t bit width is system dependent. It is often 32bits.
Grafx2 supports 16bits wide characters
fixes b49fa1dfcc6209065c79f112b364a75f0d30e2b2
2019-04-27 11:41:56 +02:00
Thomas Bernard
b49fa1dfcc
Sort_list_of_files(): sort based on Unicode filename if available
...
This fix the problem with Win32 where the sorting was
done based on the "short filenames" such as
EXAMPLE~1.PNG, EXAMPLE~2.PNG, etc.
2019-03-20 14:16:23 +01:00
Thomas Bernard
ab5a4d0b38
fix change to parent directory
...
".." was recognized as relative path :(
issue introduced in 02f9d68f8e8aacd293baabe9fed407db50bb1297
2019-02-15 00:12:46 +01:00
Thomas Bernard
e7bb7c8684
Enable "Set Rel" for directory bookmarks only with portable installation
...
add a global variable to store if we are in a portable installation
2019-02-10 11:04:13 +01:00
Thomas Bernard
02f9d68f8e
fix Calculate_relative_path()
2019-02-10 11:04:13 +01:00
Thomas Bernard
67020cd146
Win32: show volume names in drive list
2019-02-10 11:04:12 +01:00
Thomas Bernard
9073c040c9
Allow bookmark labels to be UTF-8 !
2019-02-10 10:56:09 +01:00
Thomas Bernard
e3bf51f753
Red flash when Set Rel fails
2019-02-10 10:56:09 +01:00
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