Commit Graph

963 Commits

Author SHA1 Message Date
Thilo Graf
fb0dc47e35 CComponentsFooter: avoid crash because possible divisions by 0 2017-04-13 23:36:29 +02:00
Jacek Jendrzej
b4bb9ef5ea fix init cl_force_repaint 2017-04-13 17:32:24 +02:00
M. Liebmann
c8861ea465 Merge branch 'master' into pu/fb-setmode 2017-04-08 08:30:42 +02:00
Thilo Graf
6135a827da CComponentsItem: disable unused variable 2017-04-08 08:24:41 +02:00
Thilo Graf
47fceca188 CComponentsFooter: add missing member inits 2017-04-08 08:16:05 +02:00
Thilo Graf
3e342a7661 CComponentsHeader: add methode initRepaintSlot() and considered parent
Required in sub classes. Considering of parent ensures usage of
required background color in sub classes.
2017-04-08 08:16:01 +02:00
Thilo Graf
62a2a29a12 CCDraw: remove some debug lines, and override comparisons
This should reduce some effort in this method.
2017-04-08 08:15:54 +02:00
Thilo Graf
bad5f02c06 CComponentsItem: fix possible artefacts if fb box is smaller the radius
If box height/2 is smaller than corner radius it is possible
we have artefacts after killed or hided fb box. This effect only I have seen
with full hd resolution, in hd ready mode it was ok.
Sideeffects with this changes I have not seen, but I can't exclude. Must be watched.
2017-04-08 08:15:49 +02:00
Thilo Graf
c9152beada CComponentsButton: remove unused member 2017-04-08 08:15:45 +02:00
Thilo Graf
6d45fbb4eb CCDraw: fix wrong intit values for corners and position 2017-04-08 08:15:41 +02:00
Thilo Graf
511486c404 CComponentsFrmClock: add members to control segment refreshing on interval
Refreshing of segments is now enabled on default.
In certain conditions this should be better.
2017-04-07 22:00:33 +02:00
M. Liebmann
8212746cf1 Merge branch 'master' into pu/fb-setmode 2017-03-20 23:11:33 +01:00
Thilo Graf
4eb6a315fc 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.
2017-03-20 22:55:05 +01:00
Thilo Graf
e498cc6b09 CComponentsExtTextForm: use scaled default dimension values 2017-03-15 09:58:28 +01:00
Thilo Graf
81cde4836f CComponentsExtTextForm: fix label width calculation 2017-03-15 09:58:10 +01:00
Thilo Graf
f5f2bf92ba CComponentsDetailsLine: add scale to details line width
Also added correction for odd line width values and added
method to change details line width.
2017-03-14 09:41:19 +01:00
Thilo Graf
df48434092 cc_types.h: add scale to CC_WIDTH_MIN/CC_HEIGHT_MIN 2017-03-14 09:41:10 +01:00
M. Liebmann
2677543cc4 Merge branch 'master' into pu/fb-setmode 2017-03-13 21:55:50 +01:00
svenhoefer
5b0faeab8c - unify DetailsLine-names; move define to settings.h 2017-03-13 12:40:04 +01:00
M. Liebmann
fa2fd94f77 Merge branch 'master' into pu/fb-setmode 2017-03-13 09:56:04 +01:00
Thilo Graf
3fa097ebb9 cc_types.h: expand button_label_cc with hint as descrpition for button 2017-03-13 09:45:38 +01:00
Thilo Graf
e777ecdfdb cc_types: move struct button_label_cc into cc_types.h 2017-03-13 09:45:38 +01:00
Thilo Graf
e2ca965ee9 CComponentsFooter: add bg_image to button_label_cc type 2017-03-13 09:45:38 +01:00
M. Liebmann
828329452e Merge branch 'master' into pu/fb-setmode 2017-03-12 06:37:10 +01:00
Thilo Graf
c766a970dc 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.
2017-03-11 00:45:25 +01:00
Thilo Graf
ccb82083e2 CCDraw: add possibility to use background images as item background
Provides functionality to use a backround image instead to render
usual box. If an image is defined, box render is disabled, but behavior
for hide, kill, cache... is not changed.

