mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Add the const-ized functions that GExternal needs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13733 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7855aa5b13
commit
5b92f48666
@ -81,7 +81,7 @@ GtkLengthEntry::GtkLengthEntry(
|
||||
pack_start (spin_, true, true, 0);
|
||||
pack_start (combo_, false, false, 0);
|
||||
show_all();
|
||||
spin_.signal_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
|
||||
spin_.signal_value_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
|
||||
combo_.signal_changed().connect(sigc::mem_fun(changedsignal_, &sigc::signal<void>::emit));
|
||||
}
|
||||
|
||||
@ -126,5 +126,28 @@ void GtkLengthEntry::set_relative(bool rel)
|
||||
}
|
||||
|
||||
|
||||
Gtk::ComboBoxText *GtkLengthEntry::get_combo()
|
||||
{
|
||||
return &combo_;
|
||||
}
|
||||
|
||||
|
||||
Gtk::SpinButton *GtkLengthEntry::get_spin()
|
||||
{
|
||||
return &spin_;
|
||||
}
|
||||
|
||||
Gtk::ComboBoxText const *const GtkLengthEntry::get_combo() const
|
||||
{
|
||||
return &combo_;
|
||||
}
|
||||
|
||||
|
||||
Gtk::SpinButton const *const GtkLengthEntry::get_spin() const
|
||||
{
|
||||
return &spin_;
|
||||
}
|
||||
|
||||
|
||||
} // namespace frontend
|
||||
} // namespace lyx
|
||||
|
@ -37,6 +37,10 @@ public:
|
||||
|
||||
Gtk::SpinButton *get_spin();
|
||||
Gtk::ComboBoxText *get_combo();
|
||||
|
||||
Gtk::SpinButton const *const get_spin() const;
|
||||
Gtk::ComboBoxText const *const get_combo() const;
|
||||
|
||||
sigc::signal<void> &signal_changed();
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user