#pragma once #include #include #include #include #include #include #include "NotebookWindow.hh" namespace cadabra { class ChooseColoursDialog : public Gtk::Dialog { public: enum responses { RESPONSE_PREVIEW = 101, RESPONSE_CHANGED }; ChooseColoursDialog(DocumentThread::Prefs& prefs, NotebookWindow& parent); private: DocumentThread::Prefs& prefs; std::map>> colour_buttons; std::vector> anonymous_widgets; Gtk::Grid main_grid; Gtk::VBox main_vbox; Gtk::HBox bottom_button_box; Gtk::Button button_ok; void on_my_response(int response_id); void on_color_set(); NotebookWindow& parent; }; }