4 * \file GtkLengthEntry.h
5 * This file is part of LyX, the document processor.
6 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef GLENGTHENTRY_H
14 #define GLENGTHENTRY_H
17 #include "lengthcommon.h"
20 #include <libglademm.h>
28 class GtkLengthEntry : public Gtk::HBox {
30 GtkLengthEntry(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
32 void set_length(LyXLength const & length);
33 void set_length(std::string const & length);
34 LyXLength const get_length();
35 std::string const get_length_string();
36 void set_relative(bool rel);
38 Gtk::SpinButton *get_spin();
39 Gtk::ComboBoxText *get_combo();
41 Gtk::SpinButton const *const get_spin() const;
42 Gtk::ComboBoxText const *const get_combo() const;
44 sigc::signal<void> &signal_changed();
47 // spin_ construction depends on adj_, so it must come first
49 Gtk::SpinButton spin_;
50 Gtk::ComboBoxText combo_;
51 sigc::signal<void> changedsignal_;
56 } // namespace frontend
59 #endif // NOT GTKLENGTHENTRY_H