Commit Graph

74 Commits

Author SHA1 Message Date
vanhofen
96a73691a7 textbox: fix box width in round corners mode
Origin commit data
------------------
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
2016-10-28 09:55:40 +02:00
vanhofen
1a89ed0d87 textbox: fix lineBreakWidth calculation
Origin commit data
------------------
Commit: 99a9f8a7e5
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)

Origin message was:
------------------
- textbox: fix lineBreakWidth calculation
2016-10-27 11:02:18 +02:00
vanhofen
39f362b0c0 textbox: fix round corners/scrollbar handling
Origin commit data
------------------
Commit: be9143a511
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-25 (Tue, 25 Oct 2016)

Origin message was:
------------------
- textbox: fix round corners/scrollbar handling
2016-10-25 11:06:12 +02:00
vanhofen
e8116e109d 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
------------------
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.
2016-10-13 19:07:22 +02:00
vanhofen
97b2f257b9 textbox: use OFFSET defines
Origin commit data
------------------
Commit: af7643a285
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-13 (Thu, 13 Oct 2016)

Origin message was:
------------------
- textbox: use OFFSET defines
2016-10-13 15:12:52 +02:00
vanhofen
af3e39a47d colors: add COL_SCROLLBAR_PASSIVE wrapper
Origin commit data
------------------
Commit: 6629b64d6c
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_PASSIVE wrapper
2016-10-10 14:19:54 +02:00
vanhofen
4b3b25ca7a colors: add COL_SCROLLBAR_ACTIVE wrapper
Origin commit data
------------------
Commit: 7e7d4e5fc1
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_ACTIVE wrapper
2016-10-10 14:19:54 +02:00
Jacek Jendrzej
95b3a4c88c src/gui/widget/textbox.cpp try to fix paint sidebar
Origin commit data
------------------
Commit: c9b5470a47
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-08-15 (Mon, 15 Aug 2016)
2016-08-15 15:49:04 +02:00
Thilo Graf
1cc131bce9 CTextBox: don't paint full background if max text width smaller than bg width
Origin commit data
------------------
Commit: 2dd2fac376
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-10 (Wed, 10 Feb 2016)
2016-06-26 15:32:28 +02:00
Thilo Graf
54af246f08 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: 47b4ea481c


Origin commit data
------------------
Commit: 8afe4495e7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-18 (Thu, 18 Feb 2016)
2016-02-18 10:42:59 +01:00
Thilo Graf
47b4ea481c CTextBox: don't paint full background if max text width smaller than bg width
Origin commit data
------------------
Commit: 342de45cc3
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-10 (Wed, 10 Feb 2016)
2016-02-16 09:39:05 +01:00
Thilo Graf
a50e93a532 CTextBox: fix missing init of old bg color
Avoids possible usage of wrong color after init.


Origin commit data
------------------
Commit: 4d1780486d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-02 (Tue, 02 Feb 2016)
2016-02-16 09:39:04 +01:00
Thilo Graf
e4fbc51887 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
------------------
Commit: 9d72b086a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-21 (Thu, 21 Jan 2016)
2016-01-21 11:00:38 +01:00
Thilo Graf
bbeb88d18f CTextBox: add signal handler into scroll methodes
Origin commit data
------------------
Commit: 35a08fc5dd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-17 (Sun, 17 Jan 2016)
2016-01-17 23:37:31 +01:00
vanhofen
5114926343 textbox: allow users setting screen_StartX/Y = 0
Origin commit data
------------------
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
2016-01-07 13:18:49 +01:00
Thilo Graf
d5ce36ab27 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
------------------
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
2015-12-27 14:42:26 +01:00
Thilo Graf
323357fcb1 CTextBox: fix calculated but not used parameter
Origin commit data
------------------
Commit: 638832f535
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-17 (Fri, 17 Jul 2015)
2015-07-17 17:30:41 +02:00
Thilo Graf
6ca27a836d CTextBox: fix calculated but not used parameter
Origin commit data
------------------
Commit: 672ae3fdb1
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-17 (Fri, 17 Jul 2015)
2015-07-17 17:07:14 +02:00
Thilo Graf
81935b504c CTextBox: consider utf8 mode parameter for correct render width, if required
Origin commit data
------------------
Commit: 4e002bdf66
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-13 (Mon, 13 Jul 2015)
2015-07-17 16:01:20 +02:00
Thilo Graf
c86b9a47f9 CTextBox: add switch for utf8 disable/enable
Origin commit data
------------------
Commit: 37c863d141
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-12 (Sun, 12 Jul 2015)
2015-07-12 21:08:25 +02:00
Thilo Graf
1204dc95f7 CTextBox: ensure save screen only if dimensions are valid
0 values are critical


Origin commit data
------------------
Commit: 87cbb564a3
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-13 (Mon, 13 Apr 2015)
2015-05-04 10:37:03 +02:00
Thilo Graf
b871f66399 CTextBox: catching error if position has signed values
Wrong position assignments can trigger crash. Prevent segfaults.
Error log should indicate this.


Origin commit data
------------------
Commit: 459c120060
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-19 (Thu, 19 Mar 2015)
2015-03-29 22:40:15 +02:00
[CST] Focus
8a1f71604a gui/widget/textbox.cpp: add flag to control screen save, default is false;
disable hide in desctructor


