Commit Graph

25 Commits

Author SHA1 Message Date
Thilo Graf
8549bf695d CTextBox: remove dub var
revert of c25af575bf


Origin commit data
------------------
Commit: 94a49e3a51
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)
2012-11-05 22:04:42 +01:00
Thilo Graf
c25af575bf CTextBox: fix build
merge error, max_width is not declared


Origin commit data
------------------
Commit: 6016c60b4c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)
2012-11-05 21:26:22 +01:00
Thilo Graf
f1ef3effce 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.


Origin commit data
------------------
Commit: 474a35a254
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-26 (Fri, 26 Oct 2012)
2012-11-05 21:26:22 +01:00
Thilo Graf
813249a861 CTextBox: add option BOTTOM
BOTTOM was missed


Origin commit data
------------------
Commit: fee315f642
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-24 (Mon, 24 Sep 2012)

Origin message was:
------------------
*CTextBox: add option BOTTOM

BOTTOM was missed
2012-11-05 21:26:22 +01:00
Thilo Graf
def1c260ab CTextBox: add optional text align TOP
Origin commit data
------------------
Commit: 33e684bc20
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)

Origin message was:
------------------
*CTextBox: add optional text align TOP
2012-11-05 21:26:21 +01:00
Thilo Graf
9dfacfc01b CTextbox: add text align option RIGHT
This supports paint of text on the right side of frame and
also considers scroll bar width.


Origin commit data
------------------
Commit: c25edc0b74
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)

Origin message was:
------------------
*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
466164e876 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.


Origin commit data
------------------
Commit: c9472dc3f3
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)

Origin message was:
------------------
*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
5384692aec CTextbox: add members setWindowMaxDimensions, setWindowMinDimensions
so we can control max an mnin width and height


Origin commit data
------------------
Commit: 130d7bf6c2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)
2012-11-05 21:26:21 +01:00
Thilo Graf
656ac34059 CTextBox: fix freezes in channellist and bedit
refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances


Origin commit data
------------------
Commit: 1244af4666
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-20 (Thu, 20 Sep 2012)

Origin message was:
------------------
*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
f6b393fe03 CTextBox: trivial change for better readability in initVar()
Origin commit data
------------------
Commit: a7bdf41dfe
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-19 (Wed, 19 Sep 2012)

Origin message was:
------------------
*CTextBox: trivial change for better readability in initVar()
2012-11-05 21:26:20 +01:00
Thilo Graf
b556c305a5 CTextBox: add member initFramesAndTextArray(), move max_width into initVar
this combines initFramesRel() and	refreshTextLineArray()


Origin commit data
------------------
Commit: ed3be21ebd
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-19 (Wed, 19 Sep 2012)

Origin message was:
------------------
*CTextBox: add member initFramesAndTextArray(), move max_width into initVar

this combines initFramesRel() and	refreshTextLineArray()
2012-11-05 21:26:20 +01:00
Thilo Graf
ab9dccaa75 CTextBox: style, reworked statements for better readability
Origin commit data
------------------
Commit: 57cb8cc3e0
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-19 (Wed, 19 Sep 2012)

Origin message was:
------------------
*CTextBox: style, reworked statements for better readability
2012-11-05 21:26:20 +01:00
Thilo Graf
8cbe889f50 CTextBox: remove frameBuffer = NULL
already happens in initVar()


Origin commit data
------------------
Commit: ad72c62471
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-19 (Wed, 19 Sep 2012)

Origin message was:
------------------
*CTextBox: remove frameBuffer = NULL

already happens in initVar()
2012-11-05 21:26:20 +01:00
Thilo Graf
3008ec98bc CTextBox: add missed init of lineBreakWidth
lineBreakWidth is not initialized, but some othe values also not defined,
here is seems somthing wrong


Origin commit data
------------------
Commit: d7dc44146c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-18 (Tue, 18 Sep 2012)

Origin message was:
------------------
*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
062ec23f6c 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.


Origin commit data
------------------
Commit: 55896356f1
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)

Origin message was:
------------------
*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
1e537fe322 CTextBox: some small style clean ups for better readability
Origin commit data
------------------
Commit: 323393548d
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-16 (Sun, 16 Sep 2012)

Origin message was:
------------------
*CTextBox: some small style clean ups for better readability
2012-11-05 21:26:19 +01:00
Thilo Graf
c4dbf75417 CTextBox: remove printf
it' makes osd too slow


Origin commit data
------------------
Commit: 69c22d1594
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-08-27 (Mon, 27 Aug 2012)

Origin message was:
------------------
*CTextBox: remove printf

it' makes osd too slow
2012-11-05 21:26:18 +01:00
Jacek Jendrzej
d74377dd47 initialize not initialized var
Origin commit data
------------------
Commit: 926e0ce141
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-05 (Mon, 05 Nov 2012)

Origin message was:
------------------
initialize not initialized var
2012-11-05 09:24:51 +01:00
Thilo Graf
ed6438b87d 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()


Origin commit data
------------------
Commit: 39306221b1
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-08-16 (Thu, 16 Aug 2012)

Origin message was:
------------------
*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
0c31abbf1e includes: add global.h
Origin commit data
------------------
Commit: d1f22aa20c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-08-15 (Wed, 15 Aug 2012)

Origin message was:
------------------
*includes: add global.h
2012-08-21 09:48:22 +01:00
[CST] Focus
a2be692de6 gui/widget/textbox.cpp: fix string access outside of its size
Origin commit data
------------------
Commit: b014b965f4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-10 (Thu, 10 May 2012)
2012-05-10 12:18:11 +04:00
Michael Liebmann
13bcebcd19 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


Origin commit data
------------------
Commit: b4186edcb8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2011-11-06 (Sun, 06 Nov 2011)
2011-11-05 23:32:53 +00:00
Jacek Jendrzej
9819856e7d 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


Origin commit data
------------------
Commit: 8f59cc96ec
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-02-07 (Sun, 07 Feb 2010)
2010-02-07 14:32:21 +00:00
mws
e19aef671b fix shadow stuff and initializers....
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@118 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 6e718d8987
Author: mws <mws@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-23 (Wed, 23 Dec 2009)
2009-12-23 12:08:43 +00:00
mrcolor
cb8dd3394d our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
2009-12-08 11:05:11 +00:00