Thilo Graf
6dd1da0628
revert 6ee7fac1a5
...
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget
2013-10-26 23:25:59 +02:00
Thilo Graf
6ee7fac1a5
CComponents: rename hide() to hideCC()
...
There are too many name conflicts with hide-members in other classes.
2013-10-24 21:39:04 +02:00
Michael Liebmann
ad630c5acb
CComponentsText: Add function getTextLinesAutoHeight()
...
- Function is used for determine the number of lines
in a text box in AUTO_HIGH mode.
Signed-off-by: Thilo Graf <dbt@novatux.de >
2013-10-24 21:19:07 +02:00
Thilo Graf
a1e5a60184
CComponentsText: use separated function to get text fro a file
2013-10-19 01:25:22 +02:00
Thilo Graf
2c3b86baa2
CComponentsText: add missing init in constructor
2013-07-21 22:31:10 +02:00
Thilo Graf
2cffcf53a3
CComponentsText: do also paint text on changed text color
2013-07-21 22:05:07 +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
Thilo Graf
25c40a63dd
CComponentsText: remove delete of CBox() object
...
Obtain of one instance of CBox() should working
just as like a new instance.
2013-07-21 22:02:33 +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
Thilo Graf
940576f0a0
CComponentsText: fix position handling in sub forms
2013-06-16 00:34:07 +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
b318c15895
- cc_frm_header: rework positions/dimensions calculations
2013-05-30 21:51:12 +02:00
Thilo Graf
d39eaa22fc
CComponents: split some header files
...
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture
2013-05-27 09:30:50 +02:00
Thilo Graf
76a2c44014
CComponentsText: force text paint after hide
...
After hide()it was not possible to paint text without forceTextPaint()
and define of ct_old_text in setText() was not enough.
2013-04-28 16:48:11 +02:00
Thilo Graf
9735c670fd
CComponentsText: init CComponentsText without paint of text background
...
This avoids unnecessary render of backgrounds in textboxes. If it does,
so it's possible to enable it subsequently with doPaintTextBoxBg().
2013-04-28 16:48:08 +02:00
Thilo Graf
dfc6e2069e
CComponentsText: paint text only on text change, add members to handle this
...
It can be usefull to hold unchanged text to avoid unnecessary text
paintings. It's also also possible to force paint of text,
use forceTextPaint(). Use textChanged(), to evaluate current text changes.
2013-04-27 22:20:10 +02:00
Thilo Graf
cc63773920
CComponentsText: add bool as return value for setTextFromFile()
2013-04-24 19:56:00 +02:00
Thilo Graf
cdfc544809
CComponentsText: add member to use file as text source
2013-04-24 19:48:39 +02:00
Michael Liebmann
3a19edda45
* CComponentsText: Use 'std::string' instead of 'const char*' for ct_text
2013-04-22 15:41:03 +01:00
Thilo Graf
dc373666e0
CComponentsText: add debug output, changes name of arg in iToString()
2013-04-16 08:26:55 +02:00
Thilo Graf
fb64fb5d35
CComponentsText: add overloaded member setText() for int vars
2013-04-16 08:26:55 +02:00
Thilo Graf
546b04b846
CComponentsText: add helper to convert integer to string
2013-04-16 08:26:54 +02:00
Thilo Graf
3a4543b8d2
CComponentsText: add member to control background paint on textbox objects
2013-04-04 09:56:53 +02:00
Thilo Graf
e23b03fde9
CComponentsText: paint always background before painting text
...
Ensures erase of old text, usefully to avoid often
repaints of embedded textbox objects or text items
2013-04-04 09:56:52 +02:00
Thilo Graf
0dc4686874
fix license text, sorry, was a c&p error
2013-03-21 11:37:00 +01:00
Thilo Graf
eee2cd0d41
CComponentsText: move overloaded setText() from header into main file
2013-03-18 12:04:50 +01:00
Thilo Graf
3ed9af87ad
CComponents: split cc_base.cpp
...
It's easier to work with smaller files.
Most files contain only one cc-class and their names are
derived on the particular class that is contained therein.
2013-03-06 11:28:18 +01:00