Back to index

easystroke  0.5.5.1
Public Member Functions | Private Member Functions | Private Attributes
Adjustment< T > Class Template Reference
Inheritance diagram for Adjustment< T >:
Inheritance graph
[legend]
Collaboration diagram for Adjustment< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Adjustment (IO< T > &io_, const Glib::ustring &name)

Private Member Functions

virtual void notify ()
void on_changed ()

Private Attributes

IO< T > & io
Glib::RefPtr< Gtk::Adjustment > adj
Gtk::Button * button

Detailed Description

template<class T>
class Adjustment< T >

Definition at line 43 of file prefs.cc.


Constructor & Destructor Documentation

template<class T>
Adjustment< T >::Adjustment ( IO< T > &  io_,
const Glib::ustring &  name 
) [inline]

Definition at line 54 of file prefs.cc.

                                                        : io(io_) {
              io.connect(this);
              adj = Glib::RefPtr<Gtk::Adjustment>::cast_dynamic(widgets->get_object(name));
              notify();
              adj->signal_value_changed().connect(sigc::mem_fun(*this, &Adjustment::on_changed));
       }

Here is the call graph for this function:


Member Function Documentation

template<class T>
virtual void Adjustment< T >::notify ( ) [inline, private, virtual]

Implements Base.

Definition at line 47 of file prefs.cc.

{ adj->set_value(io.get()); }

Here is the caller graph for this function:

template<class T>
void Adjustment< T >::on_changed ( ) [inline, private]

Definition at line 48 of file prefs.cc.

                         {
              T i = (T)adj->get_value();
              if (i == io.get()) return;
              io.set(i);
       }

Here is the caller graph for this function:


Member Data Documentation

template<class T>
Glib::RefPtr<Gtk::Adjustment> Adjustment< T >::adj [private]

Definition at line 45 of file prefs.cc.

template<class T>
Gtk::Button* Adjustment< T >::button [private]

Definition at line 46 of file prefs.cc.

template<class T>
IO<T>& Adjustment< T >::io [private]

Definition at line 44 of file prefs.cc.


The documentation for this class was generated from the following file: