Commit Graph

85 Commits

Author SHA1 Message Date
FlatTV
6a4aa31209 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>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 153d2f3c78
Author: FlatTV <FlatTV@gmx.de>
Date: 2013-07-01 (Mon, 01 Jul 2013)



------------------
This commit was generated by Migit
2013-07-07 14:24:02 +02:00
Michael Liebmann
73bd5928e5 CTextBox: Remove workaround for minimally text_border_width
- Default value is now 1 in CComponentsText


Origin commit data
------------------
Branch: ni/coolstream
Commit: ba1e514747
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-12 (Wed, 12 Jun 2013)



------------------
This commit was generated by Migit
2013-06-12 01:32:24 +02:00
FlatTV
1fce3ad769 CComponentsText: add possibility to set a text border
Origin commit data
------------------
Branch: ni/coolstream
Commit: 96da2f95b8
Author: FlatTV <FlatTV@gmx.de>
Date: 2013-06-06 (Thu, 06 Jun 2013)

Origin message was:
------------------
- CComponentsText: add possibility to set a text border

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-06 22:08:46 +02:00
vanhofen
d2c11695d8 textbox: don't accept boxes with no borderwidth
Origin commit data
------------------
Branch: ni/coolstream
Commit: 050df14f8d
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-05-08 (Wed, 08 May 2013)

Origin message was:
------------------
- textbox: don't accept boxes with no borderwidth

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-05-08 00:30:58 +02:00
Michael Liebmann
95fe977744 CTextBox: rename setFontTextHeight() => getFontTextHeight()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2c740f1db8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-01 (Wed, 01 May 2013)

Origin message was:
------------------
* CTextBox: rename setFontTextHeight() => getFontTextHeight()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-05-04 21:42:10 +02:00
Michael Liebmann
d891b231cf CTextBox: When using only digits to display:
- Use for calculating digit height
 font->getDigitHeight() / font->getDigitOffset()


Origin commit data
------------------
Branch: ni/coolstream
Commit: fccb07cfc9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-24 (Wed, 24 Apr 2013)

Origin message was:
------------------
* CTextBox: When using only digits to display:

- Use for calculating digit height
 font->getDigitHeight() / font->getDigitOffset()


------------------
This commit was generated by Migit
2013-04-28 16:48:09 +02:00
Michael Liebmann
152ddb0683 CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll
Origin commit data
------------------
Branch: ni/coolstream
Commit: c74fb77603
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-03-20 (Wed, 20 Mar 2013)

Origin message was:
------------------
* CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-03-21 06:56:23 +01:00
Thilo Graf
1401c480f6 CTextBox: don't hide if m_nPaintBackground is set to false
Required in CCompmonentsText. Hide of textbox object is unnecessary in
CCompmonentsText objects.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4db5c450a4
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:10 +01:00
Michael Liebmann
02ddbf031c CTextBox: Fix displayed text width in function setText()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 11b2242d2e
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-11-08 (Thu, 08 Nov 2012)

Origin message was:
------------------
* CTextBox: Fix displayed text width in function setText()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-08 22:37:37 +01:00
Thilo Graf
0b9bcf1bad CTextBox: remove dub allocation of m_pcFontText
Origin commit data
------------------
Branch: ni/coolstream
Commit: 08e66deb75
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-07 (Wed, 07 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-08 22:37:18 +01:00
Thilo Graf
96fc39f3b8 CTextBox: remove dub var
revert of a1db0df966


Origin commit data
------------------
Branch: ni/coolstream
Commit: 94a49e3a51
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)



------------------
This commit was generated by Migit
2012-11-05 22:04:42 +01:00
Thilo Graf
a1db0df966 CTextBox: fix build
merge error, max_width is not declared


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6016c60b4c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)



------------------
This commit was generated by Migit
2012-11-05 21:26:22 +01:00
Thilo Graf
4b8d31173c 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
------------------
Branch: ni/coolstream
Commit: 474a35a254
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-26 (Fri, 26 Oct 2012)



------------------
This commit was generated by Migit
2012-11-05 21:26:22 +01:00
Thilo Graf
7f7459b427 CTextBox: add option BOTTOM
BOTTOM was missed


Origin commit data
------------------
Branch: ni/coolstream
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


