Commit Graph

43 Commits

Author SHA1 Message Date
Thilo Graf
f26103cd65 CTextBox: More precise function description
Note: 	In this context i noticed, it seems method getRenderWith()
	in Fontrender class returns wrong values with
	BOLD font types. It would be nice if anybody could
	verify this possible bug. If I see that correctly,
	we should fix this.
2016-12-21 11:08:47 +01:00
Thilo Graf
91c7588aa6 CTextBox: add static function to get largest line of passed text
This could be useful eg. for size calculations.
2016-11-10 11:19:09 +01:00
Thilo Graf
ac8d05f5e1 CTextBox: add static function to get count of lines from passed text
I'm missing a function that returns current line count outside
of a CTextBox object. This could be useful eg. for size calculations
before object init etc
2016-11-10 11:15:43 +01:00
svenhoefer
0b504f8c60 - textbox: add clear() function 2016-10-31 23:06:47 +01:00
svenhoefer
3f28e50c84 - textbox: add member to get background-radius 2016-10-29 10:00:25 +02:00
svenhoefer
104d21e784 - rename customcolor.h -> color_custom.h; reduce unneeded inludes 2016-10-10 14:19:55 +02:00
Thilo Graf
35a08fc5dd CTextBox: add signal handler into scroll methodes 2016-01-17 23:37:31 +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
ccdaacb0a0 CComponentsText: add switch for utf8 disable/enable 2015-07-12 21:08:25 +02:00
Thilo Graf
37c863d141 CTextBox: add switch for utf8 disable/enable 2015-07-12 21:08:25 +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
Thilo Graf
e606484575 CTextBox: add member to get text mode 2014-09-14 00:01:01 +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
Thilo Graf
9bba42a3d9 CBox:remove unused members 2014-05-16 09:08:23 +02:00
Thilo Graf
172383b6bb CTextBox: use member getFontTextHeight() as public 2013-11-11 00:19:47 +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
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
08e23a917c CTextBox: ensure paint of background to avoid overlapped letters 2013-09-19 08:24:40 +02:00
Thilo Graf
a6c43a62bd CComponentsText: try to use an inherited version of CBox class
It's a partial solution to use full functionality for size handling
of CTextBox in CComponentsText.
2013-07-21 22:02:43 +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
2c740f1db8 * CTextBox: rename setFontTextHeight() => getFontTextHeight() 2013-05-04 21:42:10 +02:00
Thilo Graf
a7d8597f05 CTextBox: user CORNER_ALL for corner type parameter to paint text background 2013-04-28 16:48:11 +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
Thilo Graf
e1a586a9b1 CTextBox/CMsgBox: reduce data type conflicts 2013-03-06 11:28:04 +01:00
Thilo Graf
1d6bf7397e CTextBox: add methodes setTextMode() and setBackGroundColor() 2013-03-06 11:28:04 +01:00
Thilo Graf
4007cf4a6d CTextBox: initialize variables in constructor (style) 2013-03-06 11:27:57 +01:00
Thilo Graf
fee315f642 *CTextBox: add option BOTTOM
BOTTOM was missed
2012-11-05 21:26:22 +01:00
Thilo Graf
33e684bc20 *CTextBox: add optional text align TOP 2012-11-05 21:26:21 +01:00
Thilo Graf
c25edc0b74 *CTextbox: add text align option RIGHT
This supports paint of text on the right side of frame and
also considers scroll bar width.
2012-11-05 21:26:21 +01:00
Thilo Graf
07fa858d6c *CTextBox: add missing textmode comments 2012-11-05 21:26:21 +01:00
Thilo Graf
130d7bf6c2 CTextbox: add members setWindowMaxDimensions, setWindowMinDimensions
so we can control max an mnin width and height
2012-11-05 21:26:21 +01:00
Thilo Graf
550300078e *CTextbox: add Member setWindowPos() 2012-11-05 21:26:21 +01:00
Thilo Graf
ed3be21ebd *CTextBox: add member initFramesAndTextArray(), move max_width into initVar
this combines initFramesRel() and	refreshTextLineArray()
2012-11-05 21:26:20 +01:00
Thilo Graf
342fa5f88a *CTextBox/CMsgBox: reduce data type conflicts 2012-11-05 21:26:19 +01:00
Thilo Graf
d2b9429669 *CTextBox: add methodes setTextMode() and setBackGroundColor() 2012-11-05 21:26:19 +01:00
satbaby
926e0ce141 initialize not initialized var 2012-11-05 09:24:51 +01:00
Thilo Graf
39306221b1 *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()
2012-08-21 09:48:22 +01:00
Thilo Graf
d1f22aa20c *includes: add global.h 2012-08-21 09:48:22 +01:00
focus
8ed0fe202a indent
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1969 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-13 16:43:30 +00:00
mrcolor
bc5bd4154e our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-08 11:05:11 +00:00