Back to index

easystroke  0.5.5.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Friends
Misc Class Reference

#include <actiondb.h>

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

List of all members.

Public Types

enum  Type { NONE, UNMINIMIZE, SHOWHIDE, DISABLE }

Public Member Functions

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

Static Public Member Functions

static RMisc create (Type t)

Public Attributes

Type type

Static Public Attributes

static const char * types [5] = { N_("None"), N_("Unminimize"), N_("Show/Hide"), N_("Disable (Enable)"), NULL }

Private Member Functions

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

Friends

class boost::serialization::access

Detailed Description

Definition at line 168 of file actiondb.h.


Member Enumeration Documentation

enum Misc::Type
Enumerator:
NONE 
UNMINIMIZE 
SHOWHIDE 
DISABLE 

Definition at line 171 of file actiondb.h.


Constructor & Destructor Documentation

Misc::Misc ( Type  t) [inline, private]

Definition at line 175 of file actiondb.h.

: type(t) {}
Misc::Misc ( ) [inline]

Definition at line 178 of file actiondb.h.

{}

Here is the caller graph for this function:


Member Function Documentation

static RMisc Misc::create ( Type  t) [inline, static]

Definition at line 180 of file actiondb.h.

{ return RMisc(new Misc(t)); }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements Action.

Definition at line 143 of file actiondb.cc.

{ return _(types[type]); }
virtual RModifiers Action::prepare ( ) [inline, virtual, inherited]

Reimplemented in SendKey, and ModAction.

Definition at line 60 of file actiondb.h.

{ return RModifiers(); }
void Misc::run ( ) [virtual]

Reimplemented from Action.

Definition at line 1715 of file main.cc.

               {
       switch (type) {
              case SHOWHIDE:
                     win->show_hide();
                     return;
              case UNMINIMIZE:
                     grabber->unminimize();
                     return;
              case DISABLE:
                     disabled.set(!disabled.get());
                     return;
              default:
                     return;
       }
}

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 102 of file actiondb.cc.

                                                                                     {
       ar & boost::serialization::base_object<Action>(*this);
       ar & type;
}

Friends And Related Function Documentation

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

Reimplemented from Action.

Definition at line 169 of file actiondb.h.


Member Data Documentation

Definition at line 172 of file actiondb.h.

const char * Misc::types = { N_("None"), N_("Unminimize"), N_("Show/Hide"), N_("Disable (Enable)"), NULL } [static]

Definition at line 177 of file actiondb.h.


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