Commit Graph

66 Commits

Author SHA1 Message Date
Thilo Graf
fdd6e59bfb CTextBox: don't paint full background if max text width smaller than bg width
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2dd2fac376
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-10 (Wed, 10 Feb 2016)


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

------------------
This commit was generated by Migit
2016-06-26 15:32:28 +02:00
Thilo Graf
d9d6f78eb0 CTextBox: remove statement for text change check
Check of text change is not enough. Scrollboxes could have some problems.
Dimension changes must be considered too and this is to much effort at
the moment. Use of OnAfterScrollPage is much easier.

this reverts: 0f5a8dda05


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8afe4495e7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-18 (Thu, 18 Feb 2016)



------------------
This commit was generated by Migit
2016-02-18 10:42:59 +01:00
Thilo Graf
0f5a8dda05 CTextBox: don't paint full background if max text width smaller than bg width
Origin commit data
------------------
Branch: ni/coolstream
Commit: 342de45cc3
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-10 (Wed, 10 Feb 2016)


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

------------------
This commit was generated by Migit
2016-02-16 09:39:05 +01:00
Thilo Graf
a82bf3d053 CTextBox: fix missing init of old bg color
Avoids possible usage of wrong color after init.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d1780486d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-02 (Tue, 02 Feb 2016)



------------------
This commit was generated by Migit
2016-02-16 09:39:04 +01:00
Thilo Graf
a9aa78ca3e text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled
outside of relevant objects.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9d72b086a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-21 (Thu, 21 Jan 2016)



------------------
This commit was generated by Migit
2016-01-21 11:00:38 +01:00
Thilo Graf
efa2c78985 CTextBox: add signal handler into scroll methodes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 35a08fc5dd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-17 (Sun, 17 Jan 2016)


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

------------------
This commit was generated by Migit
2016-01-17 23:37:31 +01:00
vanhofen
39c5f26b48 textbox: allow users setting screen_StartX/Y = 0
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3d4bb41062
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-01-07 (Thu, 07 Jan 2016)

Origin message was:
------------------
- textbox: allow users setting screen_StartX/Y = 0

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

------------------
This commit was generated by Migit
2016-01-07 13:18:49 +01:00
Thilo Graf
34651cb704 CTextBox: add/modify methodes for screen handlings
- split hasChanged() into hasChangedPos(), hasChangedDim()
- add return value bool to enableBackgroundPaint(), enableSaveScreen()
- add clearScreenBuffer(), for unified usage in destructor and functions
- add OnAfterRefresh() as a signal/slot handler, this allows to use
 external methodes as callbacks after painted text


Origin commit data
------------------
Branch: ni/coolstream
Commit: a2171dad4a
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
CTextBox: add/modify methodes for screen handlings

- split hasChanged() into hasChangedPos(), hasChangedDim()
- add return value bool to enableBackgroundPaint(), enableSaveScreen()
- add clearScreenBuffer(), for unified usage in destructor and functions
- add OnAfterRefresh() as a signal/slot handler, this allows to use
 external methodes as callbacks after painted text


------------------
This commit was generated by Migit
2015-12-27 14:42:26 +01:00
Thilo Graf
01ae9712ba CTextBox: fix calculated but not used parameter
Origin commit data
------------------
Branch: ni/coolstream
Commit: 638832f535
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-17 (Fri, 17 Jul 2015)


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

------------------
This commit was generated by Migit
2015-07-17 17:30:41 +02:00
Thilo Graf
7180812009 CTextBox: fix calculated but not used parameter
Origin commit data
------------------
Branch: ni/coolstream
Commit: 672ae3fdb1
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-17 (Fri, 17 Jul 2015)


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

------------------
This commit was generated by Migit
2015-07-17 17:07:14 +02:00
Thilo Graf
a82590f564 CTextBox: consider utf8 mode parameter for correct render width, if required
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4e002bdf66
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-13 (Mon, 13 Jul 2015)


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

------------------
This commit was generated by Migit
2015-07-17 16:01:20 +02:00
Thilo Graf
360105e76e CTextBox: add switch for utf8 disable/enable
Origin commit data
------------------
Branch: ni/coolstream
Commit: 37c863d141
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-12 (Sun, 12 Jul 2015)


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

------------------
This commit was generated by Migit
2015-07-12 21:08:25 +02:00
Thilo Graf
17849bd3a5 CTextBox: ensure save screen only if dimensions are valid
0 values are critical


Origin commit data
------------------
Branch: ni/coolstream
Commit: 87cbb564a3
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-13 (Mon, 13 Apr 2015)



------------------
This commit was generated by Migit
2015-05-04 10:37:03 +02:00
Thilo Graf
3322a8e707 CTextBox: catching error if position has signed values
Wrong position assignments can trigger crash. Prevent segfaults.
Error log should indicate this.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 459c120060
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-19 (Thu, 19 Mar 2015)



------------------
This commit was generated by Migit
2015-03-29 22:40:15 +02:00
[CST] Focus
b51fecc3eb gui/widget/textbox.cpp: add flag to control screen save, default is false;
disable hide in desctructor


Origin commit data
------------------
Branch: ni/coolstream
Commit: 72997591a0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)



------------------
This commit was generated by Migit
2015-03-06 14:13:59 +03:00
Stefan Seyfried
f9031070d5 CTextBox: fix text position calculation
Origin commit data
------------------
Branch: ni/coolstream
Commit: a85878db2f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-01 (Sun, 01 Feb 2015)


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

------------------
This commit was generated by Migit
2015-02-09 13:47:31 +01:00
Michael Liebmann
11e276ebab 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: a6487fd951
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-10-16 (Thu, 16 Oct 2014)

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


------------------
This commit was generated by Migit
2014-10-16 17:14:04 +02:00
Thilo Graf
01b2ed34e6 CTextBox: fix return value of getMaxLineWidth()
m_nMaxLineWidth was never used


Origin commit data
------------------
Branch: ni/coolstream
Commit: f902c7a1e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-03 (Sun, 03 Aug 2014)



------------------
This commit was generated by Migit
2014-08-26 17:26:55 +04:00
Michael Liebmann
0c2f834e3e CTextBox: Add Flag m_renderMode (Font::FULLBG) for RenderString()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1b9037e8e8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-06-27 (Fri, 27 Jun 2014)


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

------------------
This commit was generated by Migit
2014-06-29 13:25:32 +02:00
vanhofen
4f9e0ee544 change RenderString() default to UTF8
Origin commit data
------------------
Branch: ni/coolstream
Commit: 649d1b1f9d
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change RenderString() default to UTF8

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

------------------
This commit was generated by Migit
2014-06-11 23:07:13 +02:00
vanhofen
108a1c1b93 change getRenderWidth() default to UTF8
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8

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

------------------
This commit was generated by Migit
2014-06-11 23:07:00 +02:00
Thilo Graf
b23038cd25 CTextBox: reinit text variables after evaluated comparison
Origin commit data
------------------
Branch: ni/coolstream
Commit: e617bab6cf
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-01 (Fri, 01 Nov 2013)


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

------------------
This commit was generated by Migit
2013-11-11 00:19:45 +01:00
Thilo Graf
4da04e868e 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e91fecc02
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-31 (Thu, 31 Oct 2013)



------------------
This commit was generated by Migit
2013-11-11 00:19:45 +01:00
Thilo Graf
1878bd9b21 CTextBox: fix repaint of background of textbox on scroll and changed text
suplement to 4a929211c9


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c7e926a86
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-27 (Sun, 27 Oct 2013)



------------------
This commit was generated by Migit
2013-10-27 14:53:59 +01:00
Michael Liebmann
4a929211c9 CTextBox: Fix background paint
Origin commit data
------------------
Branch: ni/coolstream
Commit: ca22cb9241
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-26 (Sat, 26 Oct 2013)


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

------------------
This commit was generated by Migit
2013-10-26 18:55:40 +02:00
Michael Liebmann
043c242d44 CTextBox: Add function getLinesPerPage()
- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
 auto linebreak without '-' and '.' char


Origin commit data
------------------
Branch: ni/coolstream
Commit: 3d404afc7f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-18 (Fri, 18 Oct 2013)

Origin message was:
------------------
CTextBox: Add function getLinesPerPage()

- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
 auto linebreak without '-' and '.' char


------------------
This commit was generated by Migit
2013-10-24 21:19:06 +02:00
Thilo Graf
b7373ffdc4 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: adba310c1c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-21 (Mon, 21 Oct 2013)



------------------
This commit was generated by Migit
2013-10-24 21:19:06 +02:00
Thilo Graf
dc3de6babe CTextBox: ensure restore of background, if pixbuf exists
This may prevent undefined behavior or even possible segfaults


Origin commit data
------------------
Branch: ni/coolstream
Commit: 302649eca4
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-20 (Sun, 20 Oct 2013)



------------------
This commit was generated by Migit
2013-10-20 02:54:46 +02:00
Thilo Graf
2781da8b77 CTextBox: ensure paint of background to avoid overlapped letters
Origin commit data
------------------
Branch: ni/coolstream
Commit: 08e23a917c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-16 (Mon, 16 Sep 2013)


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

------------------
This commit was generated by Migit
2013-09-19 08:24:40 +02:00
Thilo Graf
f48b1a2ff4 CTextBox: set the correct H/V border
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: b7b74ec718
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-07-22 (Mon, 22 Jul 2013)



------------------
This commit was generated by Migit
2013-07-22 14:14:36 +02:00
Michael Liebmann
221b6ee8b4 Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values


Origin commit data
------------------
Branch: ni/coolstream
Commit: c60c5c5ce3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-11 (Thu, 11 Jul 2013)



------------------
This commit was generated by Migit
2013-07-21 22:00:58 +02:00
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