4 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version. The Blender
10 * Foundation also sells licenses for use in proprietary software under
11 * the Blender License. See http://www.blender.org/BL/ for information
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
24 * All rights reserved.
26 * The Original Code is: all of this file.
28 * Contributor(s): none yet.
30 * ***** END GPL/BL DUAL LICENSE BLOCK *****
33 #ifndef BSE_HEADERBUTTONS_H
34 #define BSE_HEADERBUTTONS_H
42 /* these used to be in blender/src/headerbuttons.c: */
43 #define SPACEICONMAX 16 /* See release/datafiles/blenderbuttons */
47 int std_libbuttons(struct uiBlock *block,
48 short xco, short yco, int pin, short *pinpoin,
49 int browse, struct ID *id, struct ID *parid,
50 short *menupoin, int users,
51 int lib, int del, int autobut, int keepbut);
53 char *windowtype_pup(void);
55 int GetButStringLength(char *str);
56 void load_space_sound(char *str);
57 void load_sound_buttons(char *str);
58 /* end of declarations moved from old headerbuttons.c */
60 void update_for_newframe_muted(void);
61 void update_for_newframe_nodraw(int nosound);
62 void free_matcopybuf(void);
63 void clear_matcopybuf(void);
64 void write_videoscape_fs(void);
65 void write_vrml_fs(void);
66 void write_dxf_fs(void);
67 void write_stl_fs(void);
68 int buttons_do_unpack(void);
69 struct Scene *copy_scene(struct Scene *sce, int level);
71 void buttons_active_id(struct ID **id, struct ID **idfrom);
73 int start_progress_bar(void);
74 void end_progress_bar(void);
75 int progress_bar(float done, char *busy_info);
77 void update_for_newframe(void);
79 void action_buttons(void);
80 void buts_buttons(void);
81 void file_buttons(void);
82 void image_buttons(void);
83 void imasel_buttons(void);
84 void info_buttons(void);
85 void ipo_buttons(void);
86 void nla_buttons(void);
87 void oops_buttons(void);
88 void seq_buttons(void);
89 void sound_buttons(void);
90 void text_buttons(void);
91 void script_buttons(void);
92 void view3d_buttons(void);
93 void time_buttons(struct ScrArea *sa);
94 void node_buttons(struct ScrArea *sa);
96 void do_global_buttons(unsigned short event);
97 void do_global_buttons2(short event);
99 void do_action_buttons(unsigned short event);
100 void do_buts_buttons(short event);
101 void do_file_buttons(short event);
102 void do_image_buttons(unsigned short event);
103 void do_imasel_buttons(short event);
104 void do_info_buttons(unsigned short event);
105 void do_ipo_buttons(short event);
106 void do_layer_buttons(short event);
107 void do_nla_buttons(unsigned short event);
108 void do_oops_buttons(short event);
109 void do_seq_buttons(short event);
110 void do_sound_buttons(unsigned short event);
111 void do_text_buttons(unsigned short event);
112 void do_script_buttons(unsigned short event);
113 void do_view3d_buttons(short event);
114 void do_time_buttons(struct ScrArea *sa, unsigned short event);
115 void do_node_buttons(struct ScrArea *sa, unsigned short event);
117 void do_headerbuttons(short event);
120 void spaceipo_assign_ipo(struct SpaceIpo *si, struct Ipo *ipo);
123 void do_text_editmenu_to3dmenu(void *arg, int event);
126 void do_info_add_meshmenu(void *arg, int event);
127 void do_info_add_curvemenu(void *arg, int event);
128 void do_info_add_surfacemenu(void *arg, int event);
129 void do_info_add_metamenu(void *arg, int event);
130 void do_info_add_lampmenu(void *arg, int event);
131 void do_info_addmenu(void *arg, int event);
133 /* header_view3d.c */
134 void do_view3d_select_objectmenu(void *arg, int event);
135 void do_view3d_select_object_groupedmenu(void *arg, int event);
136 void do_view3d_select_object_linkedmenu(void *arg, int event);
137 void do_view3d_select_object_layermenu(void *arg, int event);
138 void do_view3d_select_object_typemenu(void *arg, int event);
139 void do_view3d_select_meshmenu(void *arg, int event);
140 void do_view3d_select_curvemenu(void *arg, int event);
141 void do_view3d_edit_snapmenu(void *arg, int event);
142 void do_view3d_edit_mirrormenu(void *arg, int event);
143 void do_view3d_transform_moveaxismenu(void *arg, int event);
144 void do_view3d_transform_rotateaxismenu(void *arg, int event);
145 void do_view3d_transform_scaleaxismenu(void *arg, int event);
146 void do_view3d_object_mirrormenu(void *arg, int event);
147 void do_view3d_edit_mesh_normalsmenu(void *arg, int event);
148 void do_view3d_edit_mesh_verticesmenu(void *arg, int event);
149 void do_view3d_edit_mesh_edgesmenu(void *arg, int event);
150 void do_view3d_edit_mesh_facesmenu(void *arg, int event);
151 void do_view3d_edit_curve_segmentsmenu(void *arg, int event);
152 void do_view3d_edit_curve_showhidemenu(void *arg, int event);
154 #endif /* BSE_HEADERBUTTONS_H */