Commit Graph

24 Commits

Author SHA1 Message Date
Thilo Graf
e6f6931b72 CComponentsPicture: use current instance of CPictureViewer
reduce precautionary too much unnecessary impact
2014-06-27 20:38:59 +02:00
Thilo Graf
5eb63b9515 CComponentsPicture: structure of class highly simplified
It should  be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.
2014-06-23 18:43:47 +02:00
Thilo Graf
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +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
Thilo Graf
c34f25bb7d CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture() 2014-03-03 08:54:09 +01:00
Thilo Graf
27c6bdccaf CComponentsPicture: fix item position
x/y position was not assigned here for internal pic_x/pic_y vars.
Therefore x/y was ignored.
2014-02-16 19:11:38 +01:00
Thilo Graf
14a3546b5f CComponentsPicture: add debug output for handled item dimensions and pos 2014-02-05 11:56:48 +01:00
Thilo Graf
34fcdec276 CComponentsPicture: rework constructors, clean ups 2014-02-05 11:56:48 +01:00
Thilo Graf
718824015a CComponentsPicture: show paint mode in debug output 2014-02-05 11:56:48 +01:00
Thilo Graf
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
[CST] Focus
93a326e9eb components: remove initVarBasic and initVarItem calls from derived classes 2013-11-29 17:27:10 +04:00
Stefan Seyfried
630c66330d fix format string warnings 2013-11-13 10:38:27 +01:00
Thilo Graf
8ae491a994 CComponents: add property to allow/disallow paint of items
This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().
2013-11-11 00:19:48 +01:00
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
Thilo Graf
992cac1a55 CComponentsPicture: add class CComponentsChannelLogo 2013-10-06 17:14:31 +02:00
Thilo Graf
d88b28445f CComponentsPicture: add member initPosition() 2013-06-16 00:34:06 +02:00
Thilo Graf
4df8d1d088 CComponentsPicture: add member function paintPicture()
compact calling in paint()
2013-06-16 00:34:04 +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
3d35a30ecf CComponentsPicture: add debug output 2013-04-16 08:26:55 +02:00
Michael Liebmann
bd47ef2060 * CComponentsPicture: initVarPicture() not execute if pic_name is blank 2013-04-04 16:10:15 +01:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
061700a5f8 CComponentsPicture: fix build
Build can be broken with other build environments
2013-03-08 08:44:05 +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