Commit Graph

11 Commits

Author SHA1 Message Date
[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