Commit Graph

41 Commits

Author SHA1 Message Date
Thilo Graf
a56f49b70e header/footer: add overloaded versions of header class with size mode option
Size mode didn't really work. It is easier to implement
headers with with separate class constructor and other size mode
Footer works also with this additional parameter but without additional
overloaded constructors.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c2c8861f8
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-02 (Tue, 02 Apr 2019)

Origin message was:
------------------
header/footer: add overloaded versions of header class with size mode option

Size mode didn't really work. It is easier to implement
headers with with separate class constructor and other size mode
Footer works also with this additional parameter but without additional
overloaded constructors.


------------------
This commit was generated by Migit
2019-04-02 22:10:16 +02:00
Thilo Graf
38b6899226 src/gui/components/cc_frm_footer.cpp: add member getButtonLabel()
Allows to get button label object from button collection.


Origin commit data
------------------
Branch: ni/coolstream
Commit: b943f99f9a
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-08-19 (Sun, 19 Aug 2018)



------------------
This commit was generated by Migit
2018-08-19 21:14:55 +02:00
Stefan Seyfried
acdea13d8e reduce dependencies on driver/rcinput.h
* add new header that only contains neutrino_msg_t and friends, often this
 is all that's needed instead of full rcinput.h
* directly include rcinput.h in some cpp files instead of relying on
 accidental inclusion in some header
* add class forward declarations to avoid dragging in rcinput indirectly
This could use more work to further reduce the impact; maybe separating
the CRCinput::key_* constants from the rcinput class would be good.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 47fbfbed9b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-01-15 (Mon, 15 Jan 2018)

Origin message was:
------------------
reduce dependencies on driver/rcinput.h

* add new header that only contains neutrino_msg_t and friends, often this
 is all that's needed instead of full rcinput.h
* directly include rcinput.h in some cpp files instead of relying on
 accidental inclusion in some header
* add class forward declarations to avoid dragging in rcinput indirectly
This could use more work to further reduce the impact; maybe separating
the CRCinput::key_* constants from the rcinput class would be good.


------------------
This commit was generated by Migit
2018-01-15 19:54:51 +01:00
Thilo Graf
7e3920a42e CCButtonSelect: outsource button select handling into own class
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d753d7437
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-06-15 01:01:54 +02:00
Thilo Graf
037ad21618 CComponentsButton: simplify assignment of button message values
Count of alternate message values was limited to 1 value. Now it is
possible to add any count of message values.

directKey and directKeyAlt were removed from struct type 'button_label_cc'
and directKeys was added as container for possible message values.

Some methods of CComponentsFooter had to be adapted for that.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4eb6a315fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-20 (Mon, 20 Mar 2017)



------------------
This commit was generated by Migit
2017-03-20 22:55:05 +01:00
Thilo Graf
fc7164a182 cc_types: move struct button_label_cc into cc_types.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: e777ecdfdb
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-13 (Mon, 13 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-03-13 09:45:38 +01:00
Thilo Graf
96fe3a3856 CComponentsFooter: add bg_image to button_label_cc type
Origin commit data
------------------
Branch: ni/coolstream
Commit: e2ca965ee9
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-13 (Mon, 13 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-03-13 09:45:38 +01:00
Thilo Graf
5368732f2f CComponentsFooter: simplify implementation of button labels
button_label_l and button_label_s are now
merged to button_label_cc with prepared default values for text and locales.This type contains all possible
button label properties. Values for locales and string
are evaluated in setButtonLabels(), so it's possible to remove some
overloaded methodes.


Origin commit data
------------------
Branch: ni/coolstream
Commit: c766a970dc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-11 (Sat, 11 Mar 2017)



------------------
This commit was generated by Migit
2017-03-11 00:45:25 +01:00
Thilo Graf
8f57e2739d CComponentsFooter: fix default button font type
Deafult buttonfont is FONT_TYPE_BUTTON_TEXT not FONT_TYPE_MENU_FOOT


Origin commit data
------------------
Branch: ni/coolstream
Commit: 60a77d38b3
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-03 (Tue, 03 Jan 2017)



------------------
This commit was generated by Migit
2017-01-05 22:19:18 +01:00
Thilo Graf
624aaed1a8 CComponentsHeader/CComponentsFooter: prevent crash on changed font settings
Default fonts for header and footer must be handled too.
After font settings changes these objects could be invalid.
Default fonts have invalid pointers after font changes too. Extra reset is required.


Origin commit data
------------------
Branch: ni/coolstream
Commit: b98319cb91
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)



------------------
This commit was generated by Migit
2016-12-30 20:33:26 +01:00
Thilo Graf
5c85bb59c6 CComponentsFooter: use select/unselect colors from menues as default
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4b88a244da
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-11-20 16:33:53 +01:00
Thilo Graf
299994c446 CComponentsFooter: use minimal frame width as default for buttons
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7567f7de00
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-11-20 16:33:32 +01:00
Thilo Graf
9c47a80d3d CComponentsFooter: add parameter for frame width for selected buttons
Frame width was hard coded.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 696989dcf1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)



