Back to index

easystroke  0.5.5.1
Public Member Functions | Private Member Functions | Private Attributes
MenuCheck Class Reference
Inheritance diagram for MenuCheck:
Inheritance graph
[legend]
Collaboration diagram for MenuCheck:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MenuCheck (IO< bool > &io_, Gtk::CheckMenuItem *check_)

Private Member Functions

virtual void notify ()
void on_changed ()

Private Attributes

IO< bool > & io
Gtk::CheckMenuItem * check

Detailed Description

Definition at line 137 of file win.cc.


Constructor & Destructor Documentation

MenuCheck::MenuCheck ( IO< bool > &  io_,
Gtk::CheckMenuItem *  check_ 
) [inline]

Definition at line 147 of file win.cc.

                                                          : io(io_), check(check_) {
              io.connect(this);
              notify();
              check->signal_toggled().connect(sigc::mem_fun(*this, &MenuCheck::on_changed));
       }

Here is the call graph for this function:


Member Function Documentation

virtual void MenuCheck::notify ( ) [inline, private, virtual]

Implements Base.

Definition at line 140 of file win.cc.

{ check->set_active(io.get()); }

Here is the call graph for this function:

Here is the caller graph for this function:

void MenuCheck::on_changed ( ) [inline, private]

Definition at line 141 of file win.cc.

                         {
              bool b = check->get_active();
              if (b == io.get()) return;
              io.set(b);
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Gtk::CheckMenuItem* MenuCheck::check [private]

Definition at line 139 of file win.cc.

IO<bool>& MenuCheck::io [private]

Definition at line 138 of file win.cc.


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