Commit Graph

822 Commits

Author SHA1 Message Date
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
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
Thilo Graf
4c71edbd3c CComponentsText: add explicit kill methode and add ct_force_text_paint
After hide or kill text will does not paint without ct_force_text_paint,
so it is required to add this.
2017-01-31 16:36:42 +01:00
Thilo Graf
cbeecab801 CComponentsExtTextForm: init with gradient support and sl_repaint slot 2017-01-31 16:36:41 +01:00
Thilo Graf
5c8aa90e01 CComponentsForm: add some usefull slots/signal to help paint backgrounds
Requried to paint form items only on changed contents and on repaint
2017-01-31 16:36:41 +01:00
Thilo Graf
384e98c089 CCDraw: add new attribut force_paint_bg
should help for some repaint actions
2017-01-31 16:36:41 +01:00
Thilo Graf
8bd4633cb4 CComponentsText: fix order of paint init 2017-01-31 16:36:41 +01:00
Thilo Graf
26eb4d079b Experimental try to rework isPainted() 2017-01-31 16:36:41 +01:00
Thilo Graf
81f26a327d CComponentsFrmClock: add slot to handle enforced repaint of segments
If clock removed from screen and instance is not destroyed, then we must
ensure repaint of segments after painted background.

This is required if segments are only will paint if
their content was changed and attribut ct_force_text_paint = false.
2017-01-31 16:36:41 +01:00
Thilo Graf
0eb8c7b173 CCDraw: add signal OnAfterPaintBg 2017-01-31 16:36:41 +01:00
Thilo Graf
44eebba080 CCDraw: simplified statement for blink init 2017-01-31 16:36:40 +01:00
Thilo Graf
cced4eba9a CComponentsLabel: Added missing overloaded counterpart to CComponentsText(parent) constructor. 2017-01-31 16:36:40 +01:00
Thilo Graf
2e24663a3f cc_types.h: remove obsolete type enums 2017-01-31 16:36:40 +01:00
Thilo Graf
c42f1240f0 CComponentsText: fix wrong item type 2017-01-31 16:36:40 +01:00
Thilo Graf
58316d2091 CComponentsHeader: fix order inside overloaded methode setCaption()
Stop() was never touched with string version of setCaption()
2017-01-31 16:36:40 +01:00
Jacek Jendrzej
f045fb18e9 src/gui/components/cc_item_progressbar.cpp revert static 2017-01-30 19:26:44 +01:00
Jacek Jendrzej
0056a53321 some inits 2017-01-30 19:04:17 +01:00
Jacek Jendrzej
f4f351e9ba some inits 2017-01-30 17:22:41 +01:00
Thilo Graf
5f0aea48d2 CComponentsDetailLine: remove multiple init of cc_save_bg.
Init is passed with paintFbItems() at the end of paint() methode.
2017-01-30 11:27:49 +01:00
Jacek Jendrzej
f76dda36df fix uninitialised values 2017-01-29 20:54:35 +01:00
Thilo Graf
002cc4c74e CComponentsFrmClock: add missing reinit 2017-01-09 21:28:59 +01:00
Thilo Graf
d0aa901d70 CComponentsFrmClock: disable digit height
Using of digit height is not really required here.
eg. better centering
2017-01-09 20:47:46 +01:00
Thilo Graf
ffeb2d6459 CComponentsFrmClock/CInfoClock: simplify font init 2017-01-08 14:39:38 +01:00
Thilo Graf
a9b8b22339 CComponentsFooter: optimize button position and size
Buttons are now smaller so it should be enough, to center only, if not
please report.
2017-01-05 22:53:31 +01:00
Thilo Graf
60a77d38b3 CComponentsFooter: fix default button font type
Deafult buttonfont is FONT_TYPE_BUTTON_TEXT not FONT_TYPE_MENU_FOOT
2017-01-05 22:19:18 +01:00
Thilo Graf
a5d2c2cb1d CComponentsButton: try to fix fallback for font size
Some conditions were not catched.
2017-01-05 22:19:18 +01:00
Thilo Graf
4a03eb6980 CComponentsButton: fix height comparsion
comparsion with itself
2017-01-05 22:19:18 +01:00
Thilo Graf
b335408913 CComponentsButton: try to fix font size in buttons
Some text in button chains had different font sizes. To see in some
Messageboxes.
2016-12-30 20:33:26 +01:00
Thilo Graf
b98319cb91 CComponentsHeader/CComponentsFooter: prevent crash on changed font settings
Default fonts for header and footer must be handled too.
After font settings changes these objects could be invalid.
Default fonts have invalid pointers after font changes too. Extra reset is required.
2016-12-30 20:33:26 +01:00
Thilo Graf
6a3b07152f CComponentsWindow: use FONT_TYPE_BUTTON_TEXT instead FONT_TYPE_MENU_FOOT
Buttton text is not the same like footer text.
2016-12-30 20:33:26 +01:00
Thilo Graf
e9122fbc4b CComponentsTimer: try to fix possible uncanceled thread 2016-12-30 20:33:26 +01:00
Thilo Graf
4cdae3fdf6 CComponentsHeader: declare l_font, s_font as global
Useful for init in header sub classes. So its possible to use
other prefined size mode fonts
2016-12-30 20:33:26 +01:00
Thilo Graf
2889fbd70d CComponentsButton: rename cc_btn_capt -> cc_btn_text
More plausible
2016-12-30 20:33:26 +01:00
Jacek Jendrzej
c0564ec574 some dead assignment 2016-12-29 18:51:06 +01:00
svenhoefer
888bfb6687 - themes: allow progressbar-settings in themes 2016-12-29 00:47:34 +01:00
Thilo Graf
3cd509aa2d CComponentsTimer: disconnecting slots before stop timer thread, show error
Disconnecting of slots before stop threads ensures disconnecting
also on thread errors and keeps timer slots clear.
2016-12-27 18:18:00 +01:00
Thilo Graf
fad2adffa2 partial revert: "CTextBox: expand parameters of member setTextBorderWidth()"
related commit: 153d2f3c78

Since this commit, TextBox received a lot of optimizations, so it is possible
we have no described side effects.
2016-12-22 09:49:40 +01:00
svenhoefer
52ad1f76c2 - cc_frm_scrollbar: use SCROLLBAR_WIDTH define 2016-12-20 10:26:59 +01:00
Thilo Graf
239496c207 CComponentsHeader: ensure to have correct font instances after changed font
On possible changed font settings, font objects can be invalid and
we have a crash. With this fix it's possible, that
CNeutrinoApp::setupFont() method clean up header font object itself.
2016-12-18 20:30:41 +01:00
Thilo Graf
f7ad79c371 CCDraw: add overloaded version of paint Blink()
It's useful to have synchronized timer for more than one item.
2016-12-17 22:39:15 +01:00
svenhoefer
38c621ad5e - cc_frm_scrollbar: fix offsets; use OFFSET defines 2016-12-16 09:03:07 +01:00
svenhoefer
c3439ad09d - cc_frm_scrollbar: set default height to 0 2016-12-16 09:03:07 +01:00
svenhoefer
b46a35cdf4 - cc_frm: avoid artificially offsets 2016-12-16 09:03:07 +01:00