2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2008 Blender Foundation.
19 * All rights reserved.
22 * Contributor(s): Blender Foundation
24 * ***** END GPL LICENSE BLOCK *****
27 /** \file blender/editors/space_image/image_intern.h
32 #ifndef ED_IMAGE_INTERN_H
33 #define ED_IMAGE_INTERN_H
35 /* internal exports only */
44 struct wmOperatorType;
49 struct ARegion *image_has_buttons_region(struct ScrArea *sa);
50 struct ARegion *image_has_scope_region(struct ScrArea *sa);
52 extern const char *image_context_dir[]; /* doc access */
54 void IMAGE_OT_toolbox(struct wmOperatorType *ot);
57 void draw_image_main(struct SpaceImage *sima, struct ARegion *ar, struct Scene *scene);
58 void draw_image_grease_pencil(struct bContext *C, short onlyv2d);
61 int space_image_main_area_poll(struct bContext *C);
63 void IMAGE_OT_view_all(struct wmOperatorType *ot);
64 void IMAGE_OT_view_pan(struct wmOperatorType *ot);
65 void IMAGE_OT_view_selected(struct wmOperatorType *ot);
66 void IMAGE_OT_view_zoom(struct wmOperatorType *ot);
67 void IMAGE_OT_view_zoom_in(struct wmOperatorType *ot);
68 void IMAGE_OT_view_zoom_out(struct wmOperatorType *ot);
69 void IMAGE_OT_view_zoom_ratio(struct wmOperatorType *ot);
70 void IMAGE_OT_view_ndof(struct wmOperatorType *ot);
72 void IMAGE_OT_new(struct wmOperatorType *ot);
73 void IMAGE_OT_open(struct wmOperatorType *ot);
74 void IMAGE_OT_replace(struct wmOperatorType *ot);
75 void IMAGE_OT_reload(struct wmOperatorType *ot);
76 void IMAGE_OT_save(struct wmOperatorType *ot);
77 void IMAGE_OT_save_as(struct wmOperatorType *ot);
78 void IMAGE_OT_save_sequence(struct wmOperatorType *ot);
79 void IMAGE_OT_pack(struct wmOperatorType *ot);
80 void IMAGE_OT_unpack(struct wmOperatorType *ot);
82 void IMAGE_OT_invert(struct wmOperatorType *ot);
84 void IMAGE_OT_cycle_render_slot(struct wmOperatorType *ot);
86 void IMAGE_OT_sample(struct wmOperatorType *ot);
87 void IMAGE_OT_sample_line(struct wmOperatorType *ot);
88 void IMAGE_OT_curves_point_set(struct wmOperatorType *ot);
90 void IMAGE_OT_record_composite(struct wmOperatorType *ot);
93 struct ImageUser *ntree_get_active_iuser(struct bNodeTree *ntree);
94 void image_buttons_register(struct ARegionType *art);
95 void IMAGE_OT_properties(struct wmOperatorType *ot);
96 void IMAGE_OT_scopes(struct wmOperatorType *ot);
98 #endif /* ED_IMAGE_INTERN_H */