mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 15:39:52 +00:00
Add PaletteView::IndexChange signal (to replace SIGNAL_PALETTE_EDITOR_CHANGE).
This commit is contained in:
parent
d72909e130
commit
e309656737
@ -533,7 +533,10 @@ bool PaletteView::onProcessMessage(JMessage msg)
|
||||
|
||||
update_scroll(c);
|
||||
|
||||
// Emit signals
|
||||
jwidget_emit_signal(this, SIGNAL_PALETTE_EDITOR_CHANGE);
|
||||
IndexChange(c);
|
||||
|
||||
c = 256;
|
||||
break;
|
||||
}
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <allegro/color.h>
|
||||
|
||||
#include "base/signal.h"
|
||||
#include "gui/widget.h"
|
||||
|
||||
// TODO use some JI_SIGNAL_USER
|
||||
@ -52,6 +53,9 @@ public:
|
||||
int get2ndColor();
|
||||
void getSelectedEntries(bool array[256]);
|
||||
|
||||
// Signals
|
||||
Signal1<void, int> IndexChange;
|
||||
|
||||
protected:
|
||||
bool onProcessMessage(JMessage msg);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user