RCommandLine
Class in GUI Module
Header: #include <src/gui/RCommandLine.h>
Inherits: QLineEdit
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.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RCommandLine(QWidget *parent=0) |
|
| void | appendCommand(const QString &cmd) |
| QStringList | getHistory() const |
| QString | getLastCommand() |
| void | setHistory(QStringList &h) |
| void | triggerCommand(const QString &cmd) |
Public Slots
Section titled “Public Slots”| void | paste() |
Protected Functions
Section titled “Protected Functions”| virtual bool | event(QEvent *event) |
| virtual void | keyPressEvent(QKeyEvent *event) |
Private Attributes
Section titled “Private Attributes”| QStringList | history |
| QStringList::iterator | it |
Signals
Section titled “Signals”| void | clearHistory() |
| void | commandConfirmed(const QString &command) |
| void | completeCommand(const QString &command) |
| void | escape() |
Member Documentation
Section titled “Member Documentation”RCommandLine
Section titled “RCommandLine”RCommandLine::RCommandLine(QWidget *parent=0)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.
appendCommand
Section titled “appendCommand”void RCommandLine::appendCommand(const QString &cmd)getHistory
Section titled “getHistory”QStringList RCommandLine::getHistory() constconst
getLastCommand
Section titled “getLastCommand”QString RCommandLine::getLastCommand()setHistory
Section titled “setHistory”void RCommandLine::setHistory(QStringList &h)triggerCommand
Section titled “triggerCommand”void RCommandLine::triggerCommand(const QString &cmd)inline
void RCommandLine::paste()virtual bool RCommandLine::event(QEvent *event)virtual protected
keyPressEvent
Section titled “keyPressEvent”virtual void RCommandLine::keyPressEvent(QKeyEvent *event)virtual protected
history
Section titled “history”QStringList RCommandLine::historyprivate
QStringList::iterator RCommandLine::itprivate
clearHistory
Section titled “clearHistory”void RCommandLine::clearHistory()commandConfirmed
Section titled “commandConfirmed”void RCommandLine::commandConfirmed(const QString &command)completeCommand
Section titled “completeCommand”void RCommandLine::completeCommand(const QString &command)escape
Section titled “escape”void RCommandLine::escape()