Canorus  0.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CASingleAction Class Reference

#include <singleaction.h>

Public Member Functions

 CASingleAction (QObject *)
 
virtual ~CASingleAction ()
 
QString getCommandName (bool ampersand=false)
 
QString getDescription ()
 
QString getShortCutAsString ()
 
QString getMidiKeySequence ()
 
bool getMidiShortCutCombined ()
 
QActiongetAction ()
 
QKeySequence & getSysShortCut ()
 
QList< int > & getMidiKeyParameters ()
 
void setCommandName (QString oCommandName)
 
void setDescription (QString oDescription)
 
void setShortCutAsString (QString oShortCut)
 
void setMidiKeySequence (QString oMidiKeySequence, bool combined=false)
 
QActionnewAction (QObject *parent=0)
 

Static Public Member Functions

static void fromQAction (const QAction &action, CASingleAction &sAction)
 

Protected Attributes

QString _oCommandName
 
QString _oCommandNameNoAmpersand
 
QString _oDescription
 
QString _oShortCut
 
QString _oMidiKeySequence
 
bool _bMidiShortCutCombined
 
QAction_pAction
 
QKeySequence _oSysShortCut
 
QList< int > _oMidiKeyParameters
 
bool m_localCreated = false
 

Constructor & Destructor Documentation

◆ CASingleAction()

CASingleAction::CASingleAction ( QObject parent)

Copyright (c) 2009, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.

References _bMidiShortCutCombined.

◆ ~CASingleAction()

CASingleAction::~CASingleAction ( )
virtual

References _pAction, and m_localCreated.

Member Function Documentation

◆ fromQAction()

void CASingleAction::fromQAction ( const QAction action,
CASingleAction sAction 
)
static

References getAction().

Referenced by CAActionDelegate::addSingleAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAction()

QAction* CASingleAction::getAction ( )
inline

◆ getCommandName()

QString CASingleAction::getCommandName ( bool  ampersand = false)
inline

◆ getDescription()

QString CASingleAction::getDescription ( )
inline

References _oDescription.

Referenced by CASettings::addSingleAction(), newAction(), CAActionDelegate::updateSingleAction(), and CAActionsEditor::updateView().

Here is the caller graph for this function:

◆ getMidiKeyParameters()

QList<int>& CASingleAction::getMidiKeyParameters ( )
inline

References _oMidiKeyParameters.

◆ getMidiKeySequence()

QString CASingleAction::getMidiKeySequence ( )
inline

References _oMidiKeySequence.

Referenced by CASettings::addSingleAction(), and CAActionsEditor::updateView().

Here is the caller graph for this function:

◆ getMidiShortCutCombined()

bool CASingleAction::getMidiShortCutCombined ( )
inline

References _bMidiShortCutCombined.

Referenced by CAActionsEditor::updateView().

Here is the caller graph for this function:

◆ getShortCutAsString()

QString CASingleAction::getShortCutAsString ( )
inline

◆ getSysShortCut()

QKeySequence& CASingleAction::getSysShortCut ( )
inline

References _oSysShortCut.

◆ newAction()

QAction * CASingleAction::newAction ( QObject parent = 0)

References _pAction, getCommandName(), getDescription(), getShortCutAsString(), and m_localCreated.

Referenced by CASettings::addSingleAction(), and CAActionDelegate::addSingleAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCommandName()

void CASingleAction::setCommandName ( QString  oCommandName)

References _oCommandName, _oCommandNameNoAmpersand, and _pAction.

Referenced by CASettings::addSingleAction(), and CAActionDelegate::addSingleAction().

Here is the caller graph for this function:

◆ setDescription()

void CASingleAction::setDescription ( QString  oDescription)

References _oDescription, and _pAction.

Referenced by CASettings::addSingleAction(), and CAActionDelegate::addSingleAction().

Here is the caller graph for this function:

◆ setMidiKeySequence()

void CASingleAction::setMidiKeySequence ( QString  oMidiKeySequence,
bool  combined = false 
)

References _bMidiShortCutCombined, _oMidiKeyParameters, and _oMidiKeySequence.

Referenced by CASettings::addSingleAction().

Here is the caller graph for this function:

◆ setShortCutAsString()

void CASingleAction::setShortCutAsString ( QString  oShortCut)

Member Data Documentation

◆ _bMidiShortCutCombined

bool CASingleAction::_bMidiShortCutCombined
protected

◆ _oCommandName

QString CASingleAction::_oCommandName
protected

Referenced by getCommandName(), and setCommandName().

◆ _oCommandNameNoAmpersand

QString CASingleAction::_oCommandNameNoAmpersand
protected

Referenced by getCommandName(), and setCommandName().

◆ _oDescription

QString CASingleAction::_oDescription
protected

Referenced by getDescription(), and setDescription().

◆ _oMidiKeyParameters

QList<int> CASingleAction::_oMidiKeyParameters
protected

◆ _oMidiKeySequence

QString CASingleAction::_oMidiKeySequence
protected

◆ _oShortCut

QString CASingleAction::_oShortCut
protected

◆ _oSysShortCut

QKeySequence CASingleAction::_oSysShortCut
protected

Referenced by getSysShortCut().

◆ _pAction

QAction* CASingleAction::_pAction
protected

◆ m_localCreated

bool CASingleAction::m_localCreated = false
protected

Referenced by newAction(), and ~CASingleAction().


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