RCommandEvent
Class in Core Module
Header: #include <src/core/RCommandEvent.h>
Description
Section titled “Description”All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Command Event.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RCommandEvent(const QString &cmd)Creates a new command event that is not yet accepted. |
|
| void | accept()Sets the event state to accepted. |
| QString | getCommand() |
| bool | isAccepted() |
Private Attributes
Section titled “Private Attributes”| bool | accepted |
| QString | cmd |
Member Documentation
Section titled “Member Documentation”RCommandEvent
Section titled “RCommandEvent”RCommandEvent::RCommandEvent(const QString &cmd)inline
Creates a new command event that is not yet accepted.
Parameters:
cmd: the command that was triggered.
accept
Section titled “accept”void RCommandEvent::accept()inline
Sets the event state to accepted.
getCommand
Section titled “getCommand”QString RCommandEvent::getCommand()inline
Returns: the command that was triggered, usually by the user.
isAccepted
Section titled “isAccepted”bool RCommandEvent::isAccepted()inline
Returns: Whether the event was already accepted or not.
accepted
Section titled “accepted”bool RCommandEvent::acceptedprivate
QString RCommandEvent::cmdprivate