Commit Graph

501 Commits

Author SHA1 Message Date
Thilo Graf
d6bf51a593 CComponentsScrollBar: add color gradient to scrollbar 2014-09-25 11:08:12 +04:00
Thilo Graf
f9147d185a CComponents: add setColBodyGradient() to set gradient properties
This provides possibility to set relevant gradiant properties in cc sub classes
2014-09-25 11:08:08 +04:00
Thilo Graf
581405e076 CComponentsItem: move initBodyGradient() into base class
This provides functinality for all sub classes too
2014-09-25 11:08:04 +04:00
Thilo Graf
11c9d0780a CComponentsText: move setTextRenderModeFullBG() to text object
This is mostly required here
2014-09-25 11:08:00 +04:00
Thilo Graf
83070da483 CComponents: rename gradient variables
Use convention for cc classes.
paintGradient probaly too general and
is related to body, other fb types can be also handled with gradient.
2014-09-25 11:07:55 +04:00
Thilo Graf
64c84fb490 CComponents: move variable cc_gradientData, paintGradient into base class
Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling
2014-09-25 11:07:45 +04:00
M. Liebmann
8762d4b871 CComponentsHeader: Use Font::FULLBG for rendering string...
...when text is painted on a color gradient
2014-09-25 11:07:37 +04:00
Thilo Graf
c1f70dbbb8 CComponentsWindow, CMenuWidget: apply gradiant settings to header 2014-09-25 11:07:28 +04:00
M. Liebmann
bfc1c04d83 CComponentsHeader: Use color gradient for paint header
Conflicts:
	src/gui/widget/menue.cpp
2014-09-25 11:07:12 +04:00
M. Liebmann
db6fd8480d CComponents: Add color gradient for CC_FBDATA_TYPE_BOX 2014-09-25 11:06:01 +04:00
M. Liebmann
4c2704fb2f CComponentsForm: Fix compiler warning (-Wsign-compare) 2014-09-25 11:05:18 +04:00
M. Liebmann
d25fe1438c Change CComponents::clearSavedScreen() from protected to public
Signed-off-by: Thilo Graf <dbt@novatux.de>

Conflicts:
	src/gui/components/cc_base.h
2014-09-25 11:03:34 +04:00
Thilo Graf
cfd1510a5c CComponentsTimer: add mutex handling, use neutrino log 2014-09-25 11:03:03 +04:00
Thilo Graf
88ce62ea84 CComponentsForm/CComponentsWindow: add page scroll handling
This provides page scroll with up/down, left/right or combined.
Usage of exec() methods with implemented signals allows a
generic implematation of button or other message handling with
signal/slot solutions.

still to do: page cache
2014-09-25 11:02:55 +04:00
Thilo Graf
4e5df866bd CComponentsSignals: add signals for exec handlers 2014-09-25 11:02:51 +04:00
Thilo Graf
ec132906cd cc_types: add truct type for rc messages with related icon 2014-09-25 11:02:45 +04:00
Thilo Graf
0c0e0e85ff CComponentsItem/CComponentsForm: add property focus
Specifies that some certain operations especially eg. exec events for
that item are possible.
2014-09-25 11:02:32 +04:00
Thilo Graf
5ae495716e CComponentsFooter: expand button label structs
Allows assigning of result, msg and alias values with label struct.

NOTE: Old button label struct are compatible but limited only and
not recommended for usage!
Old parameters 'struct button_label' doesn't provide newer parameters.
Missing parameters are filled with default values and must be assigned
afterward, if required.
2014-09-25 11:02:27 +04: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
e1b9f0a184 CComponentsForm: add member to get pointer to selected items 2014-09-25 11:02:17 +04:00
Thilo Graf
0ab881b338 CComponentsForm: avoid segfault, if id is out of range 2014-09-25 11:02:13 +04:00
Thilo Graf
67a42c3e96 CComponents: add members to handle object tags
This can help to handle some useful values for any functions
2014-09-25 11:02:00 +04:00
Thilo Graf
ec7d5772f0 CComponentsForm: add members to set or get selected items 2014-09-25 11:01:54 +04:00
Thilo Graf
cc5b17a620 CComponentsFooter: add members to set or get select a defined button 2014-09-25 11:01:49 +04:00
Thilo Graf
1a38c23340 CComponentsSignals: ad signal OnSelect 2014-09-25 11:01:45 +04:00
Thilo Graf
9f902af587 CComponentsFooter: add member to add button labels via vector 2014-09-25 11:01:39 +04:00
Thilo Graf
6ed7df9498 CComponentsSignals: add signal OnError 2014-09-25 10:58:30 +04:00
Thilo Graf
4731521070 CComponents: add new header file cc_signals.h with some basic members 2014-09-25 10:58:22 +04:00
Thilo Graf
221bb9be33 CComponentsShape/CComponentsShapeCircle: don't use CC_SHADOW_ON as default
It has been shown, most shapes don't require any shadow.
2014-09-14 00:01:07 +02:00
Thilo Graf
6842dc530a CComponentsText: fix missing refresh of text mode
assign of text mode was without any effect
2014-09-14 00:01:04 +02:00
martii
b21cb152b5 system/settings: move theme colors to dedicated struct
Conflicts:
	src/driver/pictureviewer/pictureviewer.cpp
	src/gui/epgview.cpp
	src/gui/osd_setup.cpp
	src/gui/pluginlist.cpp
	src/neutrino.cpp
