Commit Graph

17 Commits

Author SHA1 Message Date
Thilo Graf
7b279ddd33 CComponentsButton: simplify handling of init of buttons with chain class 2014-05-22 21:50:43 +02:00
Thilo Graf
23d7b62cf0 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.
2014-03-03 09:43:39 +01:00
M. Liebmann
c4bff391a5 CComponentsButton: Incrase height for btn font 2014-02-21 00:02:46 +01:00
Thilo Graf
9ac35f0d92 CComponentsButton: reduce scope of variable face_x
The scope of the variable 'face_x' can be reduced. (style)
2013-12-25 19:50:31 +01:00
[CST] Focus
062b10be2a components: remove initVarForm calls in classes derived from CComponentsForm 2013-11-29 17:27:10 +04:00
Thilo Graf
812168416f CComponentsButton: add members to get caption properties 2013-11-11 00:19:48 +01:00
Thilo Graf
a47091872b CComponentsButton: involving of button text for dyn font evaluation 2013-10-16 11:54:06 +02:00
Thilo Graf
c3a3eea0d8 CComponentsButton: use dynamic fonts, remove old font handling 2013-10-16 11:54:04 +02:00
Thilo Graf
19fa5e6418 CComponentsButton: remove function blocks from header 2013-09-20 08:33:06 +02:00
Thilo Graf
33ec56ad6f CComponents: remove member setCornerRadius(),
setCorner() replaces this function, 2nd parameter sets type
2013-09-19 08:24:40 +02:00
Thilo Graf
be8e47fe3f CComponentsButton: add localized button
So it's possible to use locales for button caption.
2013-09-19 08:24:39 +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
Thilo Graf
b18741efc7 CComponentsButton: fix alignment of button items 2013-06-16 00:34:07 +02:00
Thilo Graf
7d82da09ae CComponentsButton: rework position handling for buttons and code comments 2013-06-03 22:12:48 +02:00
Thilo Graf
85b1117f37 CComponentsButton: use adequate arrangement for caption 2013-04-28 16:48:10 +02:00
Thilo Graf
988d1f3ea8 CComponentsHeader/Button: force paint of text 2013-04-28 16:48:10 +02:00
Thilo Graf
04afa10e02 CComponents:add sub class CComponentsButton 2013-04-20 12:53:25 +02:00