KSeExpr
4.0.4.0
|
A control for editing strings, filenames, and directories. More...
#include <ExprControl.h>
Public Member Functions | |
StringControl (int id, StringEditable *stringEditable) | |
![]() | |
ExprControl (int id, Editable *editable, bool showColorLink) | |
~ExprControl () override=default | |
virtual QColor | getColor () |
Interface for getting the color (used for linked color picking) More... | |
virtual void | setColor (QColor) |
Interface for setting the color (used for linked color picking) More... | |
void | linkDisconnect (int newId) |
Private Slots | |
void | textChanged (const QString &newText) |
void | fileBrowse () |
void | directoryBrowse () |
Private Member Functions | |
void | updateControl () |
Private Attributes | |
StringEditable * | _stringEditable {nullptr} |
model for the string control More... | |
QLineEdit * | _edit {nullptr} |
Edit box for the string. More... | |
Additional Inherited Members | |
![]() | |
void | linkStateChange (int state) |
![]() | |
void | controlChanged (int id) |
void | linkColorEdited (int id, QColor color) |
void | linkColorLink (int id) |
![]() | |
void | resizeEvent (QResizeEvent *event) override |
![]() | |
int | _id |
std::atomic< bool > | _updating {} |
QHBoxLayout * | hbox {nullptr} |
QCheckBox * | _colorLinkCB {nullptr} |
QLabel * | _label {nullptr} |
Editable * | _editable {nullptr} |
A control for editing strings, filenames, and directories.
Definition at line 226 of file ExprControl.h.
StringControl::StringControl | ( | int | id, |
StringEditable * | stringEditable | ||
) |
Definition at line 422 of file ExprControl.cpp.
References _edit, _stringEditable, directoryBrowse(), directoryXPM, fileBrowse(), fileXPM, ExprControl::hbox, textChanged(), StringEditable::type, and updateControl().
|
privateslot |
Definition at line 461 of file ExprControl.cpp.
References _edit, ExprFileDialog::getExistingDirectory(), and ExprFileDialog::setPreview().
Referenced by StringControl().
|
privateslot |
Definition at line 452 of file ExprControl.cpp.
References _edit, ExprFileDialog::getOpenFileName(), and ExprFileDialog::setPreview().
Referenced by StringControl().
|
privateslot |
Definition at line 476 of file ExprControl.cpp.
References ExprControl::_id, _stringEditable, ExprControl::_updating, ExprControl::controlChanged(), and StringEditable::v.
Referenced by StringControl().
|
private |
Definition at line 470 of file ExprControl.cpp.
References _edit, _stringEditable, and StringEditable::v.
Referenced by StringControl().
|
private |
Edit box for the string.
Definition at line 233 of file ExprControl.h.
Referenced by directoryBrowse(), fileBrowse(), StringControl(), and updateControl().
|
private |
model for the string control
Definition at line 231 of file ExprControl.h.
Referenced by StringControl(), textChanged(), and updateControl().