2014-09-12 18:29:21 +04:00
martii
84cf3865b5 gui/components/cc_frm_clock.cpp: add method to enable/disable auto-blit()
Conflicts:
	src/gui/components/cc_frm_clock.cpp
2014-09-11 18:12:51 +04:00
martii
1c39a6edf4 [experimental] gui/components/cc_frm_clock: use a mutex around unsetting/evaluating paintClock. This may or may not help with the clock-still-showing-when-leaving-the-channellist problem. Pretty much untested, as that issue is quite irreproducible. 2014-09-11 18:12:51 +04:00
martii
13118c1148 gui/components/cc_frm_clock: simplify; setClockFormat/setClockBlink has now impact on running thread
Conflicts:
	src/gui/components/cc_frm_clock.cpp
	src/gui/timeosd.cpp
2014-09-11 18:12:51 +04:00
martii
9472155b88 gui/components/cc_frm_clock: disable thread idle timeout; clear clock when thread exits 2014-09-11 18:12:51 +04:00
martii
be29f644f0 gui/components: use COL_BACKGROUND_PLUS_0 instead of COL_BACKGROUND 2014-09-11 18:12:51 +04:00
[CST] Focus
a473fe8194 webtv channels integration port,
initial code (C) martii,
initial patch from jacek
2014-08-27 17:32:26 +04:00
Thilo Graf
4e65078335 CComponentsWindow: add missing comment for allignment options 2014-08-26 17:27:30 +04:00
Thilo Graf
62acbb47ab CComponentsItem: fix percentage dimensions setters
heigth and width were swapped, parameter "real" was false
2014-07-18 13:31:29 +04:00
Thilo Graf
556b2cccb2 CComponentsHeader: add methode getCaptionFont() 2014-07-18 13:31:22 +04:00
[CST] Focus
75f7ac1235 gui/components/cc_base.cpp: try to fix screen save for CComponentsDetailLine 2014-07-17 17:02:51 +04:00
[CST] Focus
416646bbff merge neutrino-mp progressbar code, (C) martii 2014-07-17 17:02:37 +04:00
M. Liebmann
a182fca81f CComponentsPicture: Add parameter 'transparent'...
...to set the transparency of pictures

- Set default transparency for CComponentsChannelLogo to
  CFrameBuffer::TM_BLACK
  (Transparency when black content -> 'pseudo' transparency)

- Set default transparency for CComponentsPicture to
  CFrameBuffer::TM_NONE (No 'pseudo' transparency)
2014-07-10 16:38:09 +02:00
M. Liebmann
3d805054f4 CComponentsChannelLogo: disable paint of logo background, it's not required here
- Fix calculation of logo width & height
2014-06-29 13:25:32 +02:00
Thilo Graf
672757606c CComponents: implement scroll functionality into CComponentsForm
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .

Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!

To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.

For examples, take a look into CTestMenu
2014-06-27 20:49:41 +02:00
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
c2bc275d5d CComponentsForm: add functions to get first and last item 2014-06-27 20:38:59 +02:00
Thilo Graf
67ab4addeb CComponentsWindow: add missing comment for sidebars 2014-06-23 18:43:47 +02:00
Thilo Graf
dce25e94b3 CComponentsForm: don't consider frame for position calculation
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02:00
Thilo Graf
eee10df7bb CComponentsForm: add comment 2014-06-23 18:43:47 +02:00