Back to index

easystroke  0.5.5.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
Button Class Reference

#include <actiondb.h>

Inheritance diagram for Button:
Inheritance graph
[legend]
Collaboration diagram for Button:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Button ()
ButtonInfo get_button_info () const
virtual const Glib::ustring get_label () const
virtual void run ()

Static Public Member Functions

static unsigned int get_button (RAction act)
static RButton create (Gdk::ModifierType mods, guint button_)

Protected Member Functions

virtual RModifiers prepare ()

Protected Attributes

Gdk::ModifierType mods

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Button (Gdk::ModifierType mods, guint button_)

Private Attributes

guint button

Friends

class boost::serialization::access

Detailed Description

Definition at line 146 of file actiondb.h.


Constructor & Destructor Documentation

Button::Button ( Gdk::ModifierType  mods,
guint  button_ 
) [inline, private]

Definition at line 149 of file actiondb.h.

: ModAction(mods), button(button_) {}
Button::Button ( ) [inline]

Definition at line 152 of file actiondb.h.

{}

Here is the caller graph for this function:


Member Function Documentation

static RButton Button::create ( Gdk::ModifierType  mods,
guint  button_ 
) [inline, static]

Definition at line 162 of file actiondb.h.

{ return RButton(new Button(mods, button_)); }

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned int Button::get_button ( RAction  act) [inline, static]

Definition at line 154 of file actiondb.h.

                                                   {
              if (!act)
                     return 0;
              Button *b = dynamic_cast<Button *>(act.get());
              if (!b)
                     return 0;
              return b->get_button_info().button;
       }

Here is the call graph for this function:

Definition at line 131 of file actiondb.cc.

                                         {
       ButtonInfo bi;
       bi.button = button;
       bi.state = mods;
       return bi;
}

Here is the caller graph for this function:

const Glib::ustring Button::get_label ( ) const [virtual]

Reimplemented from ModAction.

Definition at line 139 of file actiondb.cc.

RModifiers ModAction::prepare ( ) [protected, virtual, inherited]

Reimplemented from Action.

Reimplemented in SendKey.

Definition at line 1701 of file main.cc.

                              {
       return RModifiers(new Modifiers(mods, get_label()));
}

Here is the call graph for this function:

void Button::run ( ) [virtual]

Reimplemented from Action.

Definition at line 1566 of file main.cc.

Here is the call graph for this function:

template<class Archive >
void Button::serialize ( Archive &  ar,
const unsigned int  version 
) [private]

Reimplemented from ModAction.

Definition at line 97 of file actiondb.cc.

                                                                                       {
       ar & boost::serialization::base_object<ModAction>(*this);
       ar & button;
}

Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Reimplemented from ModAction.

Definition at line 147 of file actiondb.h.


Member Data Documentation

guint Button::button [private]

Definition at line 150 of file actiondb.h.

Gdk::ModifierType ModAction::mods [protected, inherited]

Definition at line 81 of file actiondb.h.


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