Commit Graph

1212 Commits

Author SHA1 Message Date
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
Thilo Graf
2aff49deea CComponentsItem: remove unnecessary calculation of position with frame
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02: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
8bbd7024d9 CComponents: epand method setFrameThickness() to change selected frame 2014-06-23 18:43:47 +02:00
Thilo Graf
33202059cc CComponentsText: add function to get current text content from object 2014-06-23 18:43:47 +02:00
Thilo Graf
581b9c7701 CComponentsForm: add methode killCCItems()
This methode is an equivalent version of CComponentsItem::kill() and
allows to erase all items inside of a container at once.
2014-06-23 18:43:47 +02:00
Thilo Graf
f21c119517 CComponentsWindow: add possibilty to add sidebars in window objects
This allows to add objects in to window on left or right site. eg. for
navigation icons or other similar stuff. Default this feature is disabled.
to enable with methode enableSidebar(TYPE); With parameter
CC_WINDOW_LEFT_SIDEBAR, CC_WINDOW_RIGHT_SIDEBAR or both.
Width of sidebar can be changed with methode setWidthSidebar(int)
2014-06-23 18:43:47 +02:00
Thilo Graf
53cf57876c CComponents: inherit COSDFader class
Allows a simplified implementation without prior declaration and
initialisation
2014-06-23 18:43:47 +02:00
svenhoefer
8b91cda918 - change getRenderWidth() default to UTF8 2014-06-11 23:07:00 +02:00
Thilo Graf
f74a000929 CComponents: fix screen rests
Frame of painted box was incomplete removed, eg hint box see also:
http://www.dbox2world.net/board293-cst-coolstream/board314-cst-coolstream-development/12230-r%C3%BCckst%C3%A4nde-auf-bildschirm-bei-apollo/
2014-06-01 23:12:29 +02:00
Thilo Graf
dc007e810a CComponents: use paintBoxRel() only in kill()
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.
2014-05-22 21:50:55 +02:00
Thilo Graf
336ddf75b6 CComponents/CComponentsItem: simplify statement 2014-05-22 21:50:55 +02:00
Thilo Graf
df4151936b CComponentsFooter: use same corner properties like parent object
This avoids paint of unnecessary edges inside parent object.
2014-05-22 21:50:54 +02:00
Thilo Graf
7096e701b6 CComponents/CComponentsItem: use correct background color
color "0" was wrong
2014-05-22 21:50:54 +02:00
Thilo Graf
6aecdf3b5a CComponentsFooter: use dynamic font on too small footer width
If required width of evaluated buttons larger than footer width,
then use dynamic font for caption, and try to fit buttons into chain
container. Dynamic font is used if ccf_btn_font==NULL

NOTE: user should not use too small window size and not select too large
fontsize. At some point this possibility will be depleted and it's no
more space for readable caption.
2014-05-22 21:50:54 +02: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
b6c781f7e4 CComponents: cc_base.h: expand override of is_painted variable
Value of is_painted is modified temporarily till next paint
of item

Not sure whether this is sufficiently or has bad side effects?
2014-05-22 21:50:53 +02:00
Thilo Graf
bed36eab33 CComponentsHeader: add member getContextBtnObject()
Allow access directly to methods and properties of context button object.
2014-05-22 21:50:53 +02:00
Thilo Graf
9937c0fae8 CComponentsFooter: ignore item, if no text and icon are defined
Empty buttons with defined width are causing gaps...looks not nice!
2014-05-22 21:50:52 +02:00
Thilo Graf
18f13b0062 CComponentsFooter: add member paintButtons()
This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.
2014-05-22 21:50:52 +02:00