Jacek Jendrzej
e26ad6e9f1
src/gui/widget/textbox.cpp supplement to try to fix text lines per page
2016-11-03 12:51:31 +01:00
Jacek Jendrzej
d6c4324f6c
src/gui/widget/textbox.cpp try to fix text lines per page
2016-11-03 12:17:11 +01:00
svenhoefer
002277fb5f
- textbox: fix box width in round corners mode
2016-10-28 09:55:40 +02:00
svenhoefer
99a9f8a7e5
- textbox: fix lineBreakWidth calculation
2016-10-27 11:02:18 +02:00
svenhoefer
be9143a511
- textbox: fix round corners/scrollbar handling
2016-10-25 11:06:12 +02:00
svenhoefer
c074f1365f
- 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
svenhoefer
af7643a285
- textbox: use OFFSET defines
2016-10-13 15:12:52 +02:00
vanhofen
6629b64d6c
- colors: add COL_SCROLLBAR_PASSIVE wrapper
2016-10-10 14:19:54 +02:00
vanhofen
7e7d4e5fc1
- colors: add COL_SCROLLBAR_ACTIVE wrapper
2016-10-10 14:19:54 +02:00
Jacek Jendrzej
c9b5470a47
src/gui/widget/textbox.cpp try to fix paint sidebar
2016-08-15 15:49:04 +02:00
Thilo Graf
2dd2fac376
CTextBox: don't paint full background if max text width smaller than bg width
2016-06-26 15:32:28 +02:00
Thilo Graf
8afe4495e7
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: 342de45cc3
2016-02-18 10:42:59 +01:00
Thilo Graf
342de45cc3
CTextBox: don't paint full background if max text width smaller than bg width
2016-02-16 09:39:05 +01:00
Thilo Graf
4d1780486d
CTextBox: fix missing init of old bg color
...
Avoids possible usage of wrong color after init.
2016-02-16 09:39:04 +01:00
Thilo Graf
9d72b086a2
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.
2016-01-21 11:00:38 +01:00
Thilo Graf
35a08fc5dd
CTextBox: add signal handler into scroll methodes
2016-01-17 23:37:31 +01:00
svenhoefer
3d4bb41062
- textbox: allow users setting screen_StartX/Y = 0
2016-01-07 13:18:49 +01:00
Thilo Graf
a2171dad4a
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
638832f535
CTextBox: fix calculated but not used parameter
2015-07-17 17:30:41 +02:00
Thilo Graf
672ae3fdb1
CTextBox: fix calculated but not used parameter
2015-07-17 17:07:14 +02:00
Thilo Graf
4e002bdf66
CTextBox: consider utf8 mode parameter for correct render width, if required
2015-07-17 16:01:20 +02:00
Thilo Graf
37c863d141
CTextBox: add switch for utf8 disable/enable
2015-07-12 21:08:25 +02:00
Thilo Graf
87cbb564a3
CTextBox: ensure save screen only if dimensions are valid
...
0 values are critical
2015-05-04 10:37:03 +02:00
Thilo Graf
459c120060
CTextBox: catching error if position has signed values
...
Wrong position assignments can trigger crash. Prevent segfaults.
Error log should indicate this.
2015-03-29 22:40:15 +02:00
[CST] Focus
72997591a0
gui/widget/textbox.cpp: add flag to control screen save, default is false;
...
disable hide in desctructor
2015-03-06 14:13:59 +03:00
Stefan Seyfried
a85878db2f
CTextBox: fix text position calculation
2015-02-09 13:47:31 +01:00
M. Liebmann
a6487fd951
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
f902c7a1e3
CTextBox: fix return value of getMaxLineWidth()
...
m_nMaxLineWidth was never used
2014-08-26 17:26:55 +04:00
M. Liebmann
1b9037e8e8
CTextBox: Add Flag m_renderMode (Font::FULLBG) for RenderString()
2014-06-29 13:25:32 +02:00
svenhoefer
649d1b1f9d
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
svenhoefer
8b91cda918
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Thilo Graf
e617bab6cf
CTextBox: reinit text variables after evaluated comparison
2013-11-11 00:19:45 +01:00
Thilo Graf
7e91fecc02
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.
2013-11-11 00:19:45 +01:00
Thilo Graf
5c7e926a86
CTextBox: fix repaint of background of textbox on scroll and changed text
...
suplement to ca22cb9241
2013-10-27 14:53:59 +01:00
Michael Liebmann
ca22cb9241
CTextBox: Fix background paint
2013-10-26 18:55:40 +02:00
Michael Liebmann
3d404afc7f
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
adba310c1c
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.
2013-10-24 21:19:06 +02:00
Thilo Graf
302649eca4
CTextBox: ensure restore of background, if pixbuf exists
...
This may prevent undefined behavior or even possible segfaults
2013-10-20 02:54:46 +02:00
Thilo Graf
08e23a917c
CTextBox: ensure paint of background to avoid overlapped letters
2013-09-19 08:24:40 +02:00
Thilo Graf
b7b74ec718
CTextBox: set the correct H/V border
...
Signed-off-by: Thilo Graf <dbt@novatux.de >
2013-07-22 14:14:36 +02:00
Michael Liebmann
c60c5c5ce3
Replace color indexes of the text colors by real color values for RenderString()
...
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +02:00
FlatTV
153d2f3c78
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 >
2013-07-07 14:24:02 +02:00
Michael Liebmann
ba1e514747
CTextBox: Remove workaround for minimally text_border_width
...
- Default value is now 1 in CComponentsText
2013-06-12 01:32:24 +02:00
FlatTV
96da2f95b8
- CComponentsText: add possibility to set a text border
2013-06-06 22:08:46 +02:00
svenhoefer
050df14f8d
- textbox: don't accept boxes with no borderwidth
2013-05-08 00:30:58 +02:00
Michael Liebmann
2c740f1db8
* CTextBox: rename setFontTextHeight() => getFontTextHeight()
2013-05-04 21:42:10 +02:00
Michael Liebmann
fccb07cfc9
* 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
c74fb77603
* CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll
2013-03-21 06:56:23 +01:00
Thilo Graf
4db5c450a4
CTextBox: don't hide if m_nPaintBackground is set to false
...
Required in CCompmonentsText. Hide of textbox object is unnecessary in
CCompmonentsText objects.
2013-03-06 11:28:10 +01:00
micha-bbg
11b2242d2e
* CTextBox: Fix displayed text width in function setText()
2012-11-08 22:37:37 +01:00