Blender  V2.59
buttons_intern.h
Go to the documentation of this file.
00001 /*
00002  * $Id: buttons_intern.h 37557 2011-06-16 15:28:39Z campbellbarton $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version. 
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2008 Blender Foundation.
00021  * All rights reserved.
00022  *
00023  * 
00024  * Contributor(s): Blender Foundation
00025  *
00026  * ***** END GPL LICENSE BLOCK *****
00027  */
00028 
00033 #ifndef ED_BUTTONS_INTERN_H
00034 #define ED_BUTTONS_INTERN_H
00035 
00036 struct ARegion;
00037 struct ARegionType;
00038 struct bContext;
00039 struct bContextDataResult;
00040 struct SpaceButs;
00041 struct uiLayout;
00042 struct wmOperatorType;
00043 struct ID;
00044 
00045 /* buts->scaflag */             
00046 #define BUTS_SENS_SEL           1
00047 #define BUTS_SENS_ACT           2
00048 #define BUTS_SENS_LINK          4
00049 #define BUTS_CONT_SEL           8
00050 #define BUTS_CONT_ACT           16
00051 #define BUTS_CONT_LINK          32
00052 #define BUTS_ACT_SEL            64
00053 #define BUTS_ACT_ACT            128
00054 #define BUTS_ACT_LINK           256
00055 #define BUTS_SENS_STATE         512
00056 #define BUTS_ACT_STATE          1024
00057 
00058 /* internal exports only */
00059 
00060 /* buttons_header.c */
00061 void buttons_header_buttons(const struct bContext *C, struct ARegion *ar);
00062 
00063 /* buttons_context.c */
00064 void buttons_context_compute(const struct bContext *C, struct SpaceButs *sbuts);
00065 int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result);
00066 void buttons_context_draw(const struct bContext *C, struct uiLayout *layout);
00067 void buttons_context_register(struct ARegionType *art);
00068 struct ID *buttons_context_id_path(const struct bContext *C);
00069 
00070 extern const char *buttons_context_dir[]; /* doc access */
00071 
00072 /* buttons_ops.c */
00073 void BUTTONS_OT_file_browse(struct wmOperatorType *ot);
00074 void BUTTONS_OT_directory_browse(struct wmOperatorType *ot);
00075 void BUTTONS_OT_toolbox(struct wmOperatorType *ot);
00076 
00077 #endif /* ED_BUTTONS_INTERN_H */
00078