The RadLineEdit class is the principal tool for AIS Lisp to surface text edit line functionality. The RadLineEdit is one of the key words accepted by the qt new: function. There can be many RadLineEdit objects.
Overview
The new function creates a new RadLineEdit object and returns a pointer to the newly created object. The RadLineEdit is one of the class key words accepted by the qt new: function. There can be many RadLineEdit objects.
Syntax
(qt new: RadLineEdit:)
(qt new: RadLineEdit: keyMgr)
Arguments
keyMgr | (Optional)The key manager lambda to manage the RADLineEDIT object's key strokes. |
Returns | Always returns a pointer to the newly created RadLineEdit object. |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Horizontal Tab Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit:)) ;; Create a RadLineEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
Overview
The delete function destroys a RadLineEdit object and returns a null pointer.
Syntax
(qt delete: radLineEditPtr)
Arguments
radLineEditPtr | The pointer to the RadLineEdit object to be destroyed. |
Returns | Always returns a null pointer. |
Example1
(setq radLineEditPtr (qt new: RadLineEdit:)) ;; Create a RadLineEdit object.
(setq radLineEditPtr (qt delete: radLineEditPtr)) ;; Destroy the RadLineEdit object.
Overview
The RadLineEdit getText function returns the entire contents of the RadLineEdit display pane as an ASCII string.
Syntax
(setq myText (qt radLineEditPtr getText:))
Arguments
myText | Always returns the entire contents of the RadLineEdit display pane as an ADCII string. |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Horizontal Tab Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit:)) ;; Create a QT TextEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
(qt radLineEditPtr setText: "Hello world")) ;; Set the RadLineEdit display pane to specified ASCII text.
(setq return (qt radLineEditPtr getText:)) ;; Return the ASCII text in the RadLineEdit pane.
Overview
The RadLineEdit selectAll function selects highlights all text in the RadLineEdit display pane.
Syntax
(qt radLineEditPtr selectAll:)
Arguments
returns | Always returns #void. |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Horizontal Tab Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit:)) ;; Create a QT TextEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
(qt radLineEditPtr setText: "Hello world")) ;; Set the RadLineEdit display pane to specified ASCII text.
(qt radLineEditPtr selectAll:)) ;; Select and highlight all text in the RadLineEdit pane.
(setq result (qt radLineEditPtr getSelectedText:)) ;; Return the text selected which is "Hello world".
Overview
The RadLineEdit setFocus function sets the RadLineEdit to have the focus.
Syntax
(qt radLineEditPtr setFocus:)
Arguments
returns | Always returns #void. |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Edit Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit:)) ;; Create a QT TextEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
(qt radLineEditPtr setText: "Hello world")) ;; Set the RadLineEdit display pane to specified ASCII text.
(qt radLineEditPtr setFocus:)) ;; Sets the RadLineEdit display pane to have the focus.
Overview
The RadLineEdit setMgr function sets the RadLineEdit key stroke manager name - where (defun mgrLambdaName(command) ...lisp code...)
Syntax
(qt radLineEditPtr setMgr: mgrLambdaName)
Arguments
mgrLambdaName | The RadLineEdit key stroke manager name - where (defun mgrLambdaName(command) ...lisp code...). |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Edit Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit: editMgr)) ;; Create a QT TextEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
(qt radLineEditPtr setText: "Hello world")) ;; Set the RadLineEdit display pane to specified ASCII text.
Overview
The RadLineEdit setReadOnly function sets the RadLineEdit to read only mode (true).
Syntax
(qt radLineEditPtr setReadOnly: switch)
Arguments
switch | The RadLineEdit read only switch (true) or (false) if editing allowed. |
Example1
(defun editMgr(...) true) ;; Don't do anything special when the tab is clicked
(qt mainWindow: setTitle: (append "My QT Edit Demo.")) ;; Set the main window title
(setq radLineEditPtr (qt new: RadLineEdit: editMgr)) ;; Create a QT TextEdit object (a GUI descentant of RadWidget).
(setq tabIndex (qt mainWindow: addTab: radLineEditPtr "Edit" editMgr)) ;; Add a new tab to the main window horizontal tab bar
(qt mainWindow: maximize:) ;; Display the main window
(qt radLineEditPtr setHtmlText: "Hello world") ;; Set the RadLineEdit display pane to specified HTML text.
(qt radLineEditPtr setReadOnly: true) ;; Set the RadLineEdit display pane to read only mode.