Commit Graph

5 Commits

Author SHA1 Message Date
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
Thilo Graf
72cb72695f CComponentsSlider: fix vertical arrangement for slider body
Centering was broken.
2014-01-12 13:57:11 +01:00
Thilo Graf
2ca246a30d CComponentsSlider: fix debug output 2014-01-12 13:57:10 +01:00
Thilo Graf
0079782696 CComponentsSlider: fix possible null pointer dereference
csl_body_obj, csl_slider_obj,
otherwise it is redundant to check it against null.
2013-12-25 19:50:31 +01:00
Thilo Graf
28e344d600 CComponents: add new class CComponentsSlider()
Provides a slider item
2013-12-23 23:55:43 +01:00