Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
frontend
gtkmm
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
{
16
RESPONSE_PREVIEW
= 101,
17
RESPONSE_CHANGED
18
};
19
ChooseColoursDialog
(
DocumentThread::Prefs
&
prefs
,
NotebookWindow
&
parent
);
20
private
:
21
DocumentThread::Prefs
&
prefs
;
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::Box
main_vbox
;
26
Gtk::Box
bottom_button_box
;
27
Gtk::Button
button_ok
;
28
void
on_my_response
(
int
response_id);
29
void
on_color_set
();
30
NotebookWindow
&
parent
;
31
};
32
}
33
34
cadabra::ChooseColoursDialog::on_color_set
void on_color_set()
Definition
ChooseColoursDialog.cc:79
cadabra::ChooseColoursDialog::on_my_response
void on_my_response(int response_id)
cadabra::ChooseColoursDialog::responses
responses
Definition
ChooseColoursDialog.hh:15
cadabra::ChooseColoursDialog::RESPONSE_PREVIEW
@ RESPONSE_PREVIEW
Definition
ChooseColoursDialog.hh:16
cadabra::ChooseColoursDialog::RESPONSE_CHANGED
@ RESPONSE_CHANGED
Definition
ChooseColoursDialog.hh:17
cadabra::ChooseColoursDialog::bottom_button_box
Gtk::Box bottom_button_box
Definition
ChooseColoursDialog.hh:26
cadabra::ChooseColoursDialog::parent
NotebookWindow & parent
Definition
ChooseColoursDialog.hh:30
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::anonymous_widgets
std::vector< std::unique_ptr< Gtk::Widget > > anonymous_widgets
Definition
ChooseColoursDialog.hh:23
cadabra::ChooseColoursDialog::prefs
DocumentThread::Prefs & prefs
Definition
ChooseColoursDialog.hh:21
cadabra::ChooseColoursDialog::main_vbox
Gtk::Box main_vbox
Definition
ChooseColoursDialog.hh:25
cadabra::ChooseColoursDialog::ChooseColoursDialog
ChooseColoursDialog(DocumentThread::Prefs &prefs, NotebookWindow &parent)
Definition
ChooseColoursDialog.cc:21
cadabra::ChooseColoursDialog::main_grid
Gtk::Grid main_grid
Definition
ChooseColoursDialog.hh:24
cadabra::ChooseColoursDialog::button_ok
Gtk::Button button_ok
Definition
ChooseColoursDialog.hh:27
cadabra::DocumentThread::Prefs
Definition
DocumentThread.hh:127
cadabra::NotebookWindow
Each notebook has one main window which controls it.
Definition
NotebookWindow.hh:41
NotebookWindow.hh
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition
Adjform.cc:83
Generated by
1.17.0