CFx SDK Documentation  2020SP3
FxUITextEdit.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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 
29 {
30 public:
31 
32 
39 
42 
48  void setText( const CFxUIString& str );
49 
55  CFxUIString text() const;
56 
62  void setPlainText( const CFxUIString& sText );
63 
72 
80  void setPlaceholderText( const CFxUIString& str );
81 
88 
96  void setClearButtonEnabled( bool bEnable );
97 
103  bool isClearButtonEnabled() const;
104 
108  void selectAll();
109 
115  void setFocus();
116 
124  void moveCursor( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor );
125 
131  void setInputType( int type );
132 
138  void setInputMask( const CFxUIString& str );
139 
148 
156  void setReadOnly( bool readOnly );
157 
161  void clear();
162 
168  void setTextAlignment( TextAlignment iAlignment );
169 
173  CFxUISignal<void(const QString )>& textChanged();
174 
179 
185  CFxUISignal<void(const QString )>& textEdited();
186 
191  CFxUISignal<void( int, int )>& keyPressed();
192 
193  //...
194 };
CFxUITextEdit::setReadOnly
void setReadOnly(bool readOnly)
CFxUITextEdit::clear
void clear()
FxUIBaseView.h
CFxUITextEdit::setText
void setText(const CFxUIString &str)
CFxUIBaseView::TextAlignment
TextAlignment
Definition: FxUIBaseView.h:37
CFxUIBaseView
Definition: FxUIBaseView.h:30
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
CFxUITextEdit::textEdited
CFxUISignal< void(const QString)> & textEdited()
CFxUITextEdit::moveCursor
void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
CFxUISignal
Definition: FxUISignal.h:74
CFxUITextEdit::isClearButtonEnabled
bool isClearButtonEnabled() const
CFxUITextEdit
Definition: FxUITextEdit.h:29
CFxUITextEdit::setPlainText
void setPlainText(const CFxUIString &sText)
CFxUITextEdit::placeholderText
CFxUIString placeholderText() const
CFxUITextEdit::keyPressed
CFxUISignal< void(int, int)> & keyPressed()
CFxUITextEdit::textChanged
CFxUISignal< void(const QString)> & textChanged()
CFxUITextEdit::setFocus
void setFocus()
CFxUITextEdit::setTextAlignment
void setTextAlignment(TextAlignment iAlignment)
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
CFxUITextEdit::selectAll
void selectAll()
CFxUITextEdit::editingFinished
CFxUISignal< void(void)> & editingFinished()
CFxUITextEdit::inputMask
CFxUIString inputMask() const
CFxUIString
QString CFxUIString
Definition: FxUIObject.h:46
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxUITextEdit::text
CFxUIString text() const
CFxUITextEdit::setInputType
void setInputType(int type)
CFxUITextEdit::~CFxUITextEdit
~CFxUITextEdit()
CFxUIBaseView::UIWidthSizePolicy
UIWidthSizePolicy
Definition: FxUIBaseView.h:67
CFxUITextEdit::CFxUITextEdit
CFxUITextEdit(UIWidthSizePolicy width=eM)
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
CFxUITextEdit::toPlainText
CFxUIString toPlainText() const
CFxUITextEdit::setInputMask
void setInputMask(const CFxUIString &str)
CFxUITextEdit::setPlaceholderText
void setPlaceholderText(const CFxUIString &str)
CFxUITextEdit::setClearButtonEnabled
void setClearButtonEnabled(bool bEnable)