Thilo Graf
014f0f3da7
cc_frm_window.cpp: fix possible oversize render with maximum screen settings
2018-11-20 09:17:02 +01:00
Thilo Graf
692d39bfb0
cc_item_text.cpp: add missing paint state after rendered text box
...
Evaluations while usage of this state could has been wrong or incomplete
and therefore it was possible that some effects were unintended or
without any effect.
2018-11-20 09:17:02 +01:00
Thilo Graf
e2b34efc88
cc_frm.cpp: add missing condition within paint methode
...
Shadow was unpainted with shadow_force
2018-10-28 19:41:22 +01:00
Thilo Graf
243bfb9cb4
cc_item_text.cpp: fix missing pass through of var cc_allow_paint
...
In case of cc_allow_paint = false, text would be farther rendered
and this is not intended.
2018-10-28 19:41:22 +01:00
Thilo Graf
57790766e7
src/gui/components/cc_frm_footer.cpp: fix assinged vector content
2018-08-18 11:22:23 +02:00
Thilo Graf
8a9ef1db85
cc_frm_footer.cpp: avoid possible crash if content[i].button = NULL
...
If content[i].button = NULL, conversion of content[i].button into std::string would fail.
2018-08-18 11:22:23 +02:00
Thilo Graf
29dd3a6b13
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.
2018-08-18 11:22:23 +02:00
Thilo Graf
5d212fc401
src/gui/components/cc_frm_footer.cpp: add member getButtonLabel()
...
Allows to get button label object from button collection.
2018-08-18 11:22:23 +02:00
Thilo Graf
3955da6893
src/gui/components/cc_types.h: fix default key for button labels
...
First index = 0 not 1
2018-08-18 11:22:23 +02:00
Thilo Graf
bcdc3e990e
CCDraw: add debug output to identify errors in relevant item types
2018-04-05 21:21:53 +02:00
Thilo Graf
a25fd62be8
CCTypes: outsource type variables and methods into own inheritable class
2018-04-05 20:55:46 +02:00
Thilo Graf
3233abce5d
src/gui/epgview.cpp: initialize of dimensions dependently from added icons
...
... so it is possible to get usable dimension values. Useful if in parent
object none values or too small dimensions are defined.
2018-03-24 17:39:49 +01:00
Thilo Graf
7dae8aa77e
src/gui/components/cc_frm_icons.cpp: fix typo, add missing include
2018-03-14 12:16:36 +01:00
Thilo Graf
9d7f8a21f9
CComponentsIconForm: add member to add any number of identical icons
2018-03-14 10:50:20 +01:00
Thilo Graf
56bf501e3d
cc_frm_icons.cpp: add missing call of addIcon();
...
Parameter v_icon_names was without effect.
2018-03-14 10:50:00 +01:00
Thilo Graf
35196222aa
Fix "cc_frm_footer.cpp: fix possible compiler warning"
...
This reverts commit 885ed60ea4
.
2018-03-02 21:44:07 +01:00
Thilo Graf
e920fd3c9c
CCButtonSelect: unfify bg color parameter order with related base methode
...
Order was different between setSelectedButton() and setSelectedItem()
2018-03-01 19:04:34 +01:00
Thilo Graf
318550767f
CCButtonSelect: use pre defined frame color as default
2018-03-01 19:04:34 +01:00
Thilo Graf
948e42cd1d
CCButtonSelect: fix order of frame color parameters
2018-03-01 19:04:34 +01:00
Thilo Graf
caa8eb866f
CComponentsForm: add define for default select frame
2018-03-01 16:55:27 +01:00
Thilo Graf
885ed60ea4
cc_frm_footer.cpp: fix possible compiler warning
...
long unsigned int is expected
2018-03-01 16:55:27 +01:00
Stefan Seyfried
405d77565d
cc_frm: fix paintCCItems() y position calculation
2018-02-19 17:49:41 +01:00
Thilo Graf
0e438e0a95
cc_timer.cpp: don't loop if slot OnTimer is empty
...
Just for safety and to save resources.
2018-02-19 17:49:29 +01:00
Thilo Graf
6141510858
CComponentsHeader: use internal offset instead OFFSET_INNER_MID
...
Internal offset is already defined.
2018-02-07 19:45:50 +01:00
Thilo Graf
ee04bbb368
CComponentsHeader: fix possible build error with dangling-else
...
error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else]
see commit: 02631f14ca
2018-02-04 20:47:41 +01:00
max_10
02631f14ca
fix overpaint buttons in channellist edit mode
2018-02-04 20:03:17 +01:00
svenhoefer
a3ce3d65c4
- cc_item_shapes; add ClearBoxRel() function; analogous to PaintBoxRel()
...
Signed-off-by: Thilo Graf <dbt@novatux.de >
2018-01-26 23:36:35 +01:00
Thilo Graf
355d938820
src/gui/components/cc_item_picture.h: remove CComponentsPictureScalable
...
not longer required
2018-01-23 17:34:28 +01:00
Thilo Graf
bae07b95e7
src/gui/components/cc_frm_button.cpp/h: use CComponentsPicture only
...
CComponentsPictureScalable not longer required
2018-01-23 17:34:25 +01:00
Thilo Graf
38fa0f8fb9
cc_types: add #include <driver/fb_generic.h>
...
user report: try to fix error: »fb_pixel_t« discribes no type
This is a bit strange because this data type
is global configured, see configure.ac
2018-01-20 17:49:57 +01:00
Thilo Graf
64d5101be0
data types: use unified type name uint8_t instead u_int8_t
2018-01-20 17:42:31 +01:00
Thilo Graf
26c552a1ed
CComponentsHeader: avoid possible 'out of range' log message
...
seen during left/right scroll with channellist
2018-01-14 13:39:21 +01:00
Stefan Seyfried
8cf9486fdd
add int type includes to cc class
2018-01-13 20:08:28 +01:00
Stefan Seyfried
b982458d2d
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-13 20:08:20 +01:00
Stefan Seyfried
448838b069
cc_item_text: fix "text changed" detection
2018-01-13 19:56:14 +01:00
Thilo Graf
38219bf391
CComponentsForm: expand debug output to identify current used container
2018-01-04 13:45:45 +01:00
Thilo Graf
57b75d0601
cc_extra.h: allign method paintImage() and update comments
2018-01-02 22:31:38 +01:00
Thilo Graf
fb5c943db4
cc: expand cc-type with name
...
Required for internal operations where it is useful to have object
names and for better debugging.
2017-12-30 22:58:15 +01:00
Stefan Seyfried
1dc7e185bf
cc_draw: add simple debug facility
...
not perfect, since the borders can be overdrawn afterwards
but still pretty useful
2017-12-28 00:07:23 +01:00
Stefan Seyfried
f6b04a297a
CComponentsHeader: fix text position if icon is removed
2017-12-28 00:07:23 +01:00
Thilo Graf
51fc78c7e7
CComponentsWindow: add method to set background image in window classes
...
- setBodyBGImage() exists as member of base class CCDraw and had
no visual effect in this class, because visibility of window container is disabled.
This additional member overloads the original methode and is using functionality from
window body object. Example for buildinfo added.
TODO:
- background behavior of embedded objects must be global adapted if a background image is used
2017-12-23 16:30:11 +01:00
Thilo Graf
39fb9f47f4
CComponentsFooter: fix force re init of button container
...
clear() removes only items and their instances inside button container, but all
other properties (e.g. width) are not touched. Re init should avoids this.
2017-12-15 18:40:51 +01:00
Thilo Graf
2a2d51d255
CComponentsInfoBox: add possibility for scalable picons
2017-12-10 22:03:41 +01:00
Thilo Graf
e9883cbd2d
cc_item_picture.h: remove virtual declaration from setPicture()
...
Is not really required.
Avoids possible compile/linker errors like "...no reference..." for some
coming changes.
2017-12-04 09:35:57 +01:00
Thilo Graf
caface0a88
CComponentsTimer: try to fix timing on non cst hardware
...
On hd51 and pc hardware was observed full visual timeout progress in message boxes.
Timeoout was displayed always without visible progress.
This should fix this.
2017-11-23 16:37:48 +01:00
svenhoefer
0fc3e793a4
- neutrino: unify modes handling; ...
...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes
Signed-off-by: Thilo Graf <dbt@novatux.de >
2017-11-22 15:42:09 +01:00
Thilo Graf
94517d3404
src/gui/components/cc_frm_window.cpp: fix too small left bottom corner
...
radius is allready calculatetd in base class src/gui/components/cc_frm.cpp
in member CComponentsForm::paintCCItems()
NOTE:
It seems the radius calculation inside framebuffer don't working correct
for corners on the right site on top and bottom.
Seen on hd51 hardware on osd-boxes with shadow
(e.g. infobar) or Boxes with frames e.g. on error message windows, buttons.
There are pixel errors like minimal holes on osd or displaced pixels.
On CST hardware evreything is ok.
2017-11-19 21:12:42 +01:00
Jacek Jendrzej
75fd96f6b7
silence -Wparentheses-equality warning
2017-11-03 20:14:37 +01:00
Thilo Graf
ccb19a8880
Merge branch 'pu/mp' into 'master'
2017-10-17 20:38:58 +02:00
Thilo Graf
e169a76ff9
CComponentsPIP: use default background image as default image
2017-10-17 20:02:23 +02:00