Go to the documentation of this file.
5 #ifndef CNOID_BASE_LINE_EDIT_H
6 #define CNOID_BASE_LINE_EDIT_H
8 #include <cnoid/Signal>
10 #include "exportdecl.h"
20 LineEdit(
const QString& contents, QWidget* parent = 0);
23 QLineEdit::setText(text);
26 QLineEdit::setText(text);
29 QLineEdit::setText(text.c_str());
32 return QLineEdit::text().toStdString();
35 return sigCursorPositionChanged_;
38 return sigEditingFinished_;
41 return sigReturnPressed_;
44 return sigSelectionChanged_;
47 return sigTextChanged_;
50 return sigTextEdited_;
54 void onCursorPositionChanged(
int oldpos,
int newpos);
55 void onEditingFinished();
56 void onReturnPressed();
57 void onSelectionChanged();
58 void onTextChanged(
const QString& text);
59 void onTextEdited(
const QString& text);
62 Signal<void(
int oldpos,
int newpos)> sigCursorPositionChanged_;
63 Signal<void()> sigEditingFinished_;
64 Signal<void()> sigReturnPressed_;
65 Signal<void()> sigSelectionChanged_;
66 Signal<void(
const QString& text)> sigTextChanged_;
67 Signal<void(
const QString& text)> sigTextEdited_;
SignalProxy< void()> sigEditingFinished()
Definition: LineEdit.h:37
SignalProxy< void()> sigReturnPressed()
Definition: LineEdit.h:40
void setText(const QString &text)
Definition: LineEdit.h:22
Definition: LineEdit.h:14
SignalProxy< void(const QString &text)> sigTextChanged()
Definition: LineEdit.h:46
SignalProxy< void(int oldpos, int newpos)> sigCursorPositoinChanged()
Definition: LineEdit.h:34
void setText(const std::string &text)
Definition: LineEdit.h:28
SignalProxy< void(const QString &text)> sigTextEdited()
Definition: LineEdit.h:49
Definition: AbstractSceneLoader.h:11
SignalProxy< void()> sigSelectionChanged()
Definition: LineEdit.h:43
void setText(const char *text)
Definition: LineEdit.h:25
std::string string() const
Definition: LineEdit.h:31