Commit Graph

28 Commits

Author SHA1 Message Date
Thilo Graf
d42389b167 CProgressBarCache: remove benchmark lines
Was only for debugging.
2017-08-28 12:16:45 +02:00
Thilo Graf
5573d17cce CProgressBarCache: ensure clean iterator inside pbcClear()
For safety only.
2017-06-15 01:01:54 +02:00
Thilo Graf
0a7f7ab5a6 CProgressBar/CComponentsInfoBox: add missing value inits 2017-06-15 01:01:54 +02:00
Thilo Graf
88e0479429 CProgressBarCache: declare funtions pbcPaint(), pbcPaintBoxRel() as const
Technically these members can be const.
2017-05-29 22:26:06 +02:00
Jacek Jendrzej
f045fb18e9 src/gui/components/cc_item_progressbar.cpp revert static 2017-01-30 19:26:44 +01:00
Jacek Jendrzej
0056a53321 some inits 2017-01-30 19:04:17 +01:00
svenhoefer
888bfb6687 - themes: allow progressbar-settings in themes 2016-12-29 00:47:34 +01:00
Jacek Jendrzej
1e38d90b23 src/gui/components/cc_item_progressbar.cpp fix possible memleak 2016-04-15 20:58:04 +02:00
Thilo Graf
33089b9bc0 CProgressBar: ensure also repaint of progressbar if item is not painted 2016-02-16 09:39:05 +01:00
Stefan Seyfried
fa05d6a415 fix debug output printf type warnings 2016-01-14 22:28:59 +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
a29b8e7982 CProgressBar: remove unused include 2015-05-04 10:37:03 +02:00
Thilo Graf
9c85491974 CProgressBarCache: fix compiler warnings wconversion 2015-03-29 22:40:06 +02:00
Thilo Graf
663c7deef2 CProgressBar: add missing assign of 'allow paint' property
Property had no effect.
2015-03-29 22:39:58 +02:00
[CST] Focus
f75fadd29c gui/components/cc_item_progressbar.cpp: limit pb_value to max value 2014-10-10 15:26:32 +04:00
[CST] Focus
416646bbff merge neutrino-mp progressbar code, (C) martii 2014-07-17 17:02:37 +04: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
[CST] Focus
1e5e36b7c8 cc_item_progressbar.cpp: fix attempt to draw box with width=0 2013-11-29 17:27:10 +04:00
[CST] Focus
9897b9045c cc_item_progressbar.cpp: for advanced paint, replace paintShapes with paintBoxRel:
too much overhead to replace single paintBoxRel call
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
eee3b5d78e CProgressBar: remove comment 2013-08-30 22:14:35 +02:00
Thilo Graf
71423089b0 CZapitChannel: use unsigned char instead size_t
This removes some annoying warnings with specific compiler flags.
2013-07-21 22:03:27 +02:00
Thilo Graf
44759766af CProgressBar: add member paintShapes()
paintShapes() replaces paintBoxRel()
TODO: paint v-lines with CComponents
2013-06-16 00:34:05 +02:00
Thilo Graf
fb812f38e8 CProgressBar/CVolumeBar: fix position of active/passive bar
Assign real position values to progressbar if is bound (embedded) in a form.
This is dependently from its own parent status. Status of cc_parent==NULL
means, it's not bound and without parent form so we use x/y, otherwise
we use real values stored by cc_xr/cc_yr.
Values in cc_xr/cc_yr and cc_parent were assigned with addCCItem().

Signed-off-by: Michael Liebmann <tuxcode.bbg@gmail.com>
2013-06-03 22:12:48 +02:00
Thilo Graf
f01a9071d2 CProgressBar: replace x/y position with real position on screen
Important to paint related to screen within form dimensions

btw: small cleanups
2013-04-16 08:26:55 +02:00
Thilo Graf
cd1a4c89a8 CProgressBar: use already calculated position var for diagonal line 2013-04-16 08:26:54 +02:00
Thilo Graf
210ae1491d CProgressBar: remove wrong intital value for frame thickness
Default value is 0, and should remain as specified in the base class.
2013-04-06 08:33:51 +02:00
Thilo Graf
860be9a412 CComponents: add progressbar class to cc-items
CProgressbar moved into components sub directory and adapt includes.
Progressbar objects are now usable as cc-item

TODO:
-some color and size corrections
-found some dub codes for sig and snr-bars, needs rework
2013-04-02 09:31:05 +02:00