Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
frontend
gtkmm
SliderView.hh
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <gtkmm/box.h>
5
#include <gtkmm/scale.h>
6
#ifndef USE_GTK4
7
#include <gtkmm/eventbox.h>
8
#endif
9
#include <gtkmm/adjustment.h>
10
11
namespace
cadabra
{
12
22
23
#ifdef USE_GTK4
24
class
SliderView
:
public
Gtk::Box {
25
#else
26
class
SliderView
:
public
Gtk::EventBox {
27
#endif
28
public
:
29
SliderView
(std::string config);
30
virtual
~SliderView
();
31
32
std::string
get_variable
()
const
;
33
34
Glib::RefPtr<Gtk::Adjustment>
adjustment
;
35
36
private
:
37
Gtk::VBox
vbox
;
38
Gtk::Scale
scale
;
39
40
double
value
,
min_value
,
max_value
,
step_size
;
41
std::string
variable
;
42
};
43
44
};
cadabra::SliderView
An slider widget.
Definition
SliderView.hh:26
cadabra::SliderView::variable
std::string variable
Definition
SliderView.hh:41
cadabra::SliderView::step_size
double step_size
Definition
SliderView.hh:40
cadabra::SliderView::adjustment
Glib::RefPtr< Gtk::Adjustment > adjustment
Definition
SliderView.hh:34
cadabra::SliderView::min_value
double min_value
Definition
SliderView.hh:40
cadabra::SliderView::vbox
Gtk::VBox vbox
Definition
SliderView.hh:37
cadabra::SliderView::max_value
double max_value
Definition
SliderView.hh:40
cadabra::SliderView::SliderView
SliderView(std::string config)
Definition
SliderView.cc:27
cadabra::SliderView::~SliderView
virtual ~SliderView()
Definition
SliderView.cc:56
cadabra::SliderView::scale
Gtk::Scale scale
Definition
SliderView.hh:38
cadabra::SliderView::get_variable
std::string get_variable() const
Definition
SliderView.cc:60
cadabra::SliderView::value
double value
Definition
SliderView.hh:40
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition
Adjform.cc:83
Generated by
1.17.0