This class is the base class for actions.
|
void | actionStart (bool) |
|
void | actionEnd (bool) |
|
void | donePercent (int) |
|
void | doneText (const QString &) |
|
void | favorited (bool) |
| The action has been added to favorites or removed from favorites.
|
|
|
SBGActionData * | dataPointer |
|
|
| SBGAction (QObject *parent) |
|
| SBGAction (const SBUUID &uuid=SBUUID(), QObject *parent=0) |
|
| SBGAction (const QString &text, const SBUUID &uuid=SBUUID(), QObject *parent=0) |
|
| SBGAction (const QIcon &icon, const QString &text, const SBUUID &uuid=SBUUID(), QObject *parent=0) |
|
virtual | ~SBGAction () |
|
|
virtual QString | getName () const |
| Returns the action's class name.
|
|
virtual SBUUID | getUUID () const |
| Returns the action's UUID.
|
|
void | setIconFilename (const QString &filename="SAMSON.png") |
| Define icon filename, icon file should be in current skin icon path.
|
|
static QIcon | makeIcon (const QString &filename) |
| Make an icon, with both a normal and disabled version, from a filename that includes the absolute path to an image.
|
|
static QIcon | makeIcon (const QPixmap &normalPixmap) |
| Make an icon, with both a normal and disabled version, from a normal pixmap.
|
|
|
virtual bool | isLocked () const |
| Returns true if the action is locked.
|
|
virtual bool | isDiscoverable () const |
| Returns true if can be discovered by the user.
|
|
virtual QString | getDescriptionImagePath () const |
| Returns a path to an image which will be placed into the action's description. If not specified, the action's icon might be used instead.
|
|
|
virtual void | onTriggerEvent (bool b) |
| Slot called when the action is triggered.
|
|