Blender
V2.93
source
blender
editors
space_file
fsmenu.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
24
#pragma once
25
26
/* XXX could become UserPref */
27
#define FSMENU_RECENT_MAX 10
28
29
enum
FSMenuCategory
;
30
enum
FSMenuInsert
;
31
32
struct
FSMenu
;
33
struct
FSMenuEntry
;
34
40
void
fsmenu_insert_entry
(
struct
FSMenu
*fsmenu,
41
enum
FSMenuCategory
category,
42
const
char
*
path
,
43
const
char
*
name
,
44
int
icon
,
45
const
enum
FSMenuInsert
flag);
46
48
void
fsmenu_entry_refresh_valid
(
struct
FSMenuEntry
*fsentry);
49
51
short
fsmenu_can_save
(
struct
FSMenu
*fsmenu,
enum
FSMenuCategory
category,
int
idx);
52
54
void
fsmenu_remove_entry
(
struct
FSMenu
*fsmenu,
enum
FSMenuCategory
category,
int
idx);
55
57
void
fsmenu_write_file
(
struct
FSMenu
*fsmenu,
const
char
*filename);
58
60
void
fsmenu_read_bookmarks
(
struct
FSMenu
*fsmenu,
const
char
*filename);
61
63
void
fsmenu_read_system
(
struct
FSMenu
*fsmenu,
int
read_bookmarks);
64
66
void
fsmenu_free
(
void
);
67
69
void
fsmenu_refresh_system_category
(
struct
FSMenu
*fsmenu);
70
72
void
fsmenu_refresh_bookmarks_status
(
struct
wmWindowManager
*wm,
struct
FSMenu
*fsmenu);
73
75
int
fsmenu_get_active_indices
(
struct
FSMenu
*fsmenu,
76
enum
FSMenuCategory
category,
77
const
char
*dir);
FSMenuCategory
FSMenuCategory
Definition:
ED_fileselect.h:190
FSMenuInsert
FSMenuInsert
Definition:
ED_fileselect.h:199
fsmenu_can_save
short fsmenu_can_save(struct FSMenu *fsmenu, enum FSMenuCategory category, int idx)
Definition:
fsmenu.c:369
fsmenu_refresh_bookmarks_status
void fsmenu_refresh_bookmarks_status(struct wmWindowManager *wm, struct FSMenu *fsmenu)
Definition:
fsmenu.c:1215
fsmenu_refresh_system_category
void fsmenu_refresh_system_category(struct FSMenu *fsmenu)
Definition:
fsmenu.c:1042
fsmenu_get_active_indices
int fsmenu_get_active_indices(struct FSMenu *fsmenu, enum FSMenuCategory category, const char *dir)
Definition:
fsmenu.c:1111
fsmenu_insert_entry
void fsmenu_insert_entry(struct FSMenu *fsmenu, enum FSMenuCategory category, const char *path, const char *name, int icon, const enum FSMenuInsert flag)
Definition:
fsmenu.c:381
fsmenu_entry_refresh_valid
void fsmenu_entry_refresh_valid(struct FSMenuEntry *fsentry)
Definition:
fsmenu.c:344
fsmenu_remove_entry
void fsmenu_remove_entry(struct FSMenu *fsmenu, enum FSMenuCategory category, int idx)
Definition:
fsmenu.c:499
fsmenu_free
void fsmenu_free(void)
Definition:
fsmenu.c:1068
fsmenu_read_system
void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
Definition:
fsmenu.c:641
fsmenu_write_file
void fsmenu_write_file(struct FSMenu *fsmenu, const char *filename)
Definition:
fsmenu.c:532
fsmenu_read_bookmarks
void fsmenu_read_bookmarks(struct FSMenu *fsmenu, const char *filename)
Definition:
fsmenu.c:569
FSMenuEntry
Definition:
ED_fileselect.h:180
FSMenuEntry::icon
int icon
Definition:
ED_fileselect.h:187
FSMenuEntry::path
char * path
Definition:
ED_fileselect.h:183
FSMenuEntry::name
char name[256]
Definition:
ED_fileselect.h:184
FSMenu
Definition:
fsmenu.c:68
wmWindowManager
Definition:
DNA_windowmanager_types.h:137
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1