ekg2
plugins/ncurses/bindings.h
Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2003 Wojtek Kaniewski <wojtekka@irc.pl>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License Version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 #ifndef __EKG_NCURSES_BINDINGS_H
00021 #define __EKG_NCURSES_BINDINGS_H
00022 
00023 #include "ecurses.h"
00024 
00025 #include <ekg/bindings.h>
00026 #include <ekg/stuff.h>
00027 
00028 #define KEY_CTRL_ENTER 350
00029 #define KEY_CTRL_ESCAPE 351
00030 #define KEY_CTRL_HOME 352
00031 #define KEY_CTRL_END 353
00032 #define KEY_CTRL_DC 354
00033 #define KEY_CTRL_BACKSPACE 355
00034 #define KEY_CTRL_TAB 356
00035 
00036 extern struct binding *ncurses_binding_map[KEY_MAX + 1];
00037 extern struct binding *ncurses_binding_map_meta[KEY_MAX + 1];
00038 
00039 extern void *ncurses_binding_complete;
00040 extern void *ncurses_binding_accept_line;
00041 extern int bindings_added_max;
00042 
00043 void ncurses_binding_init();
00044 
00045 void ncurses_binding_add(const char *key, const char *action, int internal, int quiet);
00046 void ncurses_binding_delete(const char *key, int quiet);
00047 int  ncurses_binding_default(void *, va_list);
00048 void ncurses_binding_set(int quiet, const char *key, const char *sequence);
00049 
00050 void binding_helper_scroll(window_t *w, int offset);
00051 BINDING_FUNCTION(binding_next_contacts_group);
00052 
00053 #endif /* __EKG_NCURSES_BINDINGS_H */
00054 
00055 /*
00056  * Local Variables:
00057  * mode: c
00058  * c-file-style: "k&r"
00059  * c-basic-offset: 8
00060  * indent-tabs-mode: t
00061  * End:
00062  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje