Command Class

(Debugger::Core::Command)

Public Types

enum CommandAttribute { CA_Hide, CA_UpdateText, CA_UpdateIcon, CA_NonConfigurable }
flags CommandAttributes

Public Functions

virtual Debugger::QAction *action() const = 0
void augmentActionWithShortcutToolTip(Debugger::QAction *action) const
virtual Debugger::Core::Context context() const = 0
virtual Debugger::QKeySequence defaultKeySequence() const = 0
virtual Debugger::QString description() const = 0
virtual bool hasAttribute(Debugger::Core::Command::CommandAttribute attr) const = 0
int id() const
virtual bool isActive() const = 0
virtual bool isScriptable() const = 0
virtual bool isScriptable(const Debugger::Core::Context &) const = 0
virtual Debugger::QKeySequence keySequence() const = 0
virtual void removeAttribute(Debugger::Core::Command::CommandAttribute attr) = 0
virtual void setAttribute(Debugger::Core::Command::CommandAttribute attr) = 0
virtual void setDefaultKeySequence(const Debugger::QKeySequence &key) = 0
virtual void setDescription(const Debugger::QString &text) = 0
virtual void setKeySequence(const Debugger::QKeySequence &key) = 0
virtual Debugger::QString stringWithAppendedShortcut(const Debugger::QString &str) const = 0

Static Public Members

Debugger::QToolButton *toolButtonWithAppendedShortcut(Debugger::QAction *action, Debugger::Core::Command *cmd)

Protected Functions

Member Type Documentation

enum Command::CommandAttribute
flags Command::CommandAttributes

The CommandAttributes type is a typedef for QFlags<CommandAttribute>. It stores an OR combination of CommandAttribute values.

Member Function Documentation

[pure virtual] Debugger::QAction *Command::action() const

[protected] void Command::activeStateChanged()

void Command::augmentActionWithShortcutToolTip(Debugger::QAction *action) const

[pure virtual] Debugger::Core::Context Command::context() const

[pure virtual] Debugger::QKeySequence Command::defaultKeySequence() const

See also setDefaultKeySequence().

[pure virtual] Debugger::QString Command::description() const

See also setDescription().

[pure virtual] bool Command::hasAttribute(Debugger::Core::Command::CommandAttribute attr) const

int Command::id() const

[pure virtual] bool Command::isActive() const

[pure virtual] bool Command::isScriptable() const

[pure virtual] bool Command::isScriptable(const Debugger::Core::Context &) const

[pure virtual] Debugger::QKeySequence Command::keySequence() const

See also setKeySequence().

[protected] void Command::keySequenceChanged()

[pure virtual] void Command::removeAttribute(Debugger::Core::Command::CommandAttribute attr)

[pure virtual] void Command::setAttribute(Debugger::Core::Command::CommandAttribute attr)

See also hasAttribute().

[pure virtual] void Command::setDefaultKeySequence(const Debugger::QKeySequence &key)

See also defaultKeySequence().

[pure virtual] void Command::setDescription(const Debugger::QString &text)

See also description().

[pure virtual] void Command::setKeySequence(const Debugger::QKeySequence &key)

See also keySequence().

[pure virtual] Debugger::QString Command::stringWithAppendedShortcut(const Debugger::QString &str) const

[static] Debugger::QToolButton *Command::toolButtonWithAppendedShortcut(Debugger::QAction *action, Debugger::Core::Command *cmd)