QCAD
Open Source 2D CAD
RCommandEvent Class Reference

Copyright (c) 2011-2018 by Andrew Mustun. More...

#include <RCommandEvent.h>

Public Member Functions

void accept ()
 Sets the event state to accepted. More...
 
QString getCommand ()
 
bool isAccepted ()
 
 RCommandEvent (const QString &cmd)
 Creates a new command event that is not yet accepted. More...
 

Private Attributes

bool accepted
 
QString cmd
 

Detailed Description

Copyright (c) 2011-2018 by Andrew Mustun.

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:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RCommandEvent()

RCommandEvent::RCommandEvent ( const QString &  cmd)
inline

Creates a new command event that is not yet accepted.

Parameters
cmdthe command that was triggered.

Member Function Documentation

◆ accept()

void RCommandEvent::accept ( )
inline

Sets the event state to accepted.

◆ getCommand()

QString RCommandEvent::getCommand ( )
inline
Returns
the command that was triggered, usually by the user.

◆ isAccepted()

bool RCommandEvent::isAccepted ( )
inline
Returns
Whether the event was already accepted or not.

Member Data Documentation

◆ accepted

bool RCommandEvent::accepted
private

◆ cmd

QString RCommandEvent::cmd
private

The documentation for this class was generated from the following file: