#include <IOWidget.h>
|
| void | addPrompt () |
| | addPrompt Adds the prompt to the text edit and unlocks the widget for input More...
|
| |
| void | append (QString text) |
| | append Appends the given text to the text edit and locks the widget for input More...
|
| |
|
| void | command (QString command) |
| | command Signal emitted when input is entered. More...
|
| |
|
| int | lastIndex |
| | lastIndex The index of the last character. More...
|
| |
| bool | locked |
| | locked False if the text edit can receive input, true otherwise. More...
|
| |
| QString | userPrompt |
| | userPrompt prompt to indicate that the text edit is waiting for input More...
|
| |
Definition at line 46 of file IOWidget.h.
| te::qt::widgets::IOWidget::IOWidget |
( |
QWidget * |
parent = 0 | ) |
|
| void te::qt::widgets::IOWidget::addPrompt |
( |
| ) |
|
|
slot |
addPrompt Adds the prompt to the text edit and unlocks the widget for input
| void te::qt::widgets::IOWidget::append |
( |
QString |
text | ) |
|
|
slot |
append Appends the given text to the text edit and locks the widget for input
- Parameters
-
| text | String to be appended |
| void te::qt::widgets::IOWidget::clearLine |
( |
| ) |
|
|
private |
clearLine Clears the line under the cursor.
| void te::qt::widgets::IOWidget::command |
( |
QString |
command | ) |
|
|
signal |
command Signal emitted when input is entered.
- Parameters
-
| command | String to be emitted. |
| QString te::qt::widgets::IOWidget::getCommand |
( |
| ) |
const |
|
private |
getCommand Gets the input from the user.
| int te::qt::widgets::IOWidget::getIndex |
( |
const QTextCursor & |
cursor | ) |
|
|
private |
getIndex Gets the index of a given cursor.
- Parameters
-
| cursor | Cursor used to retrieve the index. |
| void te::qt::widgets::IOWidget::handleEnter |
( |
| ) |
|
|
private |
handleEnter Handles Enter and Return key press.
| void te::qt::widgets::IOWidget::handleHome |
( |
| ) |
|
|
private |
handleHome Handles Home key press.
| void te::qt::widgets::IOWidget::handleLeft |
( |
QKeyEvent * |
event | ) |
|
|
private |
handleLeft Handles Left arrow key press.
- Parameters
-
| bool te::qt::widgets::IOWidget::isWritable |
( |
const QTextCursor & |
cursor | ) |
|
|
private |
isWritable Checks if a given cursor is at a writable position.
- Parameters
-
| cursor | Cursor that will be checked. |
| void te::qt::widgets::IOWidget::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protected |
| QString te::qt::widgets::IOWidget::prompt |
( |
| ) |
const |
prompt Retrieves the current prompt.
| void te::qt::widgets::IOWidget::setPrompt |
( |
const QString & |
prompt | ) |
|
setPrompt Sets a new prompt from a given string.
- Parameters
-
| prompt | String of the new prompt |
| int te::qt::widgets::IOWidget::lastIndex |
|
private |
lastIndex The index of the last character.
Definition at line 121 of file IOWidget.h.
| bool te::qt::widgets::IOWidget::locked |
|
private |
locked False if the text edit can receive input, true otherwise.
Definition at line 116 of file IOWidget.h.
| QString te::qt::widgets::IOWidget::userPrompt |
|
private |
userPrompt prompt to indicate that the text edit is waiting for input
Definition at line 110 of file IOWidget.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/ceditor/IOWidget.h