Thilo Graf
672ae3fdb1
CTextBox: fix calculated but not used parameter
2015-07-17 17:07:14 +02:00
Thilo Graf
4e002bdf66
CTextBox: consider utf8 mode parameter for correct render width, if required
2015-07-17 16:01:20 +02:00
Thilo Graf
37c863d141
CTextBox: add switch for utf8 disable/enable
2015-07-12 21:08:25 +02:00
Thilo Graf
87cbb564a3
CTextBox: ensure save screen only if dimensions are valid
...
0 values are critical
2015-05-04 10:37:03 +02:00
Thilo Graf
459c120060
CTextBox: catching error if position has signed values
...
Wrong position assignments can trigger crash. Prevent segfaults.
Error log should indicate this.
2015-03-29 22:40:15 +02:00
[CST] Focus
72997591a0
gui/widget/textbox.cpp: add flag to control screen save, default is false;
...
disable hide in desctructor
2015-03-06 14:13:59 +03:00
Stefan Seyfried
a85878db2f
CTextBox: fix text position calculation
2015-02-09 13:47:31 +01:00
M. Liebmann
a6487fd951
CTextBox: Fix center / right text display
...
- The x position of the text could assume negative values,
when the text length was greater than the specified range.
2014-10-16 17:14:04 +02:00
Thilo Graf
f902c7a1e3
CTextBox: fix return value of getMaxLineWidth()
...
m_nMaxLineWidth was never used
2014-08-26 17:26:55 +04:00
M. Liebmann
1b9037e8e8
CTextBox: Add Flag m_renderMode (Font::FULLBG) for RenderString()
2014-06-29 13:25:32 +02:00
svenhoefer
649d1b1f9d
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
svenhoefer
8b91cda918
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Thilo Graf
e617bab6cf
CTextBox: reinit text variables after evaluated comparison
2013-11-11 00:19:45 +01:00
Thilo Graf
7e91fecc02
CTextBox: add new parameter to setText() force_repaint
...
Paint routine of text has changed, so it can be useful to affect the old
behavior of text repaint beacause of text is painted only if
text or some other properties have changed.
Default value of force_repaint is true, so we have the same behavior like
before changes.
2013-11-11 00:19:45 +01:00
Thilo Graf
5c7e926a86
CTextBox: fix repaint of background of textbox on scroll and changed text
...
suplement to ca22cb9241
2013-10-27 14:53:59 +01:00
Michael Liebmann
ca22cb9241
CTextBox: Fix background paint
2013-10-26 18:55:40 +02:00
Michael Liebmann
3d404afc7f
CTextBox: Add function getLinesPerPage()
...
- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
auto linebreak without '-' and '.' char
2013-10-24 21:19:06 +02:00
Thilo Graf
adba310c1c
CTextBox: ensure paint of text and background only if required
...
It's not new, but this involves also other properties,
like color or position...
It's possible that more properties are required, maybe needs to be watched
and evaluation of comparison might require further revisions.
2013-10-24 21:19:06 +02:00
Thilo Graf
302649eca4
CTextBox: ensure restore of background, if pixbuf exists
...
This may prevent undefined behavior or even possible segfaults
2013-10-20 02:54:46 +02:00
Thilo Graf
08e23a917c
CTextBox: ensure paint of background to avoid overlapped letters
2013-09-19 08:24:40 +02:00
Thilo Graf
b7b74ec718
CTextBox: set the correct H/V border
...
Signed-off-by: Thilo Graf <dbt@novatux.de >
2013-07-22 14:14:36 +02:00
Michael Liebmann
c60c5c5ce3
Replace color indexes of the text colors by real color values for RenderString()
...
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +02:00
FlatTV
153d2f3c78
CTextBox: expand parameters of member setTextBorderWidth()
...
This allows to use different horizontal and vertical width of borders
in text boxes.
Signed-off-by: Thilo Graf <dbt@novatux.de >
2013-07-07 14:24:02 +02:00
Michael Liebmann
ba1e514747
CTextBox: Remove workaround for minimally text_border_width
...
- Default value is now 1 in CComponentsText
2013-06-12 01:32:24 +02:00
FlatTV
96da2f95b8
- CComponentsText: add possibility to set a text border
2013-06-06 22:08:46 +02:00
svenhoefer
050df14f8d
- textbox: don't accept boxes with no borderwidth
2013-05-08 00:30:58 +02:00
Michael Liebmann
2c740f1db8
* CTextBox: rename setFontTextHeight() => getFontTextHeight()
2013-05-04 21:42:10 +02:00
Michael Liebmann
fccb07cfc9
* CTextBox: When using only digits to display:
...
- Use for calculating digit height
font->getDigitHeight() / font->getDigitOffset()
2013-04-28 16:48:09 +02:00
Michael Liebmann
c74fb77603
* CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll
2013-03-21 06:56:23 +01:00
Thilo Graf
4db5c450a4
CTextBox: don't hide if m_nPaintBackground is set to false
...
Required in CCompmonentsText. Hide of textbox object is unnecessary in
CCompmonentsText objects.
2013-03-06 11:28:10 +01:00
micha-bbg
11b2242d2e
* CTextBox: Fix displayed text width in function setText()
2012-11-08 22:37:37 +01:00
Thilo Graf
08e66deb75
CTextBox: remove dub allocation of m_pcFontText
2012-11-08 22:37:18 +01:00
Thilo Graf
94a49e3a51
CTextBox: remove dub var
...
revert of 6016c60b4c
2012-11-05 22:04:42 +01:00
Thilo Graf
6016c60b4c
CTextBox: fix build
...
merge error, max_width is not declared
2012-11-05 21:26:22 +01:00
Thilo Graf
474a35a254
CTextBox: modified AUTO_WIDTH, add some printfs and comments
...
If is set m_nMaxWidth, then use this to calculate m_cFrameTextRel.iWidth.
To set m_nMaxWidth use setWindowMaxDimensions(width) and setText(maxwidth).
This should help, to paint text with clean linebreaks
into defined textboxes.
2012-11-05 21:26:22 +01:00
Thilo Graf
fee315f642
*CTextBox: add option BOTTOM
...
BOTTOM was missed
2012-11-05 21:26:22 +01:00
Thilo Graf
33e684bc20
*CTextBox: add optional text align TOP
2012-11-05 21:26:21 +01:00
Thilo Graf
c25edc0b74
*CTextbox: add text align option RIGHT
...
This supports paint of text on the right side of frame and
also considers scroll bar width.
2012-11-05 21:26:21 +01:00
Thilo Graf
c9472dc3f3
*CTextBox: set text y position depends of lines count
...
If we have only one line, text will be painted horizontal centered,
otherwise text begins on top of frame.
2012-11-05 21:26:21 +01:00
Thilo Graf
130d7bf6c2
CTextbox: add members setWindowMaxDimensions, setWindowMinDimensions
...
so we can control max an mnin width and height
2012-11-05 21:26:21 +01:00
Thilo Graf
1244af4666
*CTextBox: fix freezes in channellist and bedit
...
refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances
2012-11-05 21:26:21 +01:00
Thilo Graf
a7bdf41dfe
*CTextBox: trivial change for better readability in initVar()
2012-11-05 21:26:20 +01:00
Thilo Graf
ed3be21ebd
*CTextBox: add member initFramesAndTextArray(), move max_width into initVar
...
this combines initFramesRel() and refreshTextLineArray()
2012-11-05 21:26:20 +01:00
Thilo Graf
57cb8cc3e0
*CTextBox: style, reworked statements for better readability
2012-11-05 21:26:20 +01:00
Thilo Graf
ad72c62471
*CTextBox: remove frameBuffer = NULL
...
already happens in initVar()
2012-11-05 21:26:20 +01:00
Thilo Graf
d7dc44146c
*CTextBox: add missed init of lineBreakWidth
...
lineBreakWidth is not initialized, but some othe values also not defined,
here is seems somthing wrong
2012-11-05 21:26:20 +01:00
Thilo Graf
55896356f1
*CTextBox: move framebuffer define only into initVar
...
framebuffer = NULL was called in all constructors,
so it should be enough to define this only at one point.
2012-11-05 21:26:20 +01:00
Thilo Graf
323393548d
*CTextBox: some small style clean ups for better readability
2012-11-05 21:26:19 +01:00
Thilo Graf
69c22d1594
*CTextBox: remove printf
...
it' makes osd too slow
2012-11-05 21:26:18 +01:00
satbaby
926e0ce141
initialize not initialized var
2012-11-05 09:24:51 +01:00