struct CCL::ICommandSelector

Overview

#include <icommandeditor.h>

struct ICommandSelector: public CCL::IUnknown
{
    // methods

    virtual tresult CCL_API run (CommandDescription& command) = 0;

    virtual IAsyncOperation*CCL_API runAsync (
        const CommandDescription& command,
        tbool popupMode
    ) = 0;

    virtual tresult CCL_API setCommands (ICommandContainer* commands) = 0;
    virtual tresult CCL_API getSelectedCommand (CommandDescription& command) const = 0;
    DECLARE_STRINGID_MEMBER (kCommandSelected);
    DECLARE_STRINGID_MEMBER (kCommandFocused);
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Methods

virtual tresult CCL_API run (CommandDescription& command) = 0

Run command selector dialog.

virtual IAsyncOperation*CCL_API runAsync (
    const CommandDescription& command,
    tbool popupMode
) = 0

Run command selector asynchronously (dialog or popup).

virtual tresult CCL_API setCommands (ICommandContainer* commands) = 0

Set available commands (optional, application commands are used by default) .

virtual tresult CCL_API getSelectedCommand (CommandDescription& command) const = 0

Get description of the selected command.

DECLARE_STRINGID_MEMBER (kCommandSelected)

args[0]: ICommand

DECLARE_STRINGID_MEMBER (kCommandFocused)

args[0]: ICommand