Blender V2.61 - r43446

console_intern.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version. 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * Contributor(s): Campbell Barton
00019  *
00020  * ***** END GPL LICENSE BLOCK *****
00021  */
00022 
00027 #ifndef ED_CONSOLE_INTERN_H
00028 #define ED_CONSOLE_INTERN_H
00029 
00030 /* internal exports only */
00031 
00032 struct ConsoleLine;
00033 struct wmOperatorType;
00034 struct ReportList;
00035 struct bContext;
00036 
00037 /* console_draw.c */
00038 void console_textview_main(struct SpaceConsole *sc, struct ARegion *ar);
00039 int console_textview_height(struct SpaceConsole *sc, struct ARegion *ar); /* needed to calculate the scrollbar */
00040 int console_char_pick(struct SpaceConsole *sc, struct ARegion *ar, int mval[2]);
00041 
00042 void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
00043 void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
00044 
00045 /* console_ops.c */
00046 void console_history_free(SpaceConsole *sc, ConsoleLine *cl);
00047 void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl);
00048 ConsoleLine *console_history_add_str(struct SpaceConsole *sc, char *str, int own);
00049 ConsoleLine *console_scrollback_add_str(struct SpaceConsole *sc, char *str, int own);
00050 
00051 ConsoleLine *console_history_verify(const struct bContext *C);
00052 
00053 int console_report_mask(SpaceConsole *sc);
00054 
00055 
00056 void CONSOLE_OT_move(struct wmOperatorType *ot);
00057 void CONSOLE_OT_delete(struct wmOperatorType *ot);
00058 void CONSOLE_OT_insert(struct wmOperatorType *ot);
00059 
00060 void CONSOLE_OT_history_append(struct wmOperatorType *ot);
00061 void CONSOLE_OT_scrollback_append(struct wmOperatorType *ot);
00062 
00063 void CONSOLE_OT_clear(struct wmOperatorType *ot);
00064 void CONSOLE_OT_history_cycle(struct wmOperatorType *ot);
00065 void CONSOLE_OT_copy(struct wmOperatorType *ot);
00066 void CONSOLE_OT_paste(struct wmOperatorType *ot);
00067 void CONSOLE_OT_select_set(struct wmOperatorType *ot);
00068 
00069 enum { LINE_BEGIN, LINE_END, PREV_CHAR, NEXT_CHAR, PREV_WORD, NEXT_WORD };
00070 enum { DEL_ALL, DEL_NEXT_CHAR, DEL_PREV_CHAR, DEL_SELECTION, DEL_NEXT_SEL, DEL_PREV_SEL };
00071 
00072 #endif /* ED_CONSOLE_INTERN_H */