Skip to content

RCommandEvent

Class in Core Module
Header: #include <src/core/RCommandEvent.h>

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.

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()
bool accepted
QString cmd

RCommandEvent::RCommandEvent(const QString &cmd)

inline

Creates a new command event that is not yet accepted.

Parameters:

  • cmd: the command that was triggered.

void RCommandEvent::accept()

inline

Sets the event state to accepted.

QString RCommandEvent::getCommand()

inline

Returns: the command that was triggered, usually by the user.

bool RCommandEvent::isAccepted()

inline

Returns: Whether the event was already accepted or not.

bool RCommandEvent::accepted

private

QString RCommandEvent::cmd

private