SPH
PaletteDialog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "gui/objects/Palette.h"
6 #include <wx/frame.h>
7 
9 
10 class ComboBox;
11 class PaletteCanvas;
12 
13 class PaletteDialog : public wxFrame {
14 private:
15  ComboBox* paletteBox;
16 
17  PaletteCanvas* canvas;
18 
19  Function<void(Palette)> setPaletteCallback;
20 
22 
23  Palette initial;
24 
25  Palette selected;
26 
27 public:
28  PaletteDialog(wxWindow* parent, wxSize size, const Palette palette, Function<void(Palette)> setPalette);
29 
30 private:
31  void update();
32 
33  void setDefaultPaletteList();
34 };
35 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Key-value associative container implemented as a sorted array.
Generic wrappers of lambdas, functors and other callables.
#define NAMESPACE_SPH_END
Definition: Object.h:12
PaletteDialog(wxWindow *parent, wxSize size, const Palette palette, Function< void(Palette)> setPalette)
Represents a color palette, used for mapping arbitrary number to a color.
Definition: Palette.h:25