QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RCommandEvent Class Reference

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

#include <RCommandEvent.h>

List of all members.

Public Member Functions

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

Private Attributes

bool accepted
QString cmd

Detailed Description

Copyright (c) 2011-2014 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:
This class is wrapped for script environments.

Constructor & Destructor Documentation

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

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.

Member Data Documentation

bool RCommandEvent::accepted
private
QString RCommandEvent::cmd
private

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