/* Copyright 2008 Jeffrey Lee
   This file is part of Pale.
   Pale is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   Pale is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   You should have received a copy of the GNU General Public License
   along with Pale.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _EDITOR_H
#define _EDITOR_H

#include "pale.h"

//DEPPEND

extern int editor_typing;

extern int editor_mousetoindex(paleditor *e,limpx_mouse_obj *m);
extern void editor_resettoolicons(paleditor *e);
extern void editor_redrawentries(paleditor *e,int start,int end);
extern void editor_redrawentry(paleditor *e,int index);
extern void editor_rebuildsprlistwindow(paleditor *e);
extern void editor_redraw(paleditor *e,limpx_redraw_obj *r,int first);
extern void open_editor_menu(paleditor *e,limpx_mouse_obj *m);
extern void editor_clickpalette(paleditor *e,limpx_mouse_obj *m);
extern void open_sprlistwin_menu(paleditor *e,limpx_mouse_obj *m);
extern void editor_openpreviews(paleditor *e);
extern void editor_updatehint(paleditor *e,limpx_mouse_obj *m);
extern void editor_redrawpreviews(paleditor *e);
extern paleditor *editor_create(sprfile *s,int index);
extern void editor_redrawpal(paleditor *e);
extern void editor_repositionsprlistwin(paleditor *e,limpx_window_state *pos);
extern void editor_writeentry(paleditor *e,int index,int r,int g,int b);
extern void editor_remap(paleditor *e,char *remap);
extern void editor_highlight(paleditor *e,int index);

#endif
