Back to index

Public Member Functions | Private Member Functions | Private Attributes
Actions::OnStroke Class Reference
Collaboration diagram for Actions::OnStroke:
Collaboration graph

List of all members.

Public Member Functions

 OnStroke (Actions *parent_, Gtk::Dialog *dialog_, Gtk::TreeRow &row_)
void delayed_run (RStroke stroke_)

Private Member Functions

bool run ()

Private Attributes

Gtk::Dialog * dialog
Gtk::TreeRow & row
RStroke stroke

Detailed Description

Definition at line 756 of file

Constructor & Destructor Documentation

Actions::OnStroke::OnStroke ( Actions parent_,
Gtk::Dialog *  dialog_,
Gtk::TreeRow &  row_ 
) [inline]

Definition at line 785 of file

: parent(parent_), dialog(dialog_), row(row_) {}

Member Function Documentation

void Actions::OnStroke::delayed_run ( RStroke  stroke_) [inline]

Definition at line 786 of file

              stroke = stroke_;
              Glib::signal_idle().connect(sigc::mem_fun(*this, &OnStroke::run));

Here is the call graph for this function:

Here is the caller graph for this function:

bool Actions::OnStroke::run ( ) [inline, private]

Definition at line 761 of file

              if (stroke->button == 0 && stroke->trivial()) {
                     Glib::ustring msg = Glib::ustring::compose(
                                   _("You are about to bind an action to a single click.  "
                                          "This might make it difficult to use Button %1 in the future.  "
                                          "Are you sure you want to continue?"),
                                   stroke->button ? stroke->button : prefs.button.ref().button);
                     Gtk::MessageDialog md(*dialog, msg, false, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_YES_NO, true);
                     bool abort = != Gtk::RESPONSE_YES;
                     if (abort)
                            return false;
              StrokeSet strokes;
              parent->action_list->set_strokes(row[parent->], strokes);
              return false;

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Gtk::Dialog* Actions::OnStroke::dialog [private]

Definition at line 758 of file

Definition at line 757 of file

Gtk::TreeRow& Actions::OnStroke::row [private]

Definition at line 759 of file

Definition at line 760 of file

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