2015-02-12 23:16:25 +08:00
|
|
|
// Aseprite
|
|
|
|
// Copyright (C) 2001-2015 David Capello
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License version 2 as
|
|
|
|
// published by the Free Software Foundation.
|
2013-08-06 08:20:19 +08:00
|
|
|
|
|
|
|
#ifndef APP_MODULES_GUI_H_INCLUDED
|
|
|
|
#define APP_MODULES_GUI_H_INCLUDED
|
2014-03-30 06:40:17 +08:00
|
|
|
#pragma once
|
2013-08-06 08:20:19 +08:00
|
|
|
|
|
|
|
#include "app/ui/skin/skin_property.h"
|
|
|
|
#include "base/exception.h"
|
|
|
|
#include "ui/base.h"
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
class ButtonBase;
|
|
|
|
class CheckBox;
|
|
|
|
class Message;
|
|
|
|
class RadioButton;
|
|
|
|
class Widget;
|
|
|
|
class Window;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace app {
|
|
|
|
class Command;
|
|
|
|
class Document;
|
|
|
|
class Params;
|
|
|
|
|
|
|
|
namespace tools {
|
|
|
|
class Tool;
|
|
|
|
}
|
|
|
|
|
|
|
|
int init_module_gui();
|
|
|
|
void exit_module_gui();
|
|
|
|
|
|
|
|
void update_screen_for_document(Document* document);
|
|
|
|
|
|
|
|
void gui_run();
|
|
|
|
void gui_feedback();
|
2015-04-17 23:24:33 +08:00
|
|
|
void gui_setup_screen();
|
2013-08-06 08:20:19 +08:00
|
|
|
|
|
|
|
void load_window_pos(ui::Widget* window, const char *section);
|
|
|
|
void save_window_pos(ui::Widget* window, const char *section);
|
|
|
|
|
2014-01-26 19:39:33 +08:00
|
|
|
ui::Widget* setup_mini_font(ui::Widget* widget);
|
|
|
|
ui::Widget* setup_mini_look(ui::Widget* widget);
|
|
|
|
ui::Widget* setup_look(ui::Widget* widget, skin::LookType lookType);
|
2013-08-06 08:20:19 +08:00
|
|
|
void setup_bevels(ui::Widget* widget, int b1, int b2, int b3, int b4);
|
|
|
|
|
|
|
|
void set_gfxicon_to_button(ui::ButtonBase* button,
|
|
|
|
int normal_part_id,
|
|
|
|
int selected_part_id,
|
|
|
|
int disabled_part_id, int icon_align);
|
|
|
|
|
|
|
|
ui::CheckBox* check_button_new(const char* text, int b1, int b2, int b3, int b4);
|
|
|
|
|
|
|
|
} // namespace app
|
|
|
|
|
|
|
|
#endif
|