------------------
This commit was generated by Migit
2012-11-05 21:26:22 +01:00
Thilo Graf
092c8223e8 CTextBox: add optional text align TOP
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-05 21:26:21 +01:00
Thilo Graf
b4d09f65da 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
------------------
Branch: ni/coolstream
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.


------------------
This commit was generated by Migit
2012-11-05 21:26:21 +01:00
Thilo Graf
0c6b5c2aa7 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
------------------
Branch: ni/coolstream
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.


------------------
This commit was generated by Migit
2012-11-05 21:26:21 +01:00
Thilo Graf
861c1cbb02 CTextbox: add members setWindowMaxDimensions, setWindowMinDimensions
so we can control max an mnin width and height


Origin commit data
------------------
Branch: ni/coolstream
Commit: 130d7bf6c2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)



------------------
This commit was generated by Migit
2012-11-05 21:26:21 +01:00
Thilo Graf
63d6184d73 CTextBox: fix freezes in channellist and bedit
refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances


Origin commit data
------------------
Branch: ni/coolstream
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


------------------
This commit was generated by Migit
2012-11-05 21:26:21 +01:00
Thilo Graf
a5f0e7bd60 CTextBox: trivial change for better readability in initVar()
Origin commit data
------------------
Branch: ni/coolstream
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()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
831e3397a7 CTextBox: add member initFramesAndTextArray(), move max_width into initVar
this combines initFramesRel() and	refreshTextLineArray()


Origin commit data
------------------
Branch: ni/coolstream
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()


------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
c6d5efe614 CTextBox: style, reworked statements for better readability
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
064705f276 CTextBox: remove frameBuffer = NULL
already happens in initVar()


Origin commit data
------------------
Branch: ni/coolstream
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()


------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
be2d3834ef 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
------------------
Branch: ni/coolstream
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


------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
25259790dd 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
------------------
Branch: ni/coolstream
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.


------------------
This commit was generated by Migit
2012-11-05 21:26:20 +01:00
Thilo Graf
e08f50cf85 CTextBox: some small style clean ups for better readability
Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-05 21:26:19 +01:00
Thilo Graf
1058407ecb CTextBox: remove printf
it' makes osd too slow


Origin commit data
------------------
Branch: ni/coolstream
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


------------------
This commit was generated by Migit
2012-11-05 21:26:18 +01:00
Jacek Jendrzej
f35b64432a initialize not initialized var
Origin commit data
------------------
Branch: ni/coolstream
Commit: 926e0ce141
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-05 (Mon, 05 Nov 2012)

Origin message was:
------------------
initialize not initialized var

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-11-05 09:24:51 +01:00
Thilo Graf
7ea4245e91 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
------------------
Branch: ni/coolstream
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()


------------------
This commit was generated by Migit
2012-08-21 09:48:22 +01:00
Thilo Graf
0199babd06 includes: add global.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: d1f22aa20c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-08-15 (Wed, 15 Aug 2012)

Origin message was:
------------------
*includes: add global.h

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-08-21 09:48:22 +01:00
[CST] Focus
623386385b gui/widget/textbox.cpp: fix string access outside of its size
Origin commit data
------------------
Branch: ni/coolstream
Commit: b014b965f4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-10 (Thu, 10 May 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2012-05-10 12:18:11 +04:00
Michael Liebmann
0649921d7e 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
------------------
Branch: ni/coolstream
Commit: b4186edcb8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2011-11-06 (Sun, 06 Nov 2011)



------------------
This commit was generated by Migit
2011-11-05 23:32:53 +00:00
Jacek Jendrzej
c17f47f698 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
------------------
Branch: ni/coolstream
Commit: 8f59cc96ec
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-02-07 (Sun, 07 Feb 2010)



------------------
This commit was generated by Migit
2010-02-07 14:32:21 +00:00
mws
860fc16726 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
------------------
Branch: ni/coolstream
Commit: 6e718d8987
Author: mws <mws@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-23 (Wed, 23 Dec 2009)



------------------
This commit was generated by Migit
2009-12-23 12:08:43 +00:00
mrcolor
bcecfb6585 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
------------------
Branch: ni/coolstream
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)



------------------
This commit was generated by Migit
2009-12-08 11:05:11 +00:00