Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
vanhofen
73c370ab33 Merge branch 'pu/mp' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/mp/tuxbox
Conflicts:
	src/gui/components/cc_frm_footer.cpp
	src/neutrino.cpp


Origin commit data
------------------
Commit: fd25630d53
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-08-30 (Wed, 30 Aug 2017)
2017-08-30 18:11:59 +02:00
Thilo Graf
fbb0fc68b0 cc_frm.cpp, cc_frm_button.cpp: remove unread stored variables
Origin commit data
------------------
Commit: fe6a24351b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-28 (Mon, 28 Aug 2017)
2017-08-28 12:16:45 +02:00
vanhofen
37d602cfde cc_frm_button.cpp: fix comparsion to detect dyn-font usage
Origin commit data
------------------
Commit: 942d8594f5
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-26 (Mon, 26 Jun 2017)

Origin message was:
------------------
- cc_frm_button.cpp: fix comparsion to detect dyn-font usage
2017-06-26 22:43:36 +02:00
Thilo Graf
78d7830040 CComponentsButton: fix offset between icon and text items
We have only two items, therfore it makes sense to set offset to 0
if we have only one item. Otherwise a single item will not be centered.


Origin commit data
------------------
Commit: 294278aad3
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-28 (Sun, 28 May 2017)
2017-05-28 13:34:17 +02:00
Thilo Graf
6d9267c1c3 CComponentsButton: use defined offset for append offset
Origin commit data
------------------
Commit: a5a2ac6037
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-28 (Sun, 28 May 2017)
2017-05-28 13:34:12 +02:00
Thilo Graf
b4e653a109 CComponentsButton: add missing init of col_body_old
Some changes on runtime were ignored on runtime.


Origin commit data
------------------
Commit: 36c8f4c24f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
2017-05-21 18:00:21 +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
Stefan Seyfried
f6d5a96838 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough


Origin commit data
------------------
Commit: 2303d94300
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)
2017-02-07 17:23:42 +01:00
Thilo Graf
35166dadce CComponentsButton: try to fix fallback for font size
Some conditions were not catched.


Origin commit data
------------------
Commit: a5d2c2cb1d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-03 (Tue, 03 Jan 2017)
2017-01-05 22:19:18 +01:00
Thilo Graf
18b9d54586 CComponentsButton: fix height comparsion
comparsion with itself


Origin commit data
------------------
Commit: 4a03eb6980
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-05 (Thu, 05 Jan 2017)
2017-01-05 22:19:18 +01:00
Thilo Graf
a1356ceff6 CComponentsButton: try to fix font size in buttons
Some text in button chains had different font sizes. To see in some
Messageboxes.


Origin commit data
------------------
Commit: b335408913
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +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
1cb41d0ba7 CComponentsButton: remake caption size to 85% of button height
Better optical matching size.


Origin commit data
------------------
Commit: ce11a3a0df
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
2016-10-24 10:31:26 +02: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
dabba34177 CComponentsButton: remove clear()-methode and initVarButton()
clear() killed all button object with all key values and key properties.
So return values of messeage objects was killed.

initVarButton() contains Oobjekt intits to already existant object.
Bad idea, if we init again or pre init with NULL.

Mode pass was missed.


Origin commit data
------------------
Commit: 0f6e8e1f5d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-05 (Wed, 05 Oct 2016)
2016-10-24 10:31:26 +02:00
Thilo Graf
3119fa58e1 cc_frm_button.cpp/cc_frm_footer.cpp: fix passed parameter
were not passed through


Origin commit data
------------------
Commit: e2a1e7dc5b
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-30 (Fri, 30 Sep 2016)
2016-10-24 10:31:25 +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
8b1bc5fb65 CComponentsItem: fix changeing color on select switching of frames
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.


Origin commit data
------------------
Commit: 3477e28cd7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-20 (Sat, 20 Aug 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
892603fe68 rename customcolor.h -> color_custom.h; reduce unneeded inludes
Origin commit data
------------------
Commit: 104d21e784
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- rename customcolor.h -> color_custom.h; reduce unneeded inludes
2016-10-10 14:19:55 +02:00
vanhofen
f21851aec0 rename SHADOW_OFFSET -> OFFSET_SHADOW
Origin commit data
------------------
Commit: 5d450c60d3
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- rename SHADOW_OFFSET -> OFFSET_SHADOW
2016-10-10 14:19:55 +02:00
Thilo Graf
a1f3b5d041 CComponentsButton: use passed shadow parameter
Shadow was always enabled.


Origin commit data
------------------
Commit: 7c4e1c20b8
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)
2016-09-24 01:09:46 +02:00
Thilo Graf
5e16a9f6b4 CComponentsButton: reduce shadow width
buttons are mostly small elements, so these elements should have a reasonable shadow width