------------------
This commit was generated by Migit
2016-11-20 01:33:57 +01:00
Thilo Graf
0c616beb8f CComponentsFooter: optimize select buttons, try to assign better contrast
Now it's possible to set parameters for frames and text.
Parameters are prdefined for better contrasts in select or default mode.

TODO: background modes have no effects at the moment. Here are other things need to be done.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 55ac581523
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-23 (Sun, 23 Oct 2016)



------------------
This commit was generated by Migit
2016-10-24 10:31:28 +02:00
Thilo Graf
5db54fc647 Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)



------------------
This commit was generated by Migit
2016-10-24 10:31:25 +02:00
Thilo Graf
09ffbdc2a9 CComponentsFooter: add member enableButtonShadow()
Possibility to pass button properties into button objects


Origin commit data
------------------
Branch: ni/coolstream
Commit: 363cf101d1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-21 (Sun, 21 Aug 2016)



------------------
This commit was generated by Migit
2016-10-24 10:31:25 +02:00
Thilo Graf
cb82b046cb CMsgBox: add option to enable/disable button background
replaces var name btn_contour for better plausibility


Origin commit data
------------------
Branch: ni/coolstream
Commit: be740c1552
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)



------------------
This commit was generated by Migit
2016-10-24 10:31:24 +02:00
Thilo Graf
36d8d81fa6 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details


Origin commit data
------------------
Branch: ni/coolstream
Commit: dde298b1b7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-04 (Mon, 04 Apr 2016)



------------------
This commit was generated by Migit
2016-10-24 10:31:24 +02:00
vanhofen
5987637998 colors: add COL_FRAME wrapper
Origin commit data
------------------
Branch: ni/coolstream
Commit: 75fe6e407d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_FRAME wrapper

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-10-10 14:19:54 +02:00
Thilo Graf
c7fb4c5343 CComponentsFooter: don't use default parameters for privat member
Passed init values are better to see here.
This should fix wrong footer color too. See UPNP-Browser, color was not
applied here.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9b9a8d1a78
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-23 (Tue, 23 Aug 2016)



------------------
This commit was generated by Migit
2016-08-23 16:00:48 +02:00
vanhofen
9ed55c28e3 ccomponents: use COL_SHADOW for shadows
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1f60557e0b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-16 (Tue, 16 Aug 2016)

Origin message was:
------------------
- ccomponents: use COL_SHADOW for shadows

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-08-16 08:37:54 +02:00
vanhofen
a8cec5244c fonts: add and use own font for all footers
Origin commit data
------------------
Branch: ni/coolstream
Commit: 54f2ac510f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)

Origin message was:
------------------
- fonts: add and use own font for all footers

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-08-15 19:02:42 +02:00
vanhofen
fb9eaf294f colors: make footer background color configurable
TODO: footer text color and maybe footer font


Origin commit data
------------------
Branch: ni/coolstream
Commit: cc5258e6d5
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)

Origin message was:
------------------
- colors: make footer background color configurable

TODO: footer text color and maybe footer font


