The CommandLineEdit class models the UI for the command line in a graphical script console.
More...
#include <commandlineedit.h>
|
void | signal_commandSubmitted (const std::string &) |
| signal_commandSubmitted is fired when a command is submitted by the user (e.g. after pressing return). More...
|
|
void | signal_historyStepped (const std::string &) |
| signal_historyStepped is fired when the user steps through the command line history (e.g. when pressing the up arrow). More...
|
|
|
| CommandLineEdit (QWidget *parent=nullptr) |
|
virtual | ~CommandLineEdit () |
|
void | clearHistory () |
| clearHistory Wipe the history of commands entered this session. More...
|
|
std::vector< std::string > | getHistory () const |
| getHistory Gets the history of commands entered this session, oldest first. More...
|
|
void | setHistory (const std::vector< std::string > &history) |
| setHistory Sets the history of commands. More...
|
|
void | setCompletionList (const std::vector< std::string > &completionList) |
| setCompletionList Sets the autocomplete list of commands. More...
|
|
The CommandLineEdit class models the UI for the command line in a graphical script console.
geometrize::dialog::CommandLineEdit::CommandLineEdit |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
148 : QWidget(parent),
d{std::make_unique<CommandLineEdit::CommandLineEditImpl>(
this)}
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
geometrize::dialog::CommandLineEdit::~CommandLineEdit |
( |
| ) |
|
|
virtual |
void geometrize::dialog::CommandLineEdit::changeEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
193 if (event->type() == QEvent::LanguageChange) {
194 d->onLanguageChange();
196 QWidget::changeEvent(event);
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::clearHistory |
( |
| ) |
|
clearHistory Wipe the history of commands entered this session.
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
bool geometrize::dialog::CommandLineEdit::focusNextPrevChild |
( |
bool |
next | ) |
|
|
overrideprivatevirtual |
std::vector< std::string > geometrize::dialog::CommandLineEdit::getHistory |
( |
| ) |
const |
getHistory Gets the history of commands entered this session, oldest first.
- Returns
- The history of commands entered this session.
168 return d->getHistory();
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
overrideprivatevirtual |
158 d->keyPressEvent(e->key());
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprivatevirtual |
188 d->mouseDoubleClickEvent();
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::setCompletionList |
( |
const std::vector< std::string > & |
completionList | ) |
|
setCompletionList Sets the autocomplete list of commands.
- Parameters
-
completionList | The completion list to use. |
178 d->setCompletionList(completionList);
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::setHistory |
( |
const std::vector< std::string > & |
history | ) |
|
setHistory Sets the history of commands.
- Parameters
-
history | The command history to use. |
173 d->setHistory(history);
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
void geometrize::dialog::CommandLineEdit::signal_commandSubmitted |
( |
const std::string & |
| ) |
|
|
signal |
signal_commandSubmitted is fired when a command is submitted by the user (e.g. after pressing return).
void geometrize::dialog::CommandLineEdit::signal_historyStepped |
( |
const std::string & |
| ) |
|
|
signal |
signal_historyStepped is fired when the user steps through the command line history (e.g. when pressing the up arrow).
The documentation for this class was generated from the following files:
- /home/travis/build/Tw1ddle/geometrize-docs/geometrize/geometrize/dialog/commandlineedit.h
- /home/travis/build/Tw1ddle/geometrize-docs/geometrize/geometrize/dialog/commandlineedit.cpp