47 void setHistory(
const std::vector<std::string>& history);
75 std::unique_ptr<CommandLineEditImpl>
d;
CommandLineEdit(QWidget *parent=nullptr)
Definition: commandlineedit.cpp:148
std::unique_ptr< CommandLineEditImpl > d
Definition: commandlineedit.h:74
virtual bool focusNextPrevChild(bool next) override
Definition: commandlineedit.cpp:181
void changeEvent(QEvent *) override
Definition: commandlineedit.cpp:191
void signal_historyStepped(const std::string &)
signal_historyStepped is fired when the user steps through the command line history (e...
virtual ~CommandLineEdit()
Definition: commandlineedit.cpp:152
void setCompletionList(const std::vector< std::string > &completionList)
setCompletionList Sets the autocomplete list of commands.
Definition: commandlineedit.cpp:176
void setHistory(const std::vector< std::string > &history)
setHistory Sets the history of commands.
Definition: commandlineedit.cpp:171
virtual void keyPressEvent(QKeyEvent *e) override
Definition: commandlineedit.cpp:156
Definition: commandlineedit.cpp:16
std::vector< std::string > getHistory() const
getHistory Gets the history of commands entered this session, oldest first.
Definition: commandlineedit.cpp:166
The CommandLineEdit class models the UI for the command line in a graphical script console...
Definition: commandlineedit.h:24
virtual void mouseDoubleClickEvent(QMouseEvent *event) override
Definition: commandlineedit.cpp:186
void clearHistory()
clearHistory Wipe the history of commands entered this session.
Definition: commandlineedit.cpp:161
void signal_commandSubmitted(const std::string &)
signal_commandSubmitted is fired when a command is submitted by the user (e.g. after pressing return)...