QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RCommandLine Class Reference

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

#include <RCommandLine.h>

Inheritance diagram for RCommandLine:

Public Slots

void paste ()
 

Signals

void clearHistory ()
 
void commandConfirmed (const QString &command)
 
void completeCommand (const QString &command)
 
void escape ()
 

Public Member Functions

void appendCommand (const QString &cmd)
 
QStringList getHistory () const
 
QString getLastCommand ()
 
 RCommandLine (QWidget *parent=0)
 Copyright (c) 2011-2018 by Andrew Mustun.
 
void setHistory (QStringList &h)
 
void triggerCommand (const QString &cmd)
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 

Private Attributes

QStringList history
 
QStringList::iterator it
 

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.

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RCommandLine()

RCommandLine::RCommandLine ( QWidget * parent = 0)

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.

Member Function Documentation

◆ appendCommand()

void RCommandLine::appendCommand ( const QString & cmd)

◆ clearHistory

void RCommandLine::clearHistory ( )
signal

◆ commandConfirmed

void RCommandLine::commandConfirmed ( const QString & command)
signal

◆ completeCommand

void RCommandLine::completeCommand ( const QString & command)
signal

◆ escape

void RCommandLine::escape ( )
signal

◆ event()

bool RCommandLine::event ( QEvent * event)
protectedvirtual

◆ getHistory()

QStringList RCommandLine::getHistory ( ) const

◆ getLastCommand()

QString RCommandLine::getLastCommand ( )

◆ keyPressEvent()

void RCommandLine::keyPressEvent ( QKeyEvent * event)
protectedvirtual

◆ paste

void RCommandLine::paste ( )
slot

◆ setHistory()

void RCommandLine::setHistory ( QStringList & h)

◆ triggerCommand()

void RCommandLine::triggerCommand ( const QString & cmd)
inline

Member Data Documentation

◆ history

QStringList RCommandLine::history
private

◆ it

QStringList::iterator RCommandLine::it
private

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