98e3694c39
Fix T43817: issue with non-utf8 encodings in Windows paths, again...
...
We need to use 'W' widechar variants of win funcs and convert wchar to utf8-encoded bytes
in those cases, sigh...
Note: theoritical fix only, need org reporter to test it...
2015-02-26 11:27:58 +01:00
e089b0e911
Amend to previous own Fix T43684: only use hack on WIN32, and use case-insensitive comparison.
...
Thanks to Campbell for the headup.
2015-02-17 21:10:08 +01:00
21a2b73a1e
Fix T43684 (again!): Mighty Windows thinks it’s perfectly sensible to block everyone during 5 seconds for a mere stat() call on "A:\" path...
...
For now, just always consider those floppy entries ("A:\" and "B:\") as valid... sigh.
2015-02-17 19:13:22 +01:00
0dfdca6d13
Fix T43684: File Browser is unusable on Windows Machines (do not BLI_is_dir() in draw loop!)
...
Did not had any issue on linux, but looks like on some windows can slow things as Hell.
Or maybe just the presence of some network FS?
Anyway, not a good idea, so now fsmenu entries' valid status is stored and only evaluated
on startup (reading of bookmarks & co) and when opening file browser (refresh, like
for system bookmarks).
2015-02-16 15:58:57 +01:00
9e2abbc9ba
FileBrowser: Editable Bookmarks.
...
Bookmarks are now editable (i.e. you can rename them, and reorder them).
They are also listed in regular UILists, so you can filter/sort them as usual too.
Also, FileBrowser 'T' side area is changed to something similar to 3DView one,
in this case because we need op panel to remain at the bottom, and later because
we'll more than likely need tabs here!
Thanks to Campbell and Sergey for reviews.
Differential Revision: https://developer.blender.org/D1093
2015-02-11 00:09:45 +01:00
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
43fa4baa6c
Refactor: BLI_path_util (part 2)
...
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23 18:55:52 +01:00
9e4229e0ad
OSX/fsmenu: fix compiling on older gcc reported by Mike S
2014-11-03 15:05:48 +01:00
9231150577
Cleanup: redundant cast
2014-10-13 15:51:31 +02:00
9f18e4f0eb
Cleanup: tabs
...
Set your editor to tabs for all C/C++!
2014-10-09 17:12:50 +02:00
5c829d2c4e
OSX: fsmenu cleanup
2014-10-08 12:48:46 +02:00
05e26297bf
OSX: adapt fs_menue to modern entries handling
2014-10-07 23:45:09 +02:00
9d8c1658a1
OSX: simplyfy last commit for fs_menu system_bookmarks
2014-10-04 10:48:07 +02:00
a9ae14c480
OSX: Change the FS_CATEGORY_SYSTEM_BOOKMARKS aka "Favorites", so that the orderwise in sync with finder
2014-10-03 21:01:59 +02:00
86f42ee331
OSX 10.10: fix for Blender crashing on fsmenu due icloud in the favorite list but pointer is NULL when not activated
...
This does not break other OSX versions, just add a check for pathString
2014-06-04 10:54:32 +02:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
163e544006
Fix bookmarks not appearing in file browser after "copy previous settings".
2013-12-20 17:57:11 +01:00
eabc16ab52
Since we dropped carbon api, this workaround seems not longer to be necessary, pls. keep an eye
2013-11-05 17:35:47 +00:00
304a32bf1f
style cleanup
2013-10-23 02:52:27 +00:00
ac9f3e33d5
OSX/fs_menue: change the availability macros, so ppl could still compile on 10.5 by just also using 10.4 code then
2013-10-14 15:37:16 +00:00
98d66aeb97
OSX: comment cleanup
2013-10-13 18:51:21 +00:00
6d54ff5d83
OSX: Final cleanup for #60729
2013-10-13 18:14:38 +00:00
30d03e12bc
OSX: Get mounted volumes better method by using volume enums
2013-10-13 17:12:36 +00:00
fc11cf1581
fix for buffer overrun in reading bookmarks when a line was over 256 bytes.
2013-03-16 17:33:16 +00:00
f98c2c936c
OSX/availability: use of the numerical value instead of the symbol in the #if MAC_OS_X_VERSION_MIN_REQUIRED comparison clause: If the code is loaded on an older system that does not include the symbol definition, the comparison still works
2012-12-15 11:15:05 +00:00
5a8cef4a85
OSX: take back 51826 for now, does not fix dalai's problem
2012-11-02 20:55:12 +00:00
1930a51f09
OSX: a more friendly way to get mounted volumes, alo allows for whitespaces etc.
2012-11-02 20:26:37 +00:00
b3c1aae320
OSX: suppress meaningless /net and /home in fileselector also on 10.5+
2012-11-02 10:33:54 +00:00
5a6c7afe5e
fix [ #33011 ] "System" tab empty in OSX - file browser
...
* items were wrongly added too SYSTEM_BOOKMARKS rather than SYSTEM, now fixed
2012-10-29 18:25:35 +00:00
1e21c0a324
== filebrowser ==
...
* Separated bookmarks managed by the OS (System Bookmarks) and bookmarks managed by Blender (Bookmarks).
* Added user pref to hide (or show) system bookmarks to allow users doing a video tutorial for example to hide their private system bookmarks
This feature should help especially MAC users who reported excessively long list of bookmarks which were added to Blender.
2012-10-21 14:47:16 +00:00
f6251a1f32
code cleanup: warning and style
2012-09-17 22:34:42 +00:00
dd3636a6d4
== filebrowser ==
...
further fixes for 'RECENT' files panel in filebrowser:
* Also add the recent folder at the head if it is not yet in the list
* since we now insert at the head, we need to remove the skipping of the first entries if there are too many. Now correctly leaving the last elements unwritten.
* Another consequence of inserting at the head is that we don't want to reverse the list in the recent panel anymore - got rid of the corresponding code.
2012-09-17 21:29:30 +00:00
f5395107cc
fix: obvious bug in recent fix for the 'recent file' bookmark order.
2012-09-17 20:16:34 +00:00
9678b0da4e
Fix mac build issue after recent file browser fix.
2012-09-17 11:25:10 +00:00
0020fff749
Fix compilation issue, also get rid of annoying "_MSC_VER not defined"
...
preprocessor ambiguity for MinGW
2012-09-17 08:36:47 +00:00
13918dffd2
code cleanup: fsmenu.c names were confusing - fsms / fsme / prev --> fsm_head / fsm_iter / fsm_prev
2012-09-17 04:29:43 +00:00
3cae9ca043
fix [ #32564 ] Entries in recent list (file select dialog) don't get pushed to top if used again
2012-09-17 02:19:41 +00:00
a5003727c5
code cleanup: replace fsmenu_insert_entry args with flags.
2012-09-17 02:01:09 +00:00
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
2c3165fdc0
style cleanup
2012-06-18 13:01:24 +00:00
f16f545c6e
style cleanup
...
also fix example for mesh uv's
2012-05-22 16:24:09 +00:00
f53e6166fb
add missing include
2012-05-18 14:08:54 +00:00
adb567f6b3
File browser: list of system directories is now refreshed on pressing the refresh
...
button or opening the file browser, in case e.g. a USB stick was inserted.
Patch #31211 by Julien Duroure.
2012-05-18 12:49:25 +00:00
a9f6e54384
style cleanup: mostly whitespace in rna
2012-05-12 11:01:29 +00:00
a045ad9055
don't stat bookmark files on load, can make blender hang on slow networks (eg, the blender institutes gigabit connection)... or if the server is busy.
2012-05-11 17:41:38 +00:00
d20c129a9c
style cleanup: whitespace/operators
2012-05-09 09:24:15 +00:00
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
a73d0d3e72
code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows.
2012-04-15 07:54:07 +00:00