Blender  V2.93
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
FSMenuInsert
short fsmenu_can_save(struct FSMenu *fsmenu, enum FSMenuCategory category, int idx)
Definition: fsmenu.c:369
void fsmenu_refresh_bookmarks_status(struct wmWindowManager *wm, struct FSMenu *fsmenu)
Definition: fsmenu.c:1215
void fsmenu_refresh_system_category(struct FSMenu *fsmenu)
Definition: fsmenu.c:1042
int fsmenu_get_active_indices(struct FSMenu *fsmenu, enum FSMenuCategory category, const char *dir)
Definition: fsmenu.c:1111
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
void fsmenu_entry_refresh_valid(struct FSMenuEntry *fsentry)
Definition: fsmenu.c:344
void fsmenu_remove_entry(struct FSMenu *fsmenu, enum FSMenuCategory category, int idx)
Definition: fsmenu.c:499
void fsmenu_free(void)
Definition: fsmenu.c:1068
void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
Definition: fsmenu.c:641
void fsmenu_write_file(struct FSMenu *fsmenu, const char *filename)
Definition: fsmenu.c:532
void fsmenu_read_bookmarks(struct FSMenu *fsmenu, const char *filename)
Definition: fsmenu.c:569
char name[256]
Definition: fsmenu.c:68