Origin commit data
------------------
Commit: 72997591a0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)
2015-03-06 14:13:59 +03:00
Stefan Seyfried
ca332cefa8 CTextBox: fix text position calculation
Origin commit data
------------------
Commit: a85878db2f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-01 (Sun, 01 Feb 2015)
2015-02-09 13:47:31 +01:00
Michael Liebmann
ac834e963b 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
------------------
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.
2014-10-16 17:14:04 +02:00
Thilo Graf
fec91793d8 CTextBox: fix return value of getMaxLineWidth()
m_nMaxLineWidth was never used


Origin commit data
------------------
Commit: f902c7a1e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-03 (Sun, 03 Aug 2014)
2014-08-26 17:26:55 +04:00
Michael Liebmann
7135b7649d CTextBox: Add Flag m_renderMode (Font::FULLBG) for RenderString()
Origin commit data
------------------
Commit: 1b9037e8e8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-06-27 (Fri, 27 Jun 2014)
2014-06-29 13:25:32 +02:00
vanhofen
98c0a441d8 change RenderString() default to UTF8
Origin commit data
------------------
Commit: 649d1b1f9d
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
vanhofen
3bba3094e2 change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Thilo Graf
a610226223 CTextBox: reinit text variables after evaluated comparison
Origin commit data
------------------
Commit: e617bab6cf
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-01 (Fri, 01 Nov 2013)
2013-11-11 00:19:45 +01:00
Thilo Graf
c59a486f11 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
------------------
Commit: 7e91fecc02
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-31 (Thu, 31 Oct 2013)
2013-11-11 00:19:45 +01:00
Thilo Graf
81a24f8717 CTextBox: fix repaint of background of textbox on scroll and changed text
suplement to c3ecec9612


Origin commit data
------------------
Commit: 5c7e926a86
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-27 (Sun, 27 Oct 2013)
2013-10-27 14:53:59 +01:00
Michael Liebmann
c3ecec9612 CTextBox: Fix background paint
Origin commit data
------------------
Commit: ca22cb9241
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-26 (Sat, 26 Oct 2013)
2013-10-26 18:55:40 +02:00
Michael Liebmann
1e6c8d4420 CTextBox: Add function getLinesPerPage()
- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
 auto linebreak without '-' and '.' char


Origin commit data
------------------
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
2013-10-24 21:19:06 +02:00
Thilo Graf
be503ea748 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
------------------
Commit: adba310c1c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-21 (Mon, 21 Oct 2013)
2013-10-24 21:19:06 +02:00
Thilo Graf
0dfb948ffa CTextBox: ensure restore of background, if pixbuf exists
This may prevent undefined behavior or even possible segfaults


Origin commit data
------------------
Commit: 302649eca4
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-20 (Sun, 20 Oct 2013)
2013-10-20 02:54:46 +02:00
Thilo Graf
b7ea3c3f76 CTextBox: ensure paint of background to avoid overlapped letters
Origin commit data
------------------
Commit: 08e23a917c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-16 (Mon, 16 Sep 2013)
2013-09-19 08:24:40 +02:00
Thilo Graf
a64d514c4b CTextBox: set the correct H/V border
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: b7b74ec718
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-07-22 (Mon, 22 Jul 2013)
2013-07-22 14:14:36 +02:00
Michael Liebmann
7b6498d39f 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
------------------
Commit: c60c5c5ce3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-11 (Thu, 11 Jul 2013)
2013-07-21 22:00:58 +02:00
FlatTV
43a759358d 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
------------------
Commit: 153d2f3c78
Author: FlatTV <FlatTV@gmx.de>
Date: 2013-07-01 (Mon, 01 Jul 2013)
2013-07-07 14:24:02 +02:00
Michael Liebmann
09355f643a CTextBox: Remove workaround for minimally text_border_width
- Default value is now 1 in CComponentsText


Origin commit data
------------------
Commit: ba1e514747
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-12 (Wed, 12 Jun 2013)
2013-06-12 01:32:24 +02:00
FlatTV
6b933134f1 CComponentsText: add possibility to set a text border
Origin commit data
------------------
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
2013-06-06 22:08:46 +02:00
vanhofen
02b25f13d5 textbox: don't accept boxes with no borderwidth
Origin commit data
------------------
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
2013-05-08 00:30:58 +02:00
Michael Liebmann
8ed53286e8 CTextBox: rename setFontTextHeight() => getFontTextHeight()
Origin commit data
------------------
Commit: 2c740f1db8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-01 (Wed, 01 May 2013)

Origin message was:
------------------
* CTextBox: rename setFontTextHeight() => getFontTextHeight()
2013-05-04 21:42:10 +02:00
Michael Liebmann
b8a04490f4 CTextBox: When using only digits to display:
- Use for calculating digit height
 font->getDigitHeight() / font->getDigitOffset()


Origin commit data
------------------
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()
2013-04-28 16:48:09 +02:00
Michael Liebmann
89fd7346b3 CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll
Origin commit data
------------------
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
2013-03-21 06:56:23 +01:00
Thilo Graf
f49d09b904 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
------------------
Commit: 4db5c450a4
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)
2013-03-06 11:28:10 +01:00
Michael Liebmann
0d8f3b2549 CTextBox: Fix displayed text width in function setText()
Origin commit data
------------------
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()
2012-11-08 22:37:37 +01:00
Thilo Graf
5345b55a58 CTextBox: remove dub allocation of m_pcFontText
Origin commit data
------------------
Commit: 08e66deb75
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-07 (Wed, 07 Nov 2012)
2012-11-08 22:37:18 +01:00
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