Commit Graph

48 Commits

Author SHA1 Message Date
Thilo Graf
09aeae56c9 cc_frm_button: add methode clearButtonDirectKeys()
Origin commit data
------------------
Commit: 7c683415f7
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
2020-12-07 23:28:52 +01:00
Thilo Graf
2524639417 cc_frm_button: add signal OnPressedButton
Origin commit data
------------------
Commit: e77e13078d
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
2020-12-07 23:28:52 +01:00
Thilo Graf
884c6181df cc_frm_buttons: expand functionality of setButtonTextColor()
Color parameters for 'select' and 'disable' colors added.


Origin commit data
------------------
Commit: 88c8147707
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
2020-12-07 23:28:52 +01:00
Thilo Graf
b3694248e0 cc_frm_button: add methode getButtonFont()
Origin commit data
------------------
Commit: f434f2c584
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
2020-12-07 23:28:52 +01:00
Thilo Graf
1e51ce8681 cc-classes: add missing virtual destructors
Origin commit data
------------------
Commit: 2b5e1e1acc
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
2019-10-27 22:56:49 +01:00
Thilo Graf
2afd15ea32 components: use const bool& parameter in paint methodes
Origin commit data
------------------
Commit: 07d8f07d4d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
2019-10-27 22:56:49 +01:00
Thilo Graf
02dce448bd clean up: remove unnecessary virtual declarations from cc classes
Origin commit data
------------------
Commit: 6660f9835f
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-12-08 (Sat, 08 Dec 2018)
2018-12-08 23:15:13 +01:00
Thilo Graf
29d136bb06 cc_frm_button.h: expand getButtonDirectKey() for item id
With this parameter it is possible to get any existing directkey
inside button object. For compatibility the old behavior is untouched.


Origin commit data
------------------
Commit: c16e5e6626
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-08-19 (Sun, 19 Aug 2018)
2018-08-19 21:14:55 +02:00
Thilo Graf
94322ad210 src/gui/components/cc_frm_footer.cpp: add member getButtonLabel()
Allows to get button label object from button collection.


Origin commit data
------------------
Commit: b943f99f9a
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-08-19 (Sun, 19 Aug 2018)
2018-08-19 21:14:55 +02:00
Thilo Graf
9425007b49 src/gui/components/cc_frm_button.cpp/h: use CComponentsPicture only
CComponentsPictureScalable not longer required


Origin commit data
------------------
Commit: bc510c0996
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-01-23 (Tue, 23 Jan 2018)
2018-01-23 18:06:28 +01:00
Stefan Seyfried
cfa463f606 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
------------------
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.
2018-01-15 19:54:51 +01:00
Thilo Graf
234d1d785f cc: expand cc-type with name
Required for internal operations where it is useful to have object
names and for better debugging.


Origin commit data
------------------
Commit: fd55de0ff4
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-01-03 (Wed, 03 Jan 2018)
2018-01-03 22:35:01 +01:00
Thilo Graf
ab4bcc584a comments: fix copy paste errors
Origin commit data
------------------
Commit: 6e310a8157
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-28 (Mon, 28 Aug 2017)
2017-08-28 12:16:45 +02:00
Thilo Graf
f4fa6e2cf9 cc_item.h/cc_frm.h/cc_frm_button.h: use pre defined frame color as default
Origin commit data
------------------
Commit: 9132e7de82
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
2017-05-21 18:00:21 +02:00
Thilo Graf
91fd6e0b67 CComponentsButton: remove unused member
Origin commit data
------------------
Commit: c9152beada
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-07 (Fri, 07 Apr 2017)
2017-04-08 08:15:45 +02:00
Thilo Graf
c7fc3dcf34 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
------------------
Commit: 4eb6a315fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-20 (Mon, 20 Mar 2017)
2017-03-20 22:55:05 +01:00
Thilo Graf
de7feba890 CComponentsButton: rename cc_btn_capt -> cc_btn_text
More plausible


Origin commit data
------------------
Commit: 2889fbd70d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
bab4bd2782 CComponentsButton: remove enableShadow() from button class
is not required


Origin commit data
------------------
Commit: 03d010fa29
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
2016-10-24 10:31:26 +02:00
Thilo Graf
7179f3d3f0 Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
11b3307251 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
------------------
Commit: dde298b1b7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-04 (Mon, 04 Apr 2016)
2016-10-24 10:31:24 +02:00
vanhofen
61370ed6c7 cc_frm_button: use same framecolor as used in messagebox/msgbox
Origin commit data
------------------
Commit: 26e0926586
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- cc_frm_button: use same framecolor as used in messagebox/msgbox
2016-10-10 14:19:55 +02:00
vanhofen
58b3052ab5 ccomponents: fix frame color
Origin commit data
------------------
Commit: 01f32241e4
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- ccomponents: fix frame color
2016-10-10 14:19:55 +02:00
vanhofen
9c8dabd7ba ccomponents: use COL_SHADOW for shadows
Origin commit data
------------------
Commit: 1f60557e0b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-16 (Tue, 16 Aug 2016)

Origin message was:
------------------
- ccomponents: use COL_SHADOW for shadows
2016-08-16 08:37:54 +02:00
vanhofen
9820ecd29b cc_frm_button: respecting user colors in buttons
Origin commit data
------------------
Commit: 29c7d652ec
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)

Origin message was:
------------------
- cc_frm_button: respecting user colors in buttons
2016-08-15 12:31:28 +02:00
vanhofen
70abfb3339 colors: make footer background color configurable
TODO: footer text color and maybe footer font


Origin commit data
------------------
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
2016-08-15 00:14:47 +02:00
vanhofen
78230ead13 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
------------------
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
2016-08-14 21:55:18 +02:00
Thilo Graf
e4fbc51887 text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled
outside of relevant objects.


Origin commit data
------------------
Commit: 9d72b086a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-21 (Thu, 21 Jan 2016)
2016-01-21 11:00:38 +01:00
Thilo Graf
72a289a90c 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
------------------
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
2015-12-27 14:42:27 +01:00
Thilo Graf
92656b5981 CComponentsButton: simplify paint of button icon
Calculation of image aspect ratio now happens in picture object itself.


Origin commit data
------------------
Commit: b47a0ccaeb
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-11 (Sat, 11 Jul 2015)
2015-07-17 15:35:47 +02:00
Thilo Graf
2c91e5d3bd CComponentsButton: disable gradient
Not necessary as long not all or most gui buttons can provide gradient


Origin commit data
------------------
Commit: 47b37d4405
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-03-28 (Sat, 28 Mar 2015)
2015-03-29 22:40:15 +02:00
Thilo Graf
ca775fc8f1 CComponentsButton: use unified body colors in gradient mode
Some theme controlled colors don't really looks nice in some
combinations with window backgrounds.


Origin commit data
------------------
Commit: 66e5f03c92
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-30 (Thu, 30 Oct 2014)
2015-03-29 22:39:54 +02:00
Thilo Graf
c4d6eb2761 CComponentsButton: use of global button text color
Used text color was different to old button handler.


Origin commit data
------------------
Commit: 04083bc299
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-18 (Sat, 18 Oct 2014)
2015-03-29 22:39:52 +02:00
Thilo Graf
ff07cd2023 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.


Origin commit data
------------------
Commit: 706ed0f31f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-26 (Tue, 26 Aug 2014)
2014-09-25 11:02:22 +04:00
Thilo Graf
44da82a768 CComponentsButton: use darker color for Button
COL_LIGHT_GRAY is too garish related to background


Origin commit data
------------------
Commit: a0492bc530
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-16 (Fri, 16 May 2014)
2014-05-22 21:50:53 +02:00
Thilo Graf
c6af819f8a CComponentsButton: add class with const char* parameters for icon names
Origin commit data
------------------
Commit: 2c87bb750a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:47 +02:00
Thilo Graf
b45c8b264d CComponentsButton: reinit button items after changed font type
Origin commit data
------------------
Commit: 2256c83b98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:45 +02:00
Thilo Graf
1482cebcc6 CComponentsButton: add possibility to change font type, whitespace fixes
Origin commit data
------------------
Commit: 419fc12f2e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-30 (Wed, 30 Apr 2014)
2014-05-22 21:50:44 +02:00
Thilo Graf
bd223cb6c9 CComponentsButton: simplify handling of init of buttons with chain class
Origin commit data
------------------
Commit: 7b279ddd33
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)
2014-05-22 21:50:43 +02:00
Thilo Graf
f33efdbdc4 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
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Thilo Graf
0fe6ad13d9 CComponentsButton: add members to get caption properties
Origin commit data
------------------
Commit: 812168416f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-09 (Sat, 09 Nov 2013)
2013-11-11 00:19:48 +01:00
Thilo Graf
689fa0a4b0 CComponentsButton: add constructors with loacalized caption parameter
Origin commit data
------------------
Commit: 989ec25360
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-06 (Wed, 06 Nov 2013)
2013-11-11 00:19:47 +01:00
Thilo Graf
41d131eb32 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.


Origin commit data
------------------
Commit: f7798affc6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:19:07 +02:00
Thilo Graf
e97b79de27 CComponentsButton: use empty string as default icon in constructors
Origin commit data
------------------
Commit: fb3f18b14a
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-11 (Fri, 11 Oct 2013)
2013-10-16 11:54:06 +02:00
Thilo Graf
8d52697ff9 CComponentsButton: use dynamic fonts, remove old font handling
Origin commit data
------------------
Commit: c3a3eea0d8
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-10 (Tue, 10 Sep 2013)
2013-10-16 11:54:04 +02:00
Thilo Graf
3419e9f3cd CComponentsButton: remove function blocks from header
Origin commit data
------------------
Commit: 19fa5e6418
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-20 (Fri, 20 Sep 2013)
2013-09-20 08:33:06 +02:00
Thilo Graf
b637a1bb79 CComponentsButton: add localized button
So it's possible to use locales for button caption.


Origin commit data
------------------
Commit: be8e47fe3f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-09 (Mon, 09 Sep 2013)
2013-09-19 08:24:39 +02:00
Thilo Graf
9cb86caf96 CComponentsButton: rework position handling for buttons and code comments
Origin commit data
------------------
Commit: 7d82da09ae
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-03 (Mon, 03 Jun 2013)
2013-06-03 22:12:48 +02:00
Thilo Graf
32cb909a14 CComponents:add sub class CComponentsButton
Origin commit data
------------------
Commit: 04afa10e02
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-20 (Sat, 20 Apr 2013)
2013-04-20 12:53:25 +02:00