2007-11-16 18:25:45 +00:00
|
|
|
/* ASE - Allegro Sprite Editor
|
2008-02-10 19:06:03 +00:00
|
|
|
* Copyright (C) 2001-2008 David A. Capello
|
2007-09-18 23:57:02 +00:00
|
|
|
*
|
|
|
|
* This program 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 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CORE_APP_H
|
|
|
|
#define CORE_APP_H
|
|
|
|
|
2007-12-05 01:30:50 +00:00
|
|
|
#include "jinete/jbase.h"
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2008-03-22 18:43:56 +00:00
|
|
|
/* enumeration of ASE events in the highest application level */
|
|
|
|
enum {
|
|
|
|
APP_EXIT,
|
|
|
|
APP_PALETTE_CHANGE,
|
|
|
|
APP_EVENTS
|
|
|
|
};
|
|
|
|
|
2008-02-04 02:37:26 +00:00
|
|
|
bool app_init(int argc, char *argv[]);
|
2007-09-23 20:13:58 +00:00
|
|
|
void app_loop(void);
|
|
|
|
void app_exit(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2008-03-22 18:43:56 +00:00
|
|
|
void app_add_hook(int app_event, void (*proc)(void *data), void *data);
|
|
|
|
void app_trigger_event(int app_event);
|
|
|
|
|
2007-09-23 20:13:58 +00:00
|
|
|
void app_refresh_screen(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2007-09-23 20:13:58 +00:00
|
|
|
void app_realloc_sprite_list(void);
|
2008-02-04 02:37:26 +00:00
|
|
|
bool app_realloc_recent_list(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2007-09-23 20:13:58 +00:00
|
|
|
int app_get_current_image_type(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2007-09-23 20:13:58 +00:00
|
|
|
JWidget app_get_top_window(void);
|
2008-02-29 19:29:49 +00:00
|
|
|
JWidget app_get_menubar(void);
|
|
|
|
JWidget app_get_statusbar(void);
|
|
|
|
JWidget app_get_colorbar(void);
|
|
|
|
JWidget app_get_toolbar(void);
|
|
|
|
JWidget app_get_tabsbar(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2008-02-29 19:29:49 +00:00
|
|
|
void app_default_statusbar_message(void);
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
#endif /* CORE_APP_H */
|
|
|
|
|