Commit Graph

95 Commits

Author SHA1 Message Date
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
Thilo Graf
39306221b1 *CTextbox: Required functions for CCompoments
- Add member to disable background box
- Add setter for text an background color
- Add setTextBorderWidth() & setTextFont()
- Calculate y-position of text in refreshText()
2012-08-21 09:48:22 +01:00
Thilo Graf
d1f22aa20c *includes: add global.h 2012-08-21 09:48:22 +01:00
[CST] Focus
b014b965f4 gui/widget/textbox.cpp: fix string access outside of its size 2012-05-10 12:18:11 +04:00
micha-bbg
b4186edcb8 Prevents division by zero.
- In particular text box dimensions was a division by zero.


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1831 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-11-05 23:32:53 +00:00
satbaby
8f59cc96ec change 'long long' tom int64_t'; change variable buf to new delete;
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@291 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-07 14:32:21 +00:00
mws
6e718d8987 fix shadow stuff and initializers....
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@118 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-23 12:08:43 +00:00
mrcolor
bc5bd4154e our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-08 11:05:11 +00:00