------------------
This commit was generated by Migit
2016-08-15 00:14:47 +02:00
vanhofen
f167c6bc4c cc_frm_footer: overload font option with old familiar font
Origin commit data
------------------
Branch: ni/coolstream
Commit: 13966c519b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-14 (Sun, 14 Aug 2016)

Origin message was:
------------------
- cc_frm_footer: overload font option with old familiar font

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-08-14 22:17:59 +02:00
vanhofen
1c1c5a05f3 colors: some internal renamings
* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable


Origin commit data
------------------
Branch: ni/coolstream
Commit: bc39d1e14e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-14 (Sun, 14 Aug 2016)

Origin message was:
------------------
- colors: some internal renamings

* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable


------------------
This commit was generated by Migit
2016-08-14 21:55:18 +02:00
Thilo Graf
9e3882b7bc 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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0146511f38
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
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


------------------
This commit was generated by Migit
2015-12-27 14:42:27 +01:00
vanhofen
f9cf690f61 cc_frm_footer: prepare for c2c gradient
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5599784642
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-04 (Mon, 04 May 2015)

Origin message was:
------------------
- cc_frm_footer: prepare for c2c gradient

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-05-04 09:41:41 +02:00
Thilo Graf
4a621efb66 CComponentsFooter: Function setButtonLabels() change parameter
Performance: parameter 'v_content' should be passed by reference


Origin commit data
------------------
Branch: ni/coolstream
Commit: 56ea6c140f
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-12 (Mon, 12 Jan 2015)



------------------
This commit was generated by Migit
2015-03-29 22:40:06 +02:00
Thilo Graf
3ebbf69413 CComponentsFooter: add optional possibility to switch colored button frame
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7ec096fa3d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-06 (Thu, 06 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:39:55 +02:00
Thilo Graf
7ee49b7798 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ae495716e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-26 (Tue, 26 Aug 2014)



------------------
This commit was generated by Migit
2014-09-25 11:02:27 +04:00
Thilo Graf
057b7df199 CComponentsFooter: add members to set or get select a defined button
Origin commit data
------------------
Branch: ni/coolstream
Commit: cc5b17a620
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-25 (Mon, 25 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:01:49 +04:00
Thilo Graf
8df8457993 CComponentsFooter: add member to add button labels via vector
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9f902af587
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-19 (Tue, 19 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:01:39 +04:00
Thilo Graf
40c61134b3 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 18f13b0062
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-11 (Sun, 11 May 2014)



------------------
This commit was generated by Migit
2014-05-22 21:50:52 +02:00
Thilo Graf
4cb4ce2d3d CComponentsFooter: add member to get pointer to button container
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7cbd4e3469
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:48 +02:00
Thilo Graf
12e0a4b02e CComponentsFooter: apply showButtonContour() after init of labels
Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.


Origin commit data
------------------
Branch: ni/coolstream
Commit: f7860fed35
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)



------------------
This commit was generated by Migit
2014-05-22 21:50:47 +02:00
Thilo Graf
113c07a27a CComponentsFooter: use chain object in global scope of class
Origin commit data
------------------
Branch: ni/coolstream
Commit: bd03327cb4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:47 +02:00
Thilo Graf
ea451154d7 CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9ffdb1cb98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:45 +02:00
Thilo Graf
75927ba409 CComponentsFooter: add possibility to change font type
Origin commit data
------------------
Branch: ni/coolstream
Commit: 41c01cedad
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-30 (Wed, 30 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:44 +02:00
Thilo Graf
570bc0cfe8 CComponentsFooter: add functionality to add button labels via struct
This function uses struct label like old button label function
see /gui/widget/buttons.cpp, but can also use strings in structs

also possible: add single button with text or locale


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8797872d47
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)



------------------
This commit was generated by Migit
2014-05-22 21:50:43 +02:00
Thilo Graf
7c70aaa6df 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)



------------------
This commit was generated by Migit
2014-03-03 09:43:39 +01:00
Thilo Graf
f83e723ca4 CComponentsHeader/CComponentsFooter: move footer class into its own file
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7151608c8b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-28 (Tue, 28 Jan 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-05 11:56:46 +01:00