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 <json/json.h>
7 #include <gtkmm/colorbutton.h>
8 #include <vector>
9 #include <memory>
10 #include <map>
11 #include "NotebookWindow.hh"
12 
13 namespace cadabra {
14  class ChooseColoursDialog : public Gtk::Dialog {
15  public:
16  enum responses {
19  };
21  private:
23  std::map<std::string, std::map<std::string, std::unique_ptr<Gtk::ColorButton>>> colour_buttons;
24  std::vector<std::unique_ptr<Gtk::Widget>> anonymous_widgets;
25  Gtk::Grid main_grid;
26  Gtk::VBox main_vbox;
27  Gtk::HBox bottom_button_box;
28  Gtk::Button button_ok;
29  void on_my_response(int response_id);
30  void on_color_set();
32  };
33  }
34 
35 
cadabra::ChooseColoursDialog::colour_buttons
std::map< std::string, std::map< std::string, std::unique_ptr< Gtk::ColorButton > > > colour_buttons
Definition: ChooseColoursDialog.hh:23
cadabra::ChooseColoursDialog::RESPONSE_CHANGED
Definition: ChooseColoursDialog.hh:18
cadabra::ChooseColoursDialog::main_grid
Gtk::Grid main_grid
Definition: ChooseColoursDialog.hh:25
cadabra::ChooseColoursDialog::prefs
DocumentThread::Prefs & prefs
Definition: ChooseColoursDialog.hh:22
cadabra::ChooseColoursDialog::on_my_response
void on_my_response(int response_id)
cadabra::ChooseColoursDialog::parent
NotebookWindow & parent
Definition: ChooseColoursDialog.hh:31
cadabra::ChooseColoursDialog::responses
responses
Definition: ChooseColoursDialog.hh:16
cadabra::ChooseColoursDialog
Definition: ChooseColoursDialog.hh:14
cadabra::DocumentThread::Prefs
Definition: DocumentThread.hh:94
cadabra::ChooseColoursDialog::on_color_set
void on_color_set()
Definition: ChooseColoursDialog.cc:75
cadabra::ChooseColoursDialog::bottom_button_box
Gtk::HBox bottom_button_box
Definition: ChooseColoursDialog.hh:27
cadabra::ChooseColoursDialog::ChooseColoursDialog
ChooseColoursDialog(DocumentThread::Prefs &prefs, NotebookWindow &parent)
Definition: ChooseColoursDialog.cc:21
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::ChooseColoursDialog::anonymous_widgets
std::vector< std::unique_ptr< Gtk::Widget > > anonymous_widgets
Definition: ChooseColoursDialog.hh:24
NotebookWindow.hh
cadabra::ChooseColoursDialog::RESPONSE_PREVIEW
Definition: ChooseColoursDialog.hh:17
cadabra::NotebookWindow
Definition: NotebookWindow.hh:37
cadabra::ChooseColoursDialog::button_ok
Gtk::Button button_ok
Definition: ChooseColoursDialog.hh:28
cadabra::ChooseColoursDialog::main_vbox
Gtk::VBox main_vbox
Definition: ChooseColoursDialog.hh:26