Back to index

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
ModAction Class Reference

#include <actiondb.h>

Inheritance diagram for ModAction:
Inheritance graph
Collaboration diagram for ModAction:
Collaboration graph

List of all members.

Public Member Functions

virtual const Glib::ustring get_label () const
virtual void run ()

Protected Member Functions

 ModAction ()
 ModAction (Gdk::ModifierType mods_)
virtual RModifiers prepare ()

Protected Attributes

Gdk::ModifierType mods

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)


class boost::serialization::access

Detailed Description

Definition at line 76 of file actiondb.h.

Constructor & Destructor Documentation

ModAction::ModAction ( ) [inline, protected]

Definition at line 80 of file actiondb.h.

ModAction::ModAction ( Gdk::ModifierType  mods_) [inline, protected]

Definition at line 82 of file actiondb.h.

: mods(mods_) {}

Member Function Documentation

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

Implements Action.

Reimplemented in Button, Ignore, Scroll, and SendKey.

Definition at line 1005 of file

       if (!mods)
              return _("No Modifiers");
       Glib::ustring label = Gtk::AccelGroup::get_label(0, mods);
       return label.substr(0,label.size()-1);

Here is the caller graph for this function:

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

Reimplemented from Action.

Reimplemented in SendKey.

Definition at line 1701 of file

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

Here is the call graph for this function:

virtual void Action::run ( ) [inline, virtual, inherited]

Reimplemented in Misc, Button, SendText, SendKey, and Command.

Definition at line 59 of file actiondb.h.

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

Reimplemented from Action.

Reimplemented in Button, Ignore, and Scroll.

Definition at line 53 of file

       ar & boost::serialization::base_object<Action>(*this);
       ar & mods;

Friends And Related Function Documentation

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

Reimplemented from Action.

Reimplemented in Button, Ignore, Scroll, and SendKey.

Definition at line 77 of file actiondb.h.

Member Data Documentation

Gdk::ModifierType ModAction::mods [protected]

Definition at line 81 of file actiondb.h.

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