TODO:
- maybe needs global caching because images are not yet managed like icons in framebuffer class
2017-03-11 00:45:25 +01:00
svenhoefer
8862ef621b - fix funny typo 2017-03-03 09:52:57 +01:00
Thilo Graf
cf9a953b59 CComponentsWindow: use negative values for discret percental dimensions
Also add possibility to use placeholder for better readability and
better compatibilty with previous implementations.
See doc in source files for more details
2017-03-03 09:22:08 +01:00
Thilo Graf
9b6893ee34 CComponentsWindow: add more tags for doxygen 2017-02-26 21:29:53 +01:00
Thilo Graf
055fef8b58 CComponentsWindow: use percentage conversion for dimension values
Dimension values for windows below a certain size are often not really
useful, even with regard to different resolutions.
Usage of percent values could be easier to handle.
In the constructor, the argument values für dimesions must be only
between 1 and 100 to achieve this.

TODO: behavior inside parents
2017-02-26 21:29:53 +01:00
Thilo Graf
803253e3d4 CComponentsScrollBar: remove unnecessary debug output 2017-02-25 00:01:29 +01:00
Stefan Seyfried
c9e1072b94 remove hardware specific code from gui
Use the framebuffer's getWidth4FB_HW_ACC() instead of system/helpers.
The use in cc_item_picture was guarded by a hardware #ifdef, use
needAlign4Blit() instead.

This needs testing on the affected hardware, which I do not have :-)
2017-02-14 20:01:55 +01:00
Stefan Seyfried
5188f721c4 set useful thread names for all spawned threads 2017-02-12 22:55:36 +01:00
Stefan Seyfried
6fdd920e42 CComponentsTimer: allow to set a thread name 2017-02-12 22:51:01 +01:00
Stefan Seyfried
58c6dbf469 cc: reduce impact of cc_draw header from 161 to 4 files 2017-02-12 22:50:44 +01:00
M. Liebmann
0cb26e6e98 Merge branch 'master' into pu/fb-modules 2017-02-12 09:24:08 +01:00
M. Liebmann
0d66899cbd neutrino: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS  => BOXMODEL_CS_HD1
  BOXMODEL_APOLLO => BOXMODEL_CS_HD2
2017-02-12 09:21:04 +01:00
M. Liebmann
ef61905a2d Merge branch 'master' into pu/fb-modules 2017-02-08 20:16:41 +01:00
Stefan Seyfried
98b2461da7 reduce impact of zapit/frontend_c.h header
down from ~217 files to ~57...
2017-02-07 18:38:45 +01:00
Stefan Seyfried
47b1a8b642 reduce impact of driver/pictureviewer.h header file
before, more than 175 files depended on it, now it's about 35
2017-02-07 18:38:45 +01:00
Stefan Seyfried
2303d94300 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
2017-02-07 17:23:42 +01:00
Stefan Seyfried
e490f84ea8 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)
2017-02-07 17:23:42 +01:00
Thilo Graf
06fa3f2488 CComponentsForm: move slots into base classes
Usable for all form classes
2017-02-07 17:12:25 +01:00
Thilo Graf
e4d0abc7dc signals: reduce multiple includes for sigc++/bind.h 2017-02-07 17:12:25 +01:00
Thilo Graf
1c217b404f Forms/header/clock: implement slot into OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Thilo Graf
be8588a4a5 CComponentsSignals: add signal OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Thilo Graf
53f956c0f9 CComponentsText: add signal OnBeforePaint into text paint() methode 2017-01-31 16:36:42 +01:00
Thilo Graf
f219da23bf CComponentsText: add missing parameters to kill() methode 2017-01-31 16:36:42 +01:00
Thilo Graf
ba9284fba7 CComponentsHeader: add missing paramters to kill methode 2017-01-31 16:36:42 +01:00
Thilo Graf
31146bd9af CComponentsForm: remove debug spam 2017-01-31 16:36:42 +01:00