Back to index

easystroke  0.5.5.1
Classes | Enumerations | Functions | Variables
actions.cc File Reference
#include "actions.h"
#include "actiondb.h"
#include "win.h"
#include "main.h"
#include "prefdb.h"
#include <glibmm/i18n.h>
#include "grabber.h"
#include <typeinfo>

Go to the source code of this file.

Classes

class  CellEditableAccel
class  CellEditableCombo
class  CellEditableDummy
struct  TypeInfo
class  Actions::OnStroke

Enumerations

enum  Type {
  COMMAND, KEY, TEXT, SCROLL,
  IGNORE, BUTTON, MISC
}

Functions

bool negate (bool b)
const Type from_name (Glib::ustring name)
const char * type_info_to_name (const std::type_info *info)

Variables

TypeInfo all_types [8]
boost::shared_ptr< sigc::slot
< void, RStroke > > 
stroke_action
Source< ActionListDiff * > stroke_app (NULL)

Class Documentation

struct TypeInfo

Definition at line 161 of file actions.cc.

Class Members
const Mode mode
const char * name
Type type
const type_info * type_info

Enumeration Type Documentation

enum Type
Enumerator:
COMMAND 
KEY 
TEXT 
SCROLL 
IGNORE 
BUTTON 
MISC 

Definition at line 159 of file actions.cc.


Function Documentation

const Type from_name ( Glib::ustring  name)

Definition at line 179 of file actions.cc.

                                       {
       for (TypeInfo *i = all_types;; i++)
              if (!i->name || _(i->name) == name)
                     return i->type;
}

Here is the caller graph for this function:

bool negate ( bool  b)

Definition at line 52 of file actions.cc.

{ return !b; }

Here is the caller graph for this function:

const char* type_info_to_name ( const std::type_info *  info)

Definition at line 185 of file actions.cc.

                                                        {
       for (TypeInfo *i = all_types; i->name; i++)
              if (i->type_info == info)
                     return _(i->name);
       return "";
}

Here is the caller graph for this function:


Variable Documentation

Initial value:
 {
       { COMMAND, N_("Command"), &typeid(Command),  CellRendererTextish::TEXT  },
       { KEY,     N_("Key"),     &typeid(SendKey),  CellRendererTextish::KEY   },
       { TEXT,    N_("Text"),    &typeid(SendText), CellRendererTextish::TEXT  },
       { SCROLL,  N_("Scroll"),  &typeid(Scroll),   CellRendererTextish::KEY   },
       { IGNORE,  N_("Ignore"),  &typeid(Ignore),   CellRendererTextish::KEY   },
       { BUTTON,  N_("Button"),  &typeid(Button),   CellRendererTextish::POPUP },
       { MISC,    N_("Misc"),    &typeid(Misc),     CellRendererTextish::COMBO },
       { COMMAND, 0,             0,                 CellRendererTextish::TEXT  }
}

Definition at line 168 of file actions.cc.

boost::shared_ptr<sigc::slot<void, RStroke> > stroke_action

Definition at line 56 of file main.cc.