![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXTextFieldIcon.h>
Public Member Functions | |
| virtual bool | canFocus () const |
| Yes, text field may receive focus. | |
| virtual void | create () |
| Create server-side resources. | |
| virtual void | disable () |
| Disable text field. | |
| virtual void | enable () |
| Enable text field. | |
| FXbool | extendSelection (FXint pos) |
| Extend the selection from the anchor to the given position. | |
| FXint | getAnchorPos () const |
| Return anchor position. | |
| FXColor | getCursorColor () const |
| Return the cursor color. | |
| FXint | getCursorPos () const |
| Return cursor position. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| const FXchar * | getDelimiters () const |
| Return word delimiters. | |
| FXFont * | getFont () const |
| Get the text font. | |
| const FXString & | getHelpText () const |
| Get the status line help text for this label. | |
| FXuint | getJustify () const |
| Return text justification mode. | |
| FXint | getNumColumns () const |
| Return number of columns. | |
| FXColor | getSelBackColor () const |
| Return selected background color. | |
| FXColor | getSelTextColor () const |
| Return selected text color. | |
| FXString | getText () const |
| Get the text for this label. | |
| FXColor | getTextColor () const |
| Return text color. | |
| FXuint | getTextStyle () const |
| Return text style. | |
| const FXString & | getTipText () const |
| Get the tool tip message for this text field. | |
| FXbool | isEditable () const |
| Return TRUE if text field may be edited. | |
| FXbool | isOverstrike () const |
| Return TRUE if overstrike mode in effect. | |
| FXbool | isPosSelected (FXint pos) const |
| Return TRUE if position pos is selected. | |
| FXbool | isPosVisible (FXint pos) const |
| Return TRUE if position is fully visible. | |
| virtual void | killFocus () |
| Remove the focus from this window. | |
| FXbool | killSelection () |
| Unselect the text. | |
| virtual void | layout () |
| Perform layout. | |
| virtual void | load (FXStream &store) |
| Load text field from a stream. | |
| void | makePositionVisible (FXint pos) |
| Scroll text to make the given position visible. | |
| MFXTextFieldIcon (FXComposite *p, FXint ncols, FXIcon *ic, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TEXTFIELD_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| FOX declaration. | |
| virtual void | save (FXStream &store) const |
| Save text field to a stream. | |
| FXbool | selectAll () |
| Select all text. | |
| void | setAnchorPos (FXint pos) |
| Change anchor position. | |
| void | setCursorColor (FXColor clr) |
| Changes the cursor color. | |
| void | setCursorPos (FXint pos) |
| Set cursor position. | |
| void | setDelimiters (const FXchar *delims=FXTextField::textDelimiters) |
| Change word delimiters. | |
| void | setEditable (FXbool edit=TRUE) |
| Set editable mode. | |
| virtual void | setFocus () |
| Move the focus to this window. | |
| void | setFont (FXFont *fnt) |
| Set the text font. | |
| void | setHelpText (const FXString &text) |
| Set the status line help text for this label. | |
| void | setIcon (FXIcon *ic) |
| Change the icon. | |
| void | setJustify (FXuint mode) |
| Change text justification mode. | |
| void | setNumColumns (FXint cols) |
| Change the default width of the text field. | |
| void | setOverstrike (FXbool over=TRUE) |
| Set overstrike mode. | |
| void | setSelBackColor (FXColor clr) |
| Change selected background color. | |
| FXbool | setSelection (FXint pos, FXint len) |
| Select len characters starting at given position pos. | |
| void | setSelTextColor (FXColor clr) |
| Change selected text color. | |
| void | setText (const FXString &text, FXbool notify=FALSE) |
| Change the text and move cursor to end. | |
| void | setTextColor (FXColor clr) |
| Change text color. | |
| void | setTextStyle (FXuint style) |
| Change text style. | |
| void | setTipText (const FXString &text) |
| Set the tool tip message for this text field. | |
| virtual | ~MFXTextFieldIcon () |
| Destructor. | |
| long | onPaint (FXObject *, FXSelector, void *) |
| fox callbacks | |
| long | onUpdate (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
| long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
| long | onVerify (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| long | onSelectionLost (FXObject *, FXSelector, void *) |
| long | onSelectionGained (FXObject *, FXSelector, void *) |
| long | onSelectionRequest (FXObject *, FXSelector, void *ptr) |
| long | onClipboardLost (FXObject *, FXSelector, void *) |
| long | onClipboardGained (FXObject *, FXSelector, void *) |
| long | onClipboardRequest (FXObject *, FXSelector, void *) |
| long | onFocusSelf (FXObject *, FXSelector, void *) |
| long | onFocusIn (FXObject *, FXSelector, void *) |
| long | onFocusOut (FXObject *, FXSelector, void *) |
| long | onBlink (FXObject *, FXSelector, void *) |
| long | onAutoScroll (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdSetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdSetStringValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdGetStringValue (FXObject *, FXSelector, void *) |
| long | onCmdCursorHome (FXObject *, FXSelector, void *) |
| long | onCmdCursorEnd (FXObject *, FXSelector, void *) |
| long | onCmdCursorRight (FXObject *, FXSelector, void *) |
| long | onCmdCursorLeft (FXObject *, FXSelector, void *) |
| long | onCmdCursorWordLeft (FXObject *, FXSelector, void *) |
| long | onCmdCursorWordRight (FXObject *, FXSelector, void *) |
| long | onCmdCursorWordStart (FXObject *, FXSelector, void *) |
| long | onCmdCursorWordEnd (FXObject *, FXSelector, void *) |
| long | onCmdMark (FXObject *, FXSelector, void *) |
| long | onCmdExtend (FXObject *, FXSelector, void *) |
| long | onCmdSelectAll (FXObject *, FXSelector, void *) |
| long | onCmdDeselectAll (FXObject *, FXSelector, void *) |
| long | onCmdCutSel (FXObject *, FXSelector, void *) |
| long | onCmdCopySel (FXObject *, FXSelector, void *) |
| long | onCmdPasteSel (FXObject *, FXSelector, void *) |
| long | onCmdPasteMiddle (FXObject *, FXSelector, void *) |
| long | onCmdDeleteSel (FXObject *, FXSelector, void *) |
| long | onCmdDeleteAll (FXObject *, FXSelector, void *) |
| long | onCmdOverstString (FXObject *, FXSelector, void *) |
| long | onCmdInsertString (FXObject *, FXSelector, void *) |
| long | onCmdBackspace (FXObject *, FXSelector, void *) |
| long | onCmdDelete (FXObject *, FXSelector, void *) |
| long | onCmdToggleEditable (FXObject *, FXSelector, void *) |
| long | onUpdToggleEditable (FXObject *, FXSelector, void *) |
| long | onCmdToggleOverstrike (FXObject *, FXSelector, void *) |
| long | onUpdToggleOverstrike (FXObject *, FXSelector, void *) |
| long | onUpdHaveSelection (FXObject *, FXSelector, void *) |
| long | onUpdSelectAll (FXObject *, FXSelector, void *) |
| long | onCmdSetHelp (FXObject *, FXSelector, void *) |
| long | onCmdGetHelp (FXObject *, FXSelector, void *) |
| long | onCmdSetTip (FXObject *, FXSelector, void *) |
| long | onCmdGetTip (FXObject *, FXSelector, void *) |
| long | onQueryHelp (FXObject *, FXSelector, void *) |
| long | onQueryTip (FXObject *, FXSelector, void *) |
Protected Member Functions | |
| FXint | coord (FXint i) const |
| coordinates | |
| void | drawCursor (FXuint state) |
| draw cursor | |
| void | drawPWDTextFragment (FXDCWindow &dc, FXint x, FXint y, FXint fm, FXint to) |
| draw password text fragment | |
| void | drawTextFragment (FXDCWindow &dc, FXint x, FXint y, FXint fm, FXint to) |
| draw text fragment | |
| void | drawTextRange (FXDCWindow &dc, FXint fm, FXint to) |
| draw text range | |
| FXint | index (FXint x) const |
| index | |
| FXint | leftWord (FXint pos) const |
| left word | |
| MFXTextFieldIcon () | |
| FOX need this. | |
| FXint | rightWord (FXint pos) const |
| right word | |
| FXint | wordEnd (FXint pos) const |
| word end | |
| FXint | wordStart (FXint pos) const |
| word start | |
Protected Attributes | |
| FXint | anchor = 0 |
| Anchor position. | |
| FXString | clipped |
| Clipped text. | |
| FXint | columns = 0 |
| Number of columns visible. | |
| FXString | contents |
| Edited text. | |
| FXint | cursor = 0 |
| Cursor position. | |
| FXColor | cursorColor = 0 |
| Color of the Cursor. | |
| const FXchar * | delimiters = FXTextField::textDelimiters |
| Set of delimiters. | |
| FXFont * | font |
| Text font. | |
| FXString | help |
| Help string. | |
| FXIcon * | icon = nullptr |
| icon | |
| FXColor | selbackColor = 0 |
| Selected background color. | |
| FXColor | seltextColor = 0 |
| Selected text color. | |
| FXint | shift = 0 |
| Shift amount. | |
| FXColor | textColor = 0 |
| Text color. | |
| FXString | tip |
| Tooltip. | |
Private Member Functions | |
| MFXTextFieldIcon (const MFXTextFieldIcon &)=delete | |
| invalidate copy constructor | |
| MFXTextFieldIcon & | operator= (const MFXTextFieldIcon &)=delete |
| invalidate assigment constructor | |
Definition at line 31 of file MFXTextFieldIcon.h.
| MFXTextFieldIcon::MFXTextFieldIcon | ( | FXComposite * | p, |
| FXint | ncols, | ||
| FXIcon * | ic, | ||
| FXObject * | tgt = NULL, |
||
| FXSelector | sel = 0, |
||
| FXuint | opts = TEXTFIELD_NORMAL, |
||
| FXint | x = 0, |
||
| FXint | y = 0, |
||
| FXint | w = 0, |
||
| FXint | h = 0, |
||
| FXint | pl = DEFAULT_PAD, |
||
| FXint | pr = DEFAULT_PAD, |
||
| FXint | pt = DEFAULT_PAD, |
||
| FXint | pb = DEFAULT_PAD |
||
| ) |
FOX declaration.
Construct text field wide enough to display ncols columns
Definition at line 132 of file MFXTextFieldIcon.cpp.
|
virtual |
|
protected |
|
privatedelete |
invalidate copy constructor
|
virtual |
Yes, text field may receive focus.
Definition at line 432 of file MFXTextFieldIcon.cpp.
|
protected |
coordinates
Definition at line 1052 of file MFXTextFieldIcon.cpp.
References contents, font, and shift.
Referenced by drawCursor(), isPosVisible(), onPaint(), and MFXTextFieldSearch::onPaint().
|
virtual |
|
virtual |
Disable text field.
Definition at line 203 of file MFXTextFieldIcon.cpp.
Referenced by MFXComboBoxIcon::disable(), and onUpdate().
|
protected |
draw cursor
Definition at line 852 of file MFXTextFieldIcon.cpp.
References anchor, contents, coord(), cursor, cursorColor, drawTextRange(), icon, ICON_SIZE, and ICON_SPACING.
Referenced by onAutoScroll(), onBlink(), onFocusIn(), onFocusOut(), onMotion(), and setCursorPos().
|
protected |
draw password text fragment
Definition at line 1106 of file MFXTextFieldIcon.cpp.
References contents, and font.
Referenced by drawTextRange().
|
protected |
draw text fragment
Definition at line 1098 of file MFXTextFieldIcon.cpp.
References contents, and font.
Referenced by drawTextRange().
|
protected |
draw text range
Definition at line 1118 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, drawPWDTextFragment(), drawTextFragment(), font, icon, ICON_SIZE, ICON_SPACING, selbackColor, seltextColor, shift, and textColor.
Referenced by drawCursor(), onPaint(), and MFXTextFieldSearch::onPaint().
|
virtual |
Enable text field.
Definition at line 194 of file MFXTextFieldIcon.cpp.
Referenced by MFXComboBoxIcon::enable().
| FXbool MFXTextFieldIcon::extendSelection | ( | FXint | pos | ) |
Extend the selection from the anchor to the given position.
Definition at line 2116 of file MFXTextFieldIcon.cpp.
References anchor, and contents.
Referenced by onAutoScroll(), onCmdExtend(), onLeftBtnPress(), onMotion(), selectAll(), and setSelection().
|
inline |
|
inline |
|
inline |
|
virtual |
Return default height.
Definition at line 219 of file MFXTextFieldIcon.cpp.
References font.
Referenced by MFXComboBoxIcon::getDefaultHeight().
|
virtual |
Return default width.
Definition at line 212 of file MFXTextFieldIcon.cpp.
Referenced by MFXComboBoxIcon::getDefaultWidth().
|
inline |
|
inline |
|
inline |
Get the status line help text for this label.
Definition at line 180 of file MFXTextFieldIcon.h.
References help.
Referenced by onCmdGetHelp().
| FXuint MFXTextFieldIcon::getJustify | ( | ) | const |
Return text justification mode.
Definition at line 2296 of file MFXTextFieldIcon.cpp.
References JUSTIFY_MASK.
|
inline |
|
inline |
Return selected background color.
Definition at line 130 of file MFXTextFieldIcon.h.
References selbackColor.
|
inline |
Return selected text color.
Definition at line 138 of file MFXTextFieldIcon.h.
References seltextColor.
|
inline |
Get the text for this label.
Definition at line 106 of file MFXTextFieldIcon.h.
References contents.
Referenced by MFXComboBoxIcon::getText(), MFXComboBoxIcon::onCmdFilter(), onCmdGetStringValue(), GNEOptionsDialog::onCmdSearch(), GNEOptionsDialog::onCmdSelectTopic(), and MFXComboBoxIcon::onTextCommand().
|
inline |
Return text color.
Definition at line 122 of file MFXTextFieldIcon.h.
References textColor.
Referenced by MFXComboBoxIcon::getTextColor().
| FXuint MFXTextFieldIcon::getTextStyle | ( | ) | const |
|
inline |
Get the tool tip message for this text field.
Definition at line 190 of file MFXTextFieldIcon.h.
References tip.
Referenced by MFXComboBoxIcon::getTipText(), and onCmdGetTip().
|
protected |
index
Definition at line 1008 of file MFXTextFieldIcon.cpp.
References contents, font, and shift.
Referenced by onAutoScroll(), onLeftBtnPress(), onMiddleBtnPress(), and onMotion().
| FXbool MFXTextFieldIcon::isEditable | ( | ) | const |
Return TRUE if text field may be edited.
Definition at line 2228 of file MFXTextFieldIcon.cpp.
Referenced by onCmdBackspace(), onCmdCutSel(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onCmdPasteMiddle(), onCmdPasteSel(), onCmdToggleEditable(), onFocusIn(), onKeyPress(), onUpdToggleEditable(), and setCursorPos().
| FXbool MFXTextFieldIcon::isOverstrike | ( | ) | const |
Return TRUE if overstrike mode in effect.
Definition at line 2246 of file MFXTextFieldIcon.cpp.
Referenced by onCmdToggleOverstrike(), onKeyPress(), and onUpdToggleOverstrike().
| FXbool MFXTextFieldIcon::isPosSelected | ( | FXint | pos | ) | const |
Return TRUE if position pos is selected.
Definition at line 1092 of file MFXTextFieldIcon.cpp.
| FXbool MFXTextFieldIcon::isPosVisible | ( | FXint | pos | ) | const |
Return TRUE if position is fully visible.
Definition at line 1082 of file MFXTextFieldIcon.cpp.
|
virtual |
Remove the focus from this window.
Definition at line 449 of file MFXTextFieldIcon.cpp.
References contents.
| FXbool MFXTextFieldIcon::killSelection | ( | ) |
Unselect the text.
Definition at line 2087 of file MFXTextFieldIcon.cpp.
Referenced by onCmdDeleteAll(), onCmdDeleteSel(), onCmdDeselectAll(), onCmdInsertString(), onCmdOverstString(), onLeftBtnPress(), setIcon(), and setText().
|
virtual |
Perform layout.
Definition at line 903 of file MFXTextFieldIcon.cpp.
References contents, cursor, font, makePositionVisible(), and shift.
Referenced by onCmdBackspace(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), setIcon(), setNumColumns(), and setText().
|
protected |
left word
Definition at line 1382 of file MFXTextFieldIcon.cpp.
References contents, delimiters, and isdelimiter().
Referenced by onCmdCursorWordLeft().
|
virtual |
Load text field from a stream.
Definition at line 2319 of file MFXTextFieldIcon.cpp.
References columns, contents, cursorColor, font, help, selbackColor, seltextColor, textColor, and tip.
| void MFXTextFieldIcon::makePositionVisible | ( | FXint | pos | ) |
Scroll text to make the given position visible.
Definition at line 957 of file MFXTextFieldIcon.cpp.
References contents, font, and shift.
Referenced by layout(), onCmdBackspace(), onCmdCursorEnd(), onCmdCursorHome(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCursorWordEnd(), onCmdCursorWordLeft(), onCmdCursorWordRight(), onCmdCursorWordStart(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onCmdSelectAll(), onLeftBtnPress(), and onMiddleBtnPress().
| long MFXTextFieldIcon::onAutoScroll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 676 of file MFXTextFieldIcon.cpp.
References contents, cursor, drawCursor(), extendSelection(), font, index(), and shift.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onBlink | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 385 of file MFXTextFieldIcon.cpp.
References drawCursor().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onClipboardGained | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 321 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onClipboardLost | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 328 of file MFXTextFieldIcon.cpp.
References clipped.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onClipboardRequest | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 337 of file MFXTextFieldIcon.cpp.
References clipped.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdBackspace | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1772 of file MFXTextFieldIcon.cpp.
References contents, cursor, isEditable(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCopySel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1561 of file MFXTextFieldIcon.cpp.
References anchor, clipped, contents, and cursor.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorEnd | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1351 of file MFXTextFieldIcon.cpp.
References contents, cursor, makePositionVisible(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorHome | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1343 of file MFXTextFieldIcon.cpp.
References makePositionVisible(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorLeft | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1368 of file MFXTextFieldIcon.cpp.
References contents, cursor, makePositionVisible(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorRight | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1359 of file MFXTextFieldIcon.cpp.
References contents, cursor, makePositionVisible(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorWordEnd | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1499 of file MFXTextFieldIcon.cpp.
References cursor, makePositionVisible(), setCursorPos(), and wordEnd().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorWordLeft | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1483 of file MFXTextFieldIcon.cpp.
References cursor, leftWord(), makePositionVisible(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorWordRight | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1475 of file MFXTextFieldIcon.cpp.
References cursor, makePositionVisible(), rightWord(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCursorWordStart | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1491 of file MFXTextFieldIcon.cpp.
References cursor, makePositionVisible(), setCursorPos(), and wordStart().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdCutSel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1536 of file MFXTextFieldIcon.cpp.
References anchor, clipped, contents, cursor, and isEditable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdDelete | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1792 of file MFXTextFieldIcon.cpp.
References contents, cursor, isEditable(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdDeleteAll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1679 of file MFXTextFieldIcon.cpp.
References contents, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdDeleteSel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1654 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdDeselectAll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1529 of file MFXTextFieldIcon.cpp.
References killSelection().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdExtend | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1514 of file MFXTextFieldIcon.cpp.
References cursor, and extendSelection().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdGetHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 475 of file MFXTextFieldIcon.cpp.
References getHelpText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdGetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 550 of file MFXTextFieldIcon.cpp.
References contents.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdGetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 557 of file MFXTextFieldIcon.cpp.
References contents.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdGetStringValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 564 of file MFXTextFieldIcon.cpp.
References getText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdGetTip | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 489 of file MFXTextFieldIcon.cpp.
References getTipText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdInsertString | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 1735 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdMark | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1507 of file MFXTextFieldIcon.cpp.
References cursor, and setAnchorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdOverstString | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 1699 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, isEditable(), killSelection(), layout(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdPasteMiddle | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1620 of file MFXTextFieldIcon.cpp.
References isEditable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdPasteSel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1581 of file MFXTextFieldIcon.cpp.
References isEditable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSelectAll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1521 of file MFXTextFieldIcon.cpp.
References cursor, makePositionVisible(), and selectAll().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 468 of file MFXTextFieldIcon.cpp.
References setHelpText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 529 of file MFXTextFieldIcon.cpp.
References setText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 536 of file MFXTextFieldIcon.cpp.
References setText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetStringValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 543 of file MFXTextFieldIcon.cpp.
References setText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetTip | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 482 of file MFXTextFieldIcon.cpp.
References setTipText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdSetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 522 of file MFXTextFieldIcon.cpp.
References setText().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdToggleEditable | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 803 of file MFXTextFieldIcon.cpp.
References isEditable(), and setEditable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onCmdToggleOverstrike | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 787 of file MFXTextFieldIcon.cpp.
References isOverstrike(), and setOverstrike().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onFocusIn | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 393 of file MFXTextFieldIcon.cpp.
References drawCursor(), and isEditable().
Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusIn().
| long MFXTextFieldIcon::onFocusOut | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 407 of file MFXTextFieldIcon.cpp.
References drawCursor().
Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusOut().
| long MFXTextFieldIcon::onFocusSelf | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 419 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP(), and MFXTextFieldSearch::onFocusSelf().
| long MFXTextFieldIcon::onKeyPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 1886 of file MFXTextFieldIcon.cpp.
References contents, FALLTHROUGH, isEditable(), isOverstrike(), KEY_a, KEY_c, KEY_v, and KEY_x.
Referenced by FXDEFMAP(), and MFXTextFieldSearch::onKeyPress().
| long MFXTextFieldIcon::onKeyRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 2041 of file MFXTextFieldIcon.cpp.
References FALLTHROUGH, KEY_a, KEY_c, KEY_v, and KEY_x.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onLeftBtnPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 571 of file MFXTextFieldIcon.cpp.
References contents, cursor, extendSelection(), index(), killSelection(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onLeftBtnRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 604 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onMiddleBtnPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 618 of file MFXTextFieldIcon.cpp.
References cursor, index(), makePositionVisible(), setAnchorPos(), and setCursorPos().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onMiddleBtnRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 639 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onMotion | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 652 of file MFXTextFieldIcon.cpp.
References cursor, drawCursor(), extendSelection(), and index().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
fox callbacks
Definition at line 1306 of file MFXTextFieldIcon.cpp.
References contents, coord(), cursor, cursorColor, drawTextRange(), icon, ICON_SIZE, and ICON_SPACING.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onQueryHelp | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 509 of file MFXTextFieldIcon.cpp.
References help.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onQueryTip | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 496 of file MFXTextFieldIcon.cpp.
References tip.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onSelectionGained | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 242 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onSelectionLost | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 250 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onSelectionRequest | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 258 of file MFXTextFieldIcon.cpp.
References anchor, contents, and cursor.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onUpdate | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 225 of file MFXTextFieldIcon.cpp.
References disable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onUpdHaveSelection | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 819 of file MFXTextFieldIcon.cpp.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onUpdSelectAll | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 826 of file MFXTextFieldIcon.cpp.
References contents.
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onUpdToggleEditable | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 810 of file MFXTextFieldIcon.cpp.
References isEditable().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onUpdToggleOverstrike | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 794 of file MFXTextFieldIcon.cpp.
References isOverstrike().
Referenced by FXDEFMAP().
| long MFXTextFieldIcon::onVerify | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 1812 of file MFXTextFieldIcon.cpp.
References columns.
Referenced by FXDEFMAP().
|
privatedelete |
invalidate assigment constructor
|
protected |
right word
Definition at line 1408 of file MFXTextFieldIcon.cpp.
References contents, delimiters, and isdelimiter().
Referenced by onCmdCursorWordRight().
|
virtual |
Save text field to a stream.
Definition at line 2303 of file MFXTextFieldIcon.cpp.
References columns, contents, cursorColor, font, help, selbackColor, seltextColor, textColor, and tip.
| FXbool MFXTextFieldIcon::selectAll | ( | ) |
Select all text.
Definition at line 2098 of file MFXTextFieldIcon.cpp.
References contents, cursor, extendSelection(), setAnchorPos(), and setCursorPos().
Referenced by onCmdSelectAll(), and MFXComboBoxIcon::onListClicked().
| void MFXTextFieldIcon::setAnchorPos | ( | FXint | pos | ) |
Change anchor position.
Definition at line 846 of file MFXTextFieldIcon.cpp.
References anchor, and contents.
Referenced by onCmdBackspace(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdMark(), onCmdOverstString(), onLeftBtnPress(), onMiddleBtnPress(), selectAll(), and setSelection().
| void MFXTextFieldIcon::setCursorColor | ( | FXColor | clr | ) |
Changes the cursor color.
Definition at line 2202 of file MFXTextFieldIcon.cpp.
References cursorColor.
| void MFXTextFieldIcon::setCursorPos | ( | FXint | pos | ) |
Set cursor position.
Definition at line 833 of file MFXTextFieldIcon.cpp.
References contents, cursor, drawCursor(), and isEditable().
Referenced by onCmdBackspace(), onCmdCursorEnd(), onCmdCursorHome(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCursorWordEnd(), onCmdCursorWordLeft(), onCmdCursorWordRight(), onCmdCursorWordStart(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onLeftBtnPress(), onMiddleBtnPress(), selectAll(), and setSelection().
|
inline |
| void MFXTextFieldIcon::setEditable | ( | FXbool | edit = TRUE | ) |
Set editable mode.
Definition at line 2235 of file MFXTextFieldIcon.cpp.
Referenced by onCmdToggleEditable().
|
virtual |
Move the focus to this window.
Definition at line 438 of file MFXTextFieldIcon.cpp.
| void MFXTextFieldIcon::setFont | ( | FXFont * | fnt | ) |
Set the text font.
Definition at line 181 of file MFXTextFieldIcon.cpp.
References font.
Referenced by MFXTextFieldSearch::drawSearchTextRange().
|
inline |
Set the status line help text for this label.
Definition at line 175 of file MFXTextFieldIcon.h.
References help.
Referenced by onCmdSetHelp().
| void MFXTextFieldIcon::setIcon | ( | FXIcon * | ic | ) |
Change the icon.
Definition at line 2161 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, icon, killSelection(), and layout().
Referenced by MFXComboBoxIcon::appendIconItem(), MFXComboBoxIcon::insertIconItem(), MFXComboBoxIcon::onListClicked(), MFXComboBoxIcon::onTextCommand(), MFXComboBoxIcon::setCurrentItem(), and MFXComboBoxIcon::updateIconItem().
| void MFXTextFieldIcon::setJustify | ( | FXuint | mode | ) |
Change text justification mode.
Definition at line 2283 of file MFXTextFieldIcon.cpp.
References JUSTIFY_MASK, and shift.
| void MFXTextFieldIcon::setNumColumns | ( | FXint | cols | ) |
Change the default width of the text field.
Definition at line 2212 of file MFXTextFieldIcon.cpp.
| void MFXTextFieldIcon::setOverstrike | ( | FXbool | over = TRUE | ) |
Set overstrike mode.
Definition at line 2253 of file MFXTextFieldIcon.cpp.
Referenced by onCmdToggleOverstrike().
| void MFXTextFieldIcon::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 2183 of file MFXTextFieldIcon.cpp.
References selbackColor.
| FXbool MFXTextFieldIcon::setSelection | ( | FXint | pos, |
| FXint | len | ||
| ) |
Select len characters starting at given position pos.
Definition at line 2107 of file MFXTextFieldIcon.cpp.
References cursor, extendSelection(), setAnchorPos(), and setCursorPos().
| void MFXTextFieldIcon::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 2192 of file MFXTextFieldIcon.cpp.
References seltextColor.
| void MFXTextFieldIcon::setText | ( | const FXString & | text, |
| FXbool | notify = FALSE |
||
| ) |
Change the text and move cursor to end.
Definition at line 2144 of file MFXTextFieldIcon.cpp.
References anchor, contents, cursor, killSelection(), and layout().
Referenced by MFXComboBoxIcon::appendIconItem(), MFXComboBoxIcon::clearItems(), MFXComboBoxIcon::insertIconItem(), onCmdSetIntValue(), onCmdSetRealValue(), onCmdSetStringValue(), onCmdSetValue(), MFXComboBoxIcon::onListClicked(), MFXComboBoxIcon::setCurrentItem(), MFXComboBoxIcon::setText(), and MFXComboBoxIcon::updateIconItem().
| void MFXTextFieldIcon::setTextColor | ( | FXColor | clr | ) |
Change text color.
Definition at line 2173 of file MFXTextFieldIcon.cpp.
References textColor.
Referenced by MFXComboBoxIcon::setTextColor().
| void MFXTextFieldIcon::setTextStyle | ( | FXuint | style | ) |
Change text style.
Definition at line 2263 of file MFXTextFieldIcon.cpp.
References shift, and TEXTFIELD_MASK.
|
inline |
Set the tool tip message for this text field.
Definition at line 185 of file MFXTextFieldIcon.h.
References tip.
Referenced by onCmdSetTip(), and MFXComboBoxIcon::setTipText().
|
protected |
word end
Definition at line 1455 of file MFXTextFieldIcon.cpp.
References contents, delimiters, and isdelimiter().
Referenced by onCmdCursorWordEnd().
|
protected |
word start
Definition at line 1434 of file MFXTextFieldIcon.cpp.
References contents, delimiters, and isdelimiter().
Referenced by onCmdCursorWordStart().
|
protected |
Anchor position.
Definition at line 321 of file MFXTextFieldIcon.h.
Referenced by drawCursor(), MFXTextFieldSearch::drawSearchTextRange(), drawTextRange(), extendSelection(), getAnchorPos(), isPosSelected(), onCmdCopySel(), onCmdCutSel(), onCmdDeleteSel(), onCmdInsertString(), onCmdOverstString(), onSelectionRequest(), setAnchorPos(), setIcon(), and setText().
|
protected |
Clipped text.
Definition at line 330 of file MFXTextFieldIcon.h.
Referenced by onClipboardLost(), onClipboardRequest(), onCmdCopySel(), and onCmdCutSel().
|
protected |
Number of columns visible.
Definition at line 324 of file MFXTextFieldIcon.h.
Referenced by getDefaultWidth(), getNumColumns(), load(), onVerify(), save(), and setNumColumns().
|
protected |
Edited text.
Definition at line 297 of file MFXTextFieldIcon.h.
Referenced by coord(), drawCursor(), drawPWDTextFragment(), drawTextFragment(), drawTextRange(), extendSelection(), getText(), index(), isPosVisible(), killFocus(), layout(), leftWord(), load(), makePositionVisible(), onAutoScroll(), onCmdBackspace(), onCmdCopySel(), onCmdCursorEnd(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCutSel(), onCmdDelete(), onCmdDeleteAll(), onCmdDeleteSel(), onCmdGetIntValue(), onCmdGetRealValue(), onCmdInsertString(), onCmdOverstString(), onKeyPress(), onLeftBtnPress(), onPaint(), MFXTextFieldSearch::onPaint(), onSelectionRequest(), onUpdSelectAll(), rightWord(), save(), selectAll(), setAnchorPos(), setCursorPos(), setIcon(), setText(), wordEnd(), and wordStart().
|
protected |
Cursor position.
Definition at line 318 of file MFXTextFieldIcon.h.
Referenced by drawCursor(), MFXTextFieldSearch::drawSearchTextRange(), drawTextRange(), getCursorPos(), isPosSelected(), layout(), onAutoScroll(), onCmdBackspace(), onCmdCopySel(), onCmdCursorEnd(), onCmdCursorLeft(), onCmdCursorRight(), onCmdCursorWordEnd(), onCmdCursorWordLeft(), onCmdCursorWordRight(), onCmdCursorWordStart(), onCmdCutSel(), onCmdDelete(), onCmdDeleteSel(), onCmdExtend(), onCmdInsertString(), onCmdMark(), onCmdOverstString(), onCmdSelectAll(), onLeftBtnPress(), onMiddleBtnPress(), onMotion(), onPaint(), MFXTextFieldSearch::onPaint(), onSelectionRequest(), selectAll(), setCursorPos(), setIcon(), setSelection(), and setText().
|
protected |
Color of the Cursor.
Definition at line 315 of file MFXTextFieldIcon.h.
Referenced by drawCursor(), getCursorColor(), load(), onPaint(), MFXTextFieldSearch::onPaint(), save(), and setCursorColor().
|
protected |
Set of delimiters.
Definition at line 300 of file MFXTextFieldIcon.h.
Referenced by getDelimiters(), leftWord(), rightWord(), setDelimiters(), wordEnd(), and wordStart().
|
protected |
Text font.
Definition at line 303 of file MFXTextFieldIcon.h.
Referenced by coord(), create(), drawPWDTextFragment(), MFXTextFieldSearch::drawSearchTextRange(), drawTextFragment(), drawTextRange(), getDefaultHeight(), getDefaultWidth(), getFont(), index(), layout(), load(), makePositionVisible(), MFXTextFieldIcon(), onAutoScroll(), save(), setFont(), and ~MFXTextFieldIcon().
|
protected |
Help string.
Definition at line 333 of file MFXTextFieldIcon.h.
Referenced by getHelpText(), load(), onQueryHelp(), save(), and setHelpText().
|
protected |
icon
Definition at line 339 of file MFXTextFieldIcon.h.
Referenced by drawCursor(), drawTextRange(), onPaint(), MFXTextFieldSearch::onPaint(), and setIcon().
|
protected |
Selected background color.
Definition at line 309 of file MFXTextFieldIcon.h.
Referenced by drawTextRange(), getSelBackColor(), load(), save(), and setSelBackColor().
|
protected |
Selected text color.
Definition at line 312 of file MFXTextFieldIcon.h.
Referenced by drawTextRange(), getSelTextColor(), load(), save(), and setSelTextColor().
|
protected |
Shift amount.
Definition at line 327 of file MFXTextFieldIcon.h.
Referenced by coord(), MFXTextFieldSearch::drawSearchTextRange(), drawTextRange(), index(), layout(), makePositionVisible(), onAutoScroll(), setJustify(), setNumColumns(), and setTextStyle().
|
protected |
Text color.
Definition at line 306 of file MFXTextFieldIcon.h.
Referenced by drawTextRange(), getTextColor(), load(), save(), and setTextColor().
|
protected |
Tooltip.
Definition at line 336 of file MFXTextFieldIcon.h.
Referenced by getTipText(), load(), onQueryTip(), save(), and setTipText().