CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUITextEdit.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 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
22class QString;
23
29{
30public:
35 {
36 eNormal = 0,
37 ePassword = 1
38 };
39
46
49
55 void setText( const CFxUIString& str );
56
63
69 void setPlainText( const CFxUIString& sText );
70
79
87 void setPlaceholderText( const CFxUIString& str );
88
95
103 void setClearButtonEnabled( bool bEnable );
104
111
115 void selectAll();
116
122 void setFocus();
123
131 void moveCursor( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor );
132
138 void setInputType( int type );
139
145 void setInputMask( const CFxUIString& str );
146
155
163 void setReadOnly( bool readOnly );
164
168 void clear();
169
175 void setTextAlignment( TextAlignment iAlignment );
176
184 void setEchoMode( EchoMode echoMode );
185
189 CFxUISignal<void(const QString )>& textChanged();
190
195
201 CFxUISignal<void(const QString )>& textEdited();
202
207 CFxUISignal<void( int, int )>& keyPressed();
208
209 //...
210};
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
void setText(const CFxUIString &str)
CFxUIString inputMask() const
CFxUISignal< void(int, int)> & keyPressed()
CFxUISignal< void(void)> & editingFinished()
bool isClearButtonEnabled() const
CFxUIString placeholderText() const
void selectAll()
void setInputMask(const CFxUIString &str)
void setPlainText(const CFxUIString &sText)
CFxUIString text() const
CFxUISignal< void(const QString)> & textChanged()
void setInputType(int type)
CFxUIString toPlainText() const
void setTextAlignment(TextAlignment iAlignment)
void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
CFxUISignal< void(const QString)> & textEdited()
void setPlaceholderText(const CFxUIString &str)
void setEchoMode(EchoMode echoMode)
CFxUITextEdit(UIWidthSizePolicy width=eM)
void setClearButtonEnabled(bool bEnable)
void setReadOnly(bool readOnly)
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