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 
cadabra::ChooseColoursDialog::colour_buttons
std::map< std::string, std::map< std::string, std::unique_ptr< Gtk::ColorButton > > > colour_buttons
Definition: ChooseColoursDialog.hh:22
cadabra::ChooseColoursDialog::RESPONSE_CHANGED
Definition: ChooseColoursDialog.hh:17
cadabra::ChooseColoursDialog::main_grid
Gtk::Grid main_grid
Definition: ChooseColoursDialog.hh:24
cadabra::ChooseColoursDialog::prefs
DocumentThread::Prefs & prefs
Definition: ChooseColoursDialog.hh:21
cadabra::ChooseColoursDialog::on_my_response
void on_my_response(int response_id)
cadabra::ChooseColoursDialog::parent
NotebookWindow & parent
Definition: ChooseColoursDialog.hh:30
cadabra::ChooseColoursDialog::responses
responses
Definition: ChooseColoursDialog.hh:15
cadabra::ChooseColoursDialog
Definition: ChooseColoursDialog.hh:13
cadabra::DocumentThread::Prefs
Definition: DocumentThread.hh:99
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:26
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:82
cadabra::ChooseColoursDialog::anonymous_widgets
std::vector< std::unique_ptr< Gtk::Widget > > anonymous_widgets
Definition: ChooseColoursDialog.hh:23
NotebookWindow.hh
cadabra::ChooseColoursDialog::RESPONSE_PREVIEW
Definition: ChooseColoursDialog.hh:16
cadabra::NotebookWindow
Definition: NotebookWindow.hh:39
cadabra::ChooseColoursDialog::button_ok
Gtk::Button button_ok
Definition: ChooseColoursDialog.hh:27
cadabra::ChooseColoursDialog::main_vbox
Gtk::VBox main_vbox
Definition: ChooseColoursDialog.hh:25