Back to index

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

#include <actiondb.h>

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

List of all members.

Public Member Functions

 SendKey ()
virtual void run ()
virtual RModifiers prepare ()
virtual const Glib::ustring get_label () const

Static Public Member Functions

static RSendKey create (guint key, Gdk::ModifierType mods)

Protected Attributes

Gdk::ModifierType mods

Private Member Functions

template<class Archive >
void load (Archive &ar, const unsigned int version)
template<class Archive >
void save (Archive &ar, const unsigned int version) const
 SendKey (guint key_, Gdk::ModifierType mods)

Private Attributes

guint key

Friends

class boost::serialization::access

Detailed Description

Definition at line 88 of file actiondb.h.


Constructor & Destructor Documentation

SendKey::SendKey ( guint  key_,
Gdk::ModifierType  mods 
) [inline, private]

Definition at line 94 of file actiondb.h.

                                                 :
              ModAction(mods), key(key_) {}
SendKey::SendKey ( ) [inline]

Definition at line 97 of file actiondb.h.

{}

Here is the caller graph for this function:


Member Function Documentation

static RSendKey SendKey::create ( guint  key,
Gdk::ModifierType  mods 
) [inline, static]

Definition at line 98 of file actiondb.h.

                                                               {
              return RSendKey(new SendKey(key, mods));
       }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from ModAction.

Definition at line 1001 of file actions.cc.

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

Definition at line 58 of file actiondb.cc.

                                                                                   {
       guint code;
       ar & boost::serialization::base_object<ModAction>(*this);
       ar & key;
       ar & code;
       if (version < 1) {
              bool xtest;
              ar & xtest;
       }
}

Reimplemented from ModAction.

Definition at line 1705 of file main.cc.

                            {
       if (!mods)
              return RModifiers();
       return RModifiers(new Modifiers(mods, ModAction::get_label()));
}

Here is the call graph for this function:

void SendKey::run ( ) [virtual]

Reimplemented from Action.

Definition at line 1572 of file main.cc.

                  {
       if (!key)
              return;
       guint code = XKeysymToKeycode(dpy, key);
       XTestFakeKeyEvent(dpy, code, true, 0);
       XTestFakeKeyEvent(dpy, code, false, 0);
}
template<class Archive >
void SendKey::save ( Archive &  ar,
const unsigned int  version 
) const [private]

Definition at line 69 of file actiondb.cc.

                                                                                         {
       guint code = 0;
       ar & boost::serialization::base_object<ModAction>(*this);
       ar & key;
       ar & code;
}

Friends And Related Function Documentation

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

Reimplemented from ModAction.

Definition at line 89 of file actiondb.h.


Member Data Documentation

guint SendKey::key [private]

Definition at line 90 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: