Commit Graph

22 Commits

Author SHA1 Message Date
Thilo Graf
9d72b086a2 text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled
outside of relevant objects.
2016-01-21 11:00:38 +01: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
Thilo Graf
b47a0ccaeb CComponentsButton: simplify paint of button icon
Calculation of image aspect ratio now happens in picture object itself.
2015-07-17 15:35:47 +02:00
Thilo Graf
47b37d4405 CComponentsButton: disable gradient
Not necessary as long not all or most gui buttons can provide gradient
2015-03-29 22:40:15 +02:00
Thilo Graf
66e5f03c92 CComponentsButton: use unified body colors in gradient mode
Some theme controlled colors don't really looks nice in some
combinations with window backgrounds.
2015-03-29 22:39:54 +02:00
Thilo Graf
04083bc299 CComponentsButton: use of global button text color
Used text color was different to old button handler.
2015-03-29 22:39:52 +02:00
Thilo Graf
706ed0f31f CComponentsButton: add extended properties for button objects
Allows to assign values for events, msg, results. So it is possible
to evaluate/use these properties eg. directly in exec routines.
2014-09-25 11:02:22 +04:00
Thilo Graf
a0492bc530 CComponentsButton: use darker color for Button
COL_LIGHT_GRAY is too garish related to background
2014-05-22 21:50:53 +02:00
Thilo Graf
2c87bb750a CComponentsButton: add class with const char* parameters for icon names 2014-05-22 21:50:47 +02:00
Thilo Graf
2256c83b98 CComponentsButton: reinit button items after changed font type 2014-05-22 21:50:45 +02:00
Thilo Graf
419fc12f2e CComponentsButton: add possibility to change font type, whitespace fixes 2014-05-22 21:50:44 +02:00
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
Thilo Graf
812168416f CComponentsButton: add members to get caption properties 2013-11-11 00:19:48 +01:00
Thilo Graf
989ec25360 CComponentsButton: add constructors with loacalized caption parameter 2013-11-11 00:19:47 +01:00
Thilo Graf
f7798affc6 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.
2013-10-24 21:19:07 +02:00
Thilo Graf
fb3f18b14a CComponentsButton: use empty string as default icon in constructors 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
be8e47fe3f CComponentsButton: add localized button
So it's possible to use locales for button caption.
2013-09-19 08:24:39 +02:00
Thilo Graf
7d82da09ae CComponentsButton: rework position handling for buttons and code comments 2013-06-03 22:12:48 +02:00
Thilo Graf
04afa10e02 CComponents:add sub class CComponentsButton 2013-04-20 12:53:25 +02:00