Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Action Class Reference

#include <Action.h>

Public Types

enum  ActionType {
  keyDown , keyUp , keystroke , switchToScreen ,
  switchInDirection , lockCursorToScreen , restartAllConnections , mouseDown ,
  mouseUp , mousebutton
}
enum  SwitchDirection { switchLeft , switchRight , switchUp , switchDown }
enum  LockCursorMode { lockCursorToggle , lockCursonOn , lockCursorOff }

Public Member Functions

 Action ()=default
QString text () const
const KeySequencekeySequence () const
void loadSettings (QSettings &settings)
void saveSettings (QSettings &settings) const
int type () const
const QStringList & typeScreenNames () const
const QString & switchScreenName () const
int switchDirection () const
int lockCursorMode () const
bool activeOnRelease () const
bool haveScreens () const
bool restartServer () const
bool operator== (const Action &a) const

Protected Member Functions

KeySequencekeySequence ()
void setKeySequence (const KeySequence &seq)
void setType (int t)
QStringList & typeScreenNames ()
void setSwitchScreenName (const QString &n)
void setSwitchDirection (int d)
void setLockCursorMode (int m)
void setActiveOnRelease (bool b)
void setHaveScreens (bool b)
void setRestartServer (bool b)

Friends

class ActionDialog
QTextStream & operator<< (QTextStream &outStream, const Action &action)

Member Enumeration Documentation

◆ ActionType

Enumerator
keyDown 
keyUp 
keystroke 
switchToScreen 
switchInDirection 
lockCursorToScreen 
restartAllConnections 
mouseDown 
mouseUp 
mousebutton 

◆ LockCursorMode

Enumerator
lockCursorToggle 
lockCursonOn 
lockCursorOff 

◆ SwitchDirection

Enumerator
switchLeft 
switchRight 
switchUp 
switchDown 

Constructor & Destructor Documentation

◆ Action()

Action::Action ( )
default

Member Function Documentation

◆ activeOnRelease()

bool Action::activeOnRelease ( ) const
inline

◆ haveScreens()

bool Action::haveScreens ( ) const
inline

◆ keySequence() [1/2]

KeySequence & Action::keySequence ( )
inlineprotected

◆ keySequence() [2/2]

const KeySequence & Action::keySequence ( ) const
inline

◆ loadSettings()

void Action::loadSettings ( QSettings & settings)

◆ lockCursorMode()

int Action::lockCursorMode ( ) const
inline

◆ operator==()

bool Action::operator== ( const Action & a) const

◆ restartServer()

bool Action::restartServer ( ) const
inline

◆ saveSettings()

void Action::saveSettings ( QSettings & settings) const

◆ setActiveOnRelease()

void Action::setActiveOnRelease ( bool b)
inlineprotected

◆ setHaveScreens()

void Action::setHaveScreens ( bool b)
inlineprotected

◆ setKeySequence()

void Action::setKeySequence ( const KeySequence & seq)
inlineprotected

◆ setLockCursorMode()

void Action::setLockCursorMode ( int m)
inlineprotected

◆ setRestartServer()

void Action::setRestartServer ( bool b)
inlineprotected

◆ setSwitchDirection()

void Action::setSwitchDirection ( int d)
inlineprotected

◆ setSwitchScreenName()

void Action::setSwitchScreenName ( const QString & n)
inlineprotected

◆ setType()

void Action::setType ( int t)
inlineprotected

◆ switchDirection()

int Action::switchDirection ( ) const
inline

◆ switchScreenName()

const QString & Action::switchScreenName ( ) const
inline

◆ text()

QString Action::text ( ) const

◆ type()

int Action::type ( ) const
inline

◆ typeScreenNames() [1/2]

QStringList & Action::typeScreenNames ( )
inlineprotected

◆ typeScreenNames() [2/2]

const QStringList & Action::typeScreenNames ( ) const
inline

◆ ActionDialog

friend class ActionDialog
friend

◆ operator<<

QTextStream & operator<< ( QTextStream & outStream,
const Action & action )
friend

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