Cadabra
Computer algebra system for field theory problems
ChooseColoursDialog.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <gtkmm/dialog.h>
5 #include <gtkmm/grid.h>
6 #include <gtkmm/colorbutton.h>
7 #include <vector>
8 #include <memory>
9 #include <map>
10 #include "NotebookWindow.hh"
11 
12 namespace cadabra {
13  class ChooseColoursDialog : public Gtk::Dialog {
14  public:
15  enum responses {
18  };
20  private:
22  std::map<std::string, std::map<std::string, std::unique_ptr<Gtk::ColorButton>>> colour_buttons;
23  std::vector<std::unique_ptr<Gtk::Widget>> anonymous_widgets;
24  Gtk::Grid main_grid;
25  Gtk::VBox main_vbox;
26  Gtk::HBox bottom_button_box;
27  Gtk::Button button_ok;
28  void on_my_response(int response_id);
29  void on_color_set();
31  };
32  }
33 
34 
Definition: ChooseColoursDialog.hh:13
void on_color_set()
Definition: ChooseColoursDialog.cc:75
void on_my_response(int response_id)
responses
Definition: ChooseColoursDialog.hh:15
@ RESPONSE_PREVIEW
Definition: ChooseColoursDialog.hh:16
@ RESPONSE_CHANGED
Definition: ChooseColoursDialog.hh:17
NotebookWindow & parent
Definition: ChooseColoursDialog.hh:30
std::map< std::string, std::map< std::string, std::unique_ptr< Gtk::ColorButton > > > colour_buttons
Definition: ChooseColoursDialog.hh:22
Gtk::VBox main_vbox
Definition: ChooseColoursDialog.hh:25
std::vector< std::unique_ptr< Gtk::Widget > > anonymous_widgets
Definition: ChooseColoursDialog.hh:23
DocumentThread::Prefs & prefs
Definition: ChooseColoursDialog.hh:21
Gtk::HBox bottom_button_box
Definition: ChooseColoursDialog.hh:26
ChooseColoursDialog(DocumentThread::Prefs &prefs, NotebookWindow &parent)
Definition: ChooseColoursDialog.cc:21
Gtk::Grid main_grid
Definition: ChooseColoursDialog.hh:24
Gtk::Button button_ok
Definition: ChooseColoursDialog.hh:27
Definition: DocumentThread.hh:101
Each notebook has one main window which controls it.
Definition: NotebookWindow.hh:39
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83