Commit Graph

43 Commits

Author SHA1 Message Date
Thilo Graf
c88a6ff7b3 cc: rework color handling for select and focus status 2020-12-07 20:33:52 +01:00
Thilo Graf
32b52a9c96 cc_item_infobxox: reset pic and cctext in destructor for sure 2020-01-05 21:17:59 +01:00
Thilo Graf
baff642993 cc_item_infobox: add signal OnAfterPaintInfo 2019-12-30 16:32:11 +01:00
Thilo Graf
d86dcd36a7 components: use const bool& parameter in paint methodes 2019-10-27 16:24:47 +01:00
Thilo Graf
fb5c943db4 cc: expand cc-type with name
Required for internal operations where it is useful to have object
names and for better debugging.
2017-12-30 22:58:15 +01:00
Thilo Graf
2a2d51d255 CComponentsInfoBox: add possibility for scalable picons 2017-12-10 22:03:41 +01:00
Thilo Graf
0a7f7ab5a6 CProgressBar/CComponentsInfoBox: add missing value inits 2017-06-15 01:01:54 +02:00
Thilo Graf
9e2c5cb939 CComponentsInfoBox: fix image y pos
Image was not centered, because of frame was not considered.
2017-06-15 01:01:54 +02:00
Thilo Graf
18695fb0c9 CComponentsInfoBox: ensure matching object height after assigned image
Images are not defined with constructor, so it is possible we must
consider the image height after called setPicture() methode.
This is important if an infobox sould be
added into a cc form object. This avoids overlapping of dynamic added items.
2016-11-05 21:17:31 +01:00
Thilo Graf
90a693a1ec CComponentsInfoBox: fix missing calculation of image position with parent 2016-11-04 23:56:29 +01:00
svenhoefer
e8e237df40 - cc_item_infobox: user OFFSET defines; fix width of textbox 2016-10-13 19:03:38 +02:00
Thilo Graf
3d3b724457 CComponentsInfoBox: use framed infobox as default 2016-04-07 17:27:31 +02:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
[CST] Focus
7016a86ca2 CComponentsInfoBox: add switch to enable gradient for info box
Signed-off-by: Thilo Graf <dbt@novatux.de>
2015-04-27 09:54:45 +02:00
Thilo Graf
a9c474e486 CComponentsInfoBox: fix scale height for larger picons 2015-03-29 22:40:12 +02:00
Thilo Graf
592b0025d9 CComponentsInfoBox: remove unnecessary call for kill()
partial revert of:  CComponentsInfoBox: fix centering of image
2015-03-29 22:40:11 +02:00
Thilo Graf
ebc9d28e0e CComponentsInfoBox: fix centering of image 2015-03-29 22:40:07 +02:00
Thilo Graf
782c958bde CComponentsInfoBox: fix applying of properties
Some properties were not applied if cctext was already exists, eg. after
changed theme
2015-03-29 22:39:52 +02:00
[CST] Focus
59aca86523 gui/components/cc_item_infobox.cpp: set CTextBox save screen flag 2015-03-06 14:14:00 +03:00
Jacek Jendrzej
2b5e7b5ba3 use empty to check string 2015-01-09 17:15:11 +01:00
Thilo Graf
18bc87592b Revert "gui/components/cc_item_infobox.cpp: enable gradient on request"
This reverts commit b1c31fadd1.

Gradient features are intended for theme related implementations.
It's not ripe at the moment.
2015-01-03 19:18:36 +01:00
[CST] Focus
b1c31fadd1 gui/components/cc_item_infobox.cpp: enable gradient on request 2015-01-02 15:16:51 +03:00
Thilo Graf
4b73121eef CComponentsInfoBox: small cleanup 2014-10-08 14:14:33 +04: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
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
[CST] Focus
dd7c7fc7ae components: cleanup destructors - remove calls to functions,
already called inside base classes destructors
2013-11-29 17:27:10 +04:00
[CST] Focus
1378ef4ad0 gui/components/cc_item_infobox.cpp: fix memleak:
CComponentsInfoBox ctor -> CComponentsText ctor -> initCCText(), initVarInfobox() -> initVarText() ->
created ct_textbox = NULL, pointer lost;
comment calls in CComponentsInfoBox dtor, which already called from base CComponentsText dtor
2013-11-29 17:27:10 +04: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
04300f1874 CComponents: rework position handling
The real position already used here, if item is bound to a parent.
(bound or embedded means: added with addCCItem() to a form)
This causes no separate calculation in paint methodes of embedded
sub items or sub forms and more nested sub forms.

CComponentsForm have also some new members
- exchangeCCItem() to exchange the order items
- setAppendOffset() to set an offset for auto append mode
  Autoappend is enabled if x or y have value -1 (defined also in CC_APPEND)
  x=horizontal, y=vertical
  Is this activated, no separate calculation of incremental offset
  is required.

However items with independent rendered parts, needs
a separate calculation. In some subclasses was this necessary.
2013-06-16 00:34:06 +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
cadb66e225 CComponentsInfoBox: add missing define for text color 2013-04-27 22:20:10 +02:00
Thilo Graf
f774eb833f CComponentsInfoBox: replace static parameter with inherited member
member value was not looped through
2013-04-27 22:16:15 +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
d7ce847471 CComponentsInfoBox: move statement for check of image name
Ensure empty pic object otherwise it can be retained on exit
of paintPicture(), if an instance of Infobox already exists.

supplement to 095c0e1b04
2013-04-06 08:49:16 +02:00
Michael Liebmann
095c0e1b04 * CComponentsInfoBox: CComponentsPicture not create when no image to draw 2013-04-04 16:10:15 +01:00
Thilo Graf
4e7f81a126 CComponentsInfoBox: prevent background paint in infobox
Background for text is not needed here
2013-04-04 09:56:53 +02:00
Thilo Graf
9af63bdc72 CComponentsInfoBox: ensure new init of picture
Delete causes a clean background because it is possible that remnants are
left after changed font size.
2013-03-25 20:23:35 +01:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
0fa2bbc7c9 CComponentsInfoBox: delete clean textbox object before create new object
Ensures a clean environment for changed properties of a textbox in infobox.
2013-03-19 08:10:49 +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