Origin commit data
------------------
Commit: 2cf409bc27
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-21 (Sun, 21 Aug 2016)
2016-08-22 21:16:54 +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
vanhofen
e6f2a6080a cc_frm_button: don't use frames per default and align fontsize
to familiar size


Origin commit data
------------------
Commit: fa27f87bb1
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-14 (Sun, 14 Aug 2016)

Origin message was:
------------------
- cc_frm_button: don't use frames per default and align fontsize

to familiar size
2016-08-14 20:56:41 +02:00
Thilo Graf
5308b910ef CComponentsButton: get image path from framebuffer
Buttons didn't get icons from custom path e.g. /var/tuxbox/icons
This should fix this.


Origin commit data
------------------
Commit: 95e9ca5de8
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-03-17 (Thu, 17 Mar 2016)
2016-03-17 10:30:47 +01:00
Thilo Graf
fc29aa59c7 CComponentsButton: fix button icon position on dynamic changed conditions
In some constellations it is possible, that costum icons with
other dimensions will be not correct positionized. This should
fix this issue.

This reverts partial commit 289f5b30e6.


Origin commit data
------------------
Commit: 7197f51e89
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-03-17 (Thu, 17 Mar 2016)
2016-03-17 09:12:43 +01:00
Thilo Graf
289f5b30e6 CComponentsButton: increase default height of buttons
Origin commit data
------------------
Commit: 8e0d1c85f9
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-29 (Mon, 29 Feb 2016)
2016-02-29 10:38:55 +01: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
fc98fbf7bd CComponentsButton: fix transparecny of button icon
Background was black for some icons


Origin commit data
------------------
Commit: ff97b7d25f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +01:00
Thilo Graf
648f5dce05 CComponentsButton: remove current gradient from all buttons
This will comming soon, gradient is prepared for use but disabled at
the moment till some other parts of gui parts are provide gradient


Origin commit data
------------------
Commit: eec34222ea
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
2016-01-05 15:06:18 +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
2166b0e1b0 CComponentsButton: fix image scale
Wrong ratio calculation.


Origin commit data
------------------
Commit: cabe84bf0f
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-30 (Tue, 30 Jun 2015)
2015-07-01 16:05:38 +02:00
vanhofen
64dae98d61 ccomponents: add missing slash to iconBasePath
Origin commit data
------------------
Commit: e85f32848c
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-07 (Thu, 07 May 2015)

Origin message was:
------------------
- ccomponents: add missing slash to iconBasePath
2015-05-07 11:10:28 +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
8c0279c4a0 CComponentsButton: fix fit of button icon
Scale was broken


Origin commit data
------------------
Commit: d33c4911d2
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)
2015-03-29 22:40:08 +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
64a7f05f93 CComponentsForm: fix item offset with enabled frame
frame width was not considered


Origin commit data
------------------
Commit: f7faf07ab1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)
2015-03-29 22:39:50 +02:00
[CST] Focus
ec31342be8 gui/components/cc_frm_button.cpp: set CTextBox save screen flag
Origin commit data
------------------
Commit: fdd5486714
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)
2015-03-06 14:13:59 +03:00
Thilo Graf
7ad7229716 CComponentsButton: apply color gradiant to buttons
Origin commit data
------------------
Commit: de2aebcebc
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:16 +04: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
46495cbf40 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.


Origin commit data
------------------
Commit: 5eb63b9515
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-20 (Fri, 20 Jun 2014)

Origin message was:
------------------
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
vanhofen
3bba3094e2 change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Thilo Graf
a46fdbe619 CComponentsButton: use y position 0 for general alignment
Origin commit data
------------------
Commit: 9c4aadd2bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)
2014-05-22 21:50:50 +02:00
Thilo Graf
a42e9a6992 CComponentsButton: ensure matching icons inside button
Some icons can be too large for defined button height, so it's required to
scale icons. Scaling happens inside cc_btn_icon_obj during its init.


Origin commit data
------------------
Commit: 9d014d2039
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-03 (Sat, 03 May 2014)
2014-05-22 21:50:49 +02:00