25 #ifndef __SYNFIG_STUDIO_DOCK_PAL_EDIT_H
26 #define __SYNFIG_STUDIO_DOCK_PAL_EDIT_H
31 #include <gtkmm/adjustment.h>
32 #include <gtkmm/table.h>
33 #include <gtkmm/button.h>
34 #include <gtkmm/dialog.h>
35 #include <gtkmm/drawingarea.h>
36 #include <gtkmm/checkbutton.h>
38 #include <synfig/gamma.h>
39 #include <synfig/time.h>
41 #include "../../widgets/widget_coloredit.h"
44 #include <synfig/time.h>
46 #include "../../docks/dockable.h"
48 #include <gtkmm/actiongroup.h>
50 #include <synfig/palette.h>
59 class CanvasInterface;
65 class PaletteSettings;
71 Glib::RefPtr<Gtk::ActionGroup> action_group;
73 synfig::Palette palette_;
77 void on_add_pressed();
79 void on_save_pressed();
81 void on_open_pressed();
83 void show_menu(
int i);
85 sigc::signal<void> signal_changed_;
89 int add_color(
const synfig::Color& x);
90 void set_color(synfig::Color x,
int i);
91 void erase_color(
int i);
93 void select_fill_color(
int i);
94 void select_outline_color(
int i);
95 synfig::Color get_color(
int i)
const;
96 void edit_color(
int i);
99 const synfig::Palette&
get_palette()
const {
return palette_; }