4 #include <QResizeEvent>
7 #include <QStringListModel>
10 #include <cad/settings.h>
11 #include <cad/geometry/geocoordinate.h>
42 void write(QString message);
CliCommand(QWidget *parent=0)
Create widget.
bool addCommand(std::string name)
Add a new command.
void enterCoordinate(QString coordinate)
std::shared_ptr< QCompleter > _completer
void onKeyPressed(QKeyEvent *event)
Process key events. Browse history if up or down key is pressed. This is a slot to allow getting key ...
void textEntered(QString text)
std::shared_ptr< QStringListModel > _commands
void coordinateEntered(lc::geo::Coordinate coordinate)
void write(QString message)
Write a message in the logs.
void numberEntered(double number)
bool checkParam(QString command)
void onReturnPressed()
Parse entered text. Check if the text is a number, a coordinate or a command and emit the right signa...
void commandEntered(QString command)
void setText(QString text)
Write text in input.
void enterCommand(QString command)
void returnText(bool returnText)
Return raw text to Lua.
void enterNumber(double number)
void relativeCoordinateEntered(lc::geo::Coordinate coordinate)
void keyPressEvent(QKeyEvent *event)