libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GtkCRNConfigElement.h
Go to the documentation of this file.
1 /* Copyright 2011-2014 CoReNum, INSA-Lyon
2  *
3  * This file is part of libgtkcrnmm.
4  *
5  * libgtkcrnmm is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * libgtkcrnmm is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libgtkcrnmm. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * file: GtkCRNConfigElement.h
19  * \author Yann LEYDIER
20  */
21 
22 #ifndef GtkCRNConfigElement_HEADER
23 #define GtkCRNConfigElement_HEADER
24 
25 #include <libgtkcrnmm_config.h>
26 #include <gtkmm.h>
28 
29 namespace GtkCRN
30 {
34  class ConfigElement: public Gtk::HBox
35  {
36  public:
38  ConfigElement(crn::ConfigElement &el, bool differ = false);
40  virtual ~ConfigElement() override { }
41 
43  void apply_changes();
44  private:
45  void on_p3_changed(crn::Prop3 p3);
46  void on_combo_changed(Gtk::ComboBoxText *combo);
47  void on_range_changed(Gtk::Range *range);
48  void on_spin_changed(Gtk::SpinButton *spin);
49  void on_entry_changed(Gtk::Entry *entry);
50  crn::String typ;
51  crn::SObject value, tmpvalue;
52  };
53 }
54 
55 #endif
56 
57 
58 
ConfigElement(crn::ConfigElement &el, bool differ=false)
Constructor.
ScalarRange< T > Range(T b, T e)
Creates a range [[b, e[[.
Definition: CRNType.h:257
virtual ~ConfigElement() override
Destructor.
A UTF32 character string class.
Definition: CRNString.h:61
void apply_changes()
In differ mode, validates the changes to the value.
Representation for a configuration element.
A element of configuration.
A ternary proposition.
Definition: CRNProp3.h:40