Commit Graph

1212 Commits

Author SHA1 Message Date
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
Jacek Jendrzej
4b8cf23d70 Merge branch 'master' into pu/mp 2017-10-16 13:17:17 +02:00
Thilo Graf
c7a2dd70fc CComponentsFooter: rework uniformed arrangement
Some parts were incomplete treated with defined parameter
'label_width' and/or 'chain_width'.
2017-10-13 12:35:59 +02:00
Jacek Jendrzej
7ad4a0e6cc Merge branch 'master' into pu/mp 2017-10-02 13:56:25 +02:00
Stefan Seyfried
0d9139054a remove "using namespace std" from header files
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
2017-10-02 13:43:57 +02:00
Jacek Jendrzej
b7ceb705a0 Merge branch 'master' into pu/mp 2017-09-26 12:52:04 +02:00
svenhoefer
95ab4ac708 - detailsline: reduce two times the shadow width from the h_marks
Otherwise shadows will be painted lower then the height of the object
the detailsline is docked to.
2017-09-26 12:41:05 +02:00
Stefan Seyfried
9e2a7d7f79 add LUA_CFLAGS everywhere widget/menue.h is used 2017-09-26 12:41:05 +02:00
Thilo Graf
dca7e10179 cc_detailsline.cpp: fix possible unintended reduced height of bottom marker
Decrement value removed.

Height of bottom marker was decreased on every new repaint if no new
height was assigned. Was to see in bouqueteditor while scrolling with bouqets or
channel select window.

comes in with 9948649f55
2017-09-24 22:27:46 +02:00
Jacek Jendrzej
17afd5c87a Merge branch 'master' into pu/mp 2017-09-21 18:47:32 +02:00
Jacek Jendrzej
bdd23e0ece fix stack buffer underflow 2017-09-21 18:46:21 +02:00
M. Liebmann
abfb02aa47 Merge branch 'master' into pu/mp 2017-09-21 09:07:15 +02:00
svenhoefer
6ee3e54741 - add and use FRAME_WIDTH defines; ...
replace other fixed frame widths with OFFSET defines

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-09-20 21:29:53 +02:00
Thilo Graf
ecdc1acb9f CComponentsFrmClock: Using less chars for time string.
Current count of chars could be not enough in some cases.
2017-09-20 21:29:53 +02:00
Jacek Jendrzej
756f464a3f Merge branch 'master' into pu/mp 2017-09-19 12:40:58 +02:00
Jacek Jendrzej
b1f820aa44 fix start clock supplement to d30bd0ea26 2017-09-19 12:40:02 +02:00
Jacek Jendrzej
e3998c1ced Merge branch 'master' into pu/mp 2017-09-15 20:44:49 +02:00
vanhofen
d873aef1e8 - rename SLIDER defines 2017-09-15 20:17:48 +02:00
Jacek Jendrzej
2ebb47f519 Merge branch 'master' into pu/mp 2017-09-14 13:54:04 +02:00
Jacek Jendrzej
513850f915 try to fix tm thread 2017-09-14 12:09:40 +02:00
Jacek Jendrzej
23797d29c0 Merge branch 'master' into pu/mp 2017-08-29 11:26:54 +02:00
Thilo Graf
6e310a8157 comments: fix copy paste errors 2017-08-28 12:16:45 +02:00
Thilo Graf
c743cb632b cc_item_shapes.cpp/h: Add method to create draw boxes without explicit objects 2017-08-28 12:16:45 +02:00