Commit Graph

78 Commits

Author SHA1 Message Date
Jacek Jendrzej
d806d6ae7d Revert "src/gui/widget/textbox.cpp try to fix text lines per page"
This reverts commit 3a2876ce22.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2907aa5a37
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-11-03 (Thu, 03 Nov 2016)



------------------
This commit was generated by Migit
2016-11-03 18:38:41 +01:00
Jacek Jendrzej
3e32c17062 Revert "src/gui/widget/textbox.cpp supplement to try to fix text lines per page"
This reverts commit be4173bff6.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 3815694e39
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-11-03 (Thu, 03 Nov 2016)



------------------
This commit was generated by Migit
2016-11-03 18:38:14 +01:00
Jacek Jendrzej
be4173bff6 src/gui/widget/textbox.cpp supplement to try to fix text lines per page
Origin commit data
------------------
Branch: ni/coolstream
Commit: e26ad6e9f1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-11-03 (Thu, 03 Nov 2016)


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

------------------
This commit was generated by Migit
2016-11-03 12:51:31 +01:00
Jacek Jendrzej
3a2876ce22 src/gui/widget/textbox.cpp try to fix text lines per page
Origin commit data
------------------
Branch: ni/coolstream
Commit: d6c4324f6c
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-11-03 (Thu, 03 Nov 2016)


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

------------------
This commit was generated by Migit
2016-11-03 12:17:11 +01:00
vanhofen
4b91651de8 textbox: fix box width in round corners mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 002277fb5f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-28 (Fri, 28 Oct 2016)

Origin message was:
------------------
- textbox: fix box width in round corners mode

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

------------------
This commit was generated by Migit
2016-10-28 09:55:40 +02:00
vanhofen
eb3486ed02 textbox: fix lineBreakWidth calculation
Origin commit data
------------------
Branch: ni/coolstream
Commit: 99a9f8a7e5
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)

Origin message was:
------------------
- textbox: fix lineBreakWidth calculation

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

------------------
This commit was generated by Migit
2016-10-27 11:02:18 +02:00
vanhofen
5253431990 textbox: fix round corners/scrollbar handling
Origin commit data
------------------
Branch: ni/coolstream
Commit: be9143a511
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-25 (Tue, 25 Oct 2016)

Origin message was:
------------------
- textbox: fix round corners/scrollbar handling

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

------------------
This commit was generated by Migit
2016-10-25 11:06:12 +02:00
vanhofen
98b46be6b4 textbox: fix text position in mode CENTER and mode RIGHT; ...
and add VISUAL_DEBUG define. That paints beautiful colored boxes
to see what's going on.


Origin commit data
------------------
Branch: ni/coolstream
Commit: c074f1365f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-13 (Thu, 13 Oct 2016)

Origin message was:
------------------
- textbox: fix text position in mode CENTER and mode RIGHT; ...

and add VISUAL_DEBUG define. That paints beautiful colored boxes
to see what's going on.


------------------
This commit was generated by Migit
2016-10-13 19:07:22 +02:00
vanhofen
9c4c93456a textbox: use OFFSET defines
Origin commit data
------------------
Branch: ni/coolstream
Commit: af7643a285
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-13 (Thu, 13 Oct 2016)

Origin message was:
------------------
- textbox: use OFFSET defines

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

------------------
This commit was generated by Migit
2016-10-13 15:12:52 +02:00
vanhofen
7f19812d17 colors: add COL_SCROLLBAR_PASSIVE wrapper
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6629b64d6c
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_PASSIVE wrapper

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

------------------
This commit was generated by Migit
2016-10-10 14:19:54 +02:00
vanhofen
e13c700904 colors: add COL_SCROLLBAR_ACTIVE wrapper
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e7d4e5fc1
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_ACTIVE wrapper

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

------------------
This commit was generated by Migit
2016-10-10 14:19:54 +02:00
Jacek Jendrzej
371b741ef7 src/gui/widget/textbox.cpp try to fix paint sidebar
Origin commit data
------------------
Branch: ni/coolstream
Commit: c9b5470a47
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-08-15 (Mon, 15 Aug 2016)


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

------------------
This commit was generated by Migit
2016-08-15 15:49:04 +02:00
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