CFx SDK Documentation  2022 SP0
FxUITextEdit.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxUIBaseView.h"
20 #include <QtGui/QTextCursor>
21 
22 class QString;
23 
28 {
29  eNormal = 0,
30  ePassword = 1
31 };
32 
38 {
39 public:
40 
41 
48 
51 
57  void setText( const CFxUIString& str );
58 
64  CFxUIString text() const;
65 
71  void setPlainText( const CFxUIString& sText );
72 
81 
89  void setPlaceholderText( const CFxUIString& str );
90 
97 
105  void setClearButtonEnabled( bool bEnable );
106 
112  bool isClearButtonEnabled() const;
113 
117  void selectAll();
118 
124  void setFocus();
125 
133  void moveCursor( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor );
134 
140  void setInputType( int type );
141 
147  void setInputMask( const CFxUIString& str );
148 
157 
165  void setReadOnly( bool readOnly );
166 
170  void clear();
171 
177  void setTextAlignment( TextAlignment iAlignment );
178 
186  void setEchoMode( EchoMode echoMode );
187 
191  CFxUISignal<void(const QString )>& textChanged();
192 
197 
203  CFxUISignal<void(const QString )>& textEdited();
204 
209  CFxUISignal<void( int, int )>& keyPressed();
210 
211  //...
212 };
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
EchoMode
Definition: FxUITextEdit.h:28
@ eNormal
Definition: FxUITextEdit.h:29
@ ePassword
Definition: FxUITextEdit.h:30
void setText(const CFxUIString &str)
CFxUIString inputMask() const
bool isClearButtonEnabled() const
CFxUIString placeholderText() const
CFxUISignal< void(int, int)> & keyPressed()
void selectAll()
void setInputMask(const CFxUIString &str)
void setPlainText(const CFxUIString &sText)
CFxUIString text() const
CFxUISignal< void(const QString)> & textEdited()
void setInputType(int type)
CFxUIString toPlainText() const
void setTextAlignment(TextAlignment iAlignment)
void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
void setPlaceholderText(const CFxUIString &str)
CFxUISignal< void(const QString)> & textChanged()
void setEchoMode(EchoMode echoMode)
CFxUITextEdit(UIWidthSizePolicy width=eM)
void setClearButtonEnabled(bool bEnable)
void setReadOnly(bool readOnly)
CFxUISignal< void(void)> & editingFinished()
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274