aseprite/src/app.h

84 lines
1.9 KiB
C
Raw Normal View History

2007-11-16 18:25:45 +00:00
/* ASE - Allegro Sprite Editor
2010-02-01 21:25:40 +00:00
* Copyright (C) 2001-2010 David 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
*/
2009-12-11 14:53:05 +00:00
#ifndef APP_H_INCLUDED
#define APP_H_INCLUDED
2007-09-18 23:57:02 +00:00
#include "jinete/jbase.h"
#include "Vaca/Signal.h"
2007-09-18 23:57:02 +00:00
2010-01-29 03:15:33 +00:00
#include <vector>
class Frame;
class Layer;
2010-01-29 03:15:33 +00:00
class LegacyModules;
class Params;
class Sprite;
class ToolBox;
2010-01-29 03:15:33 +00:00
class App
{
2010-01-29 03:15:33 +00:00
class Modules;
static App* m_instance;
2010-01-29 03:15:33 +00:00
Modules* m_modules;
LegacyModules* m_legacy;
public:
App();
~App();
static App* instance() { return m_instance; }
int run();
ToolBox* get_toolbox();
// App Signals
Vaca::Signal0<void> Exit;
Vaca::Signal0<void> PaletteChange;
Vaca::Signal0<void> PenSizeBeforeChange;
Vaca::Signal0<void> PenSizeAfterChange;
Vaca::Signal0<void> CurrentToolChange;
};
void app_refresh_screen(const Sprite* sprite);
2007-09-18 23:57:02 +00:00
void app_realloc_sprite_list();
bool app_realloc_recent_list();
2007-09-18 23:57:02 +00:00
int app_get_current_image_type();
2007-09-18 23:57:02 +00:00
Frame* app_get_top_window();
Widget* app_get_menubar();
Widget* app_get_statusbar();
Widget* app_get_colorbar();
Widget* app_get_toolbar();
Widget* app_get_tabsbar();
2007-09-18 23:57:02 +00:00
void app_default_statusbar_message();
2007-09-18 23:57:02 +00:00
int app_get_fg_color(Sprite* sprite);
int app_get_bg_color(Sprite* sprite);
int app_get_color_to_clear_layer(Layer* layer);
2009-08-17 21:38:00 +00:00
#endif
2007-09-18 23:57:02 +00:00