Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
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
11namespace 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
41 std::string variable;
42 };
43
44 };
An slider widget.
Definition SliderView.hh:26
std::string variable
Definition SliderView.hh:41
double step_size
Definition SliderView.hh:40
Glib::RefPtr< Gtk::Adjustment > adjustment
Definition SliderView.hh:34
double min_value
Definition SliderView.hh:40
Gtk::VBox vbox
Definition SliderView.hh:37
double max_value
Definition SliderView.hh:40
virtual ~SliderView()
Definition SliderView.cc:56
Gtk::Scale scale
Definition SliderView.hh:38
std::string get_variable() const
Definition SliderView.cc:60
double value
Definition SliderView.hh:40
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83
void set(rset_t::iterator &num, multiplier_t fac)
Definition Storage.cc:1179