Commit Graph

77 Commits

Author SHA1 Message Date
micha-bbg
11b2242d2e * CTextBox: Fix displayed text width in function setText() 2012-11-08 22:37:37 +01:00
Thilo Graf
08e66deb75 CTextBox: remove dub allocation of m_pcFontText 2012-11-08 22:37:18 +01:00
Thilo Graf
94a49e3a51 CTextBox: remove dub var
revert of 6016c60b4c
2012-11-05 22:04:42 +01:00
Thilo Graf
6016c60b4c CTextBox: fix build
merge error, max_width is not declared
2012-11-05 21:26:22 +01:00
Thilo Graf
474a35a254 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.
2012-11-05 21:26:22 +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
c9472dc3f3 *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.
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
1244af4666 *CTextBox: fix freezes in channellist and bedit
refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances
2012-11-05 21:26:21 +01:00
Thilo Graf
a7bdf41dfe *CTextBox: trivial change for better readability in initVar() 2012-11-05 21:26:20 +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
57cb8cc3e0 *CTextBox: style, reworked statements for better readability 2012-11-05 21:26:20 +01:00
Thilo Graf
ad72c62471 *CTextBox: remove frameBuffer = NULL
already happens in initVar()
2012-11-05 21:26:20 +01:00
Thilo Graf
d7dc44146c *CTextBox: add missed init of lineBreakWidth
lineBreakWidth is not initialized, but some othe values also not defined,
here is seems somthing wrong
2012-11-05 21:26:20 +01:00
Thilo Graf
55896356f1 *CTextBox: move framebuffer define only into initVar
framebuffer = NULL was called in all constructors,
so it should be enough to define this only at one point.
2012-11-05 21:26:20 +01:00
Thilo Graf
323393548d *CTextBox: some small style clean ups for better readability 2012-11-05 21:26:19 +01:00
Thilo Graf
69c22d1594 *CTextBox: remove printf
it' makes osd too slow
2012-11-05 21:26:18 +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
[CST] Focus
b014b965f4 gui/widget/textbox.cpp: fix string access outside of its size 2012-05-10 12:18:11 +04:00
micha-bbg
b4186edcb8 Prevents division by zero.
- In particular text box dimensions was a division by zero.


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1831 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-11-05 23:32:53 +00:00
satbaby
8f59cc96ec change 'long long' tom int64_t'; change variable buf to new delete;
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@291 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-07 14:32:21 +00:00
mws
6e718d8987 fix shadow stuff and initializers....
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@118 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-23 12:08:43 +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