Blender  V2.59
console_intern.h
Go to the documentation of this file.
00001 /*
00002  * $Id: console_intern.h 35242 2011-02-27 20:29:51Z jesterking $
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  * Contributor(s): Campbell Barton
00021  *
00022  * ***** END GPL LICENSE BLOCK *****
00023  */
00024 
00029 #ifndef ED_CONSOLE_INTERN_H
00030 #define ED_CONSOLE_INTERN_H
00031 
00032 /* internal exports only */
00033 
00034 struct ConsoleLine;
00035 struct wmOperatorType;
00036 struct ReportList;
00037 struct bContext;
00038 
00039 /* console_draw.c */
00040 void console_textview_main(struct SpaceConsole *sc, struct ARegion *ar);
00041 int console_textview_height(struct SpaceConsole *sc, struct ARegion *ar); /* needed to calculate the scrollbar */
00042 int console_char_pick(struct SpaceConsole *sc, struct ARegion *ar, int mval[2]);
00043 
00044 void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
00045 void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
00046 
00047 /* console_ops.c */
00048 void console_history_free(SpaceConsole *sc, ConsoleLine *cl);
00049 void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl);
00050 ConsoleLine *console_history_add_str(struct SpaceConsole *sc, char *str, int own);
00051 ConsoleLine *console_scrollback_add_str(struct SpaceConsole *sc, char *str, int own);
00052 
00053 ConsoleLine *console_history_verify(const struct bContext *C);
00054 
00055 int console_report_mask(SpaceConsole *sc);
00056 
00057 
00058 void CONSOLE_OT_move(struct wmOperatorType *ot);
00059 void CONSOLE_OT_delete(struct wmOperatorType *ot);
00060 void CONSOLE_OT_insert(struct wmOperatorType *ot);
00061 
00062 void CONSOLE_OT_history_append(struct wmOperatorType *ot);
00063 void CONSOLE_OT_scrollback_append(struct wmOperatorType *ot);
00064 
00065 void CONSOLE_OT_clear(struct wmOperatorType *ot);
00066 void CONSOLE_OT_history_cycle(struct wmOperatorType *ot);
00067 void CONSOLE_OT_copy(struct wmOperatorType *ot);
00068 void CONSOLE_OT_paste(struct wmOperatorType *ot);
00069 void CONSOLE_OT_select_set(struct wmOperatorType *ot);
00070 
00071 enum { LINE_BEGIN, LINE_END, PREV_CHAR, NEXT_CHAR, PREV_WORD, NEXT_WORD };
00072 enum { DEL_ALL, DEL_NEXT_CHAR, DEL_PREV_CHAR, DEL_SELECTION, DEL_NEXT_SEL, DEL_PREV_SEL };
00073 
00074 #endif /* ED_CONSOLE_INTERN_H */