Commit Graph

836 Commits

Author SHA1 Message Date
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
Thilo Graf
49d38582e5 CColorChooser: fix missing rewrite current values to *value[selected]
Supplement to commit:
	CColorChooser: fix compile conversion warnings
	730835160d


Origin commit data
------------------
Commit: 9801c3100c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-19 (Sun, 19 Mar 2017)

Origin message was:
------------------
CColorChooser: fix missing rewrite current values to *value[selected]

Supplement to commit:
	CColorChooser: fix compile conversion warnings
	730835160d
2017-03-19 16:06:04 +01:00
Thilo Graf
730835160d CColorChooser: fix compile conversion warnings
Origin commit data
------------------
Commit: 3b5cd00bf4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-14 (Tue, 14 Mar 2017)

Origin message was:
------------------
CColorChooser: fix compile conversion warnings
2017-03-14 09:42:30 +01:00
vanhofen
9c009ade29 unify DetailsLine-names; move define to settings.h
Origin commit data
------------------
Commit: 5b0faeab8c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-13 (Mon, 13 Mar 2017)

Origin message was:
------------------
- unify DetailsLine-names; move define to settings.h
2017-03-13 12:40:04 +01:00
Thilo Graf
616904958c 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.


Origin commit data
------------------
Commit: c766a970dc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-11 (Sat, 11 Mar 2017)
2017-03-11 00:45:25 +01:00
Stefan Seyfried
e56dde123a msgbox: deobfuscate assignment of default result value
Origin commit data
------------------
Commit: 2cef61bd8e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-03-07 (Tue, 07 Mar 2017)
2017-03-10 19:10:06 +01:00
Thilo Graf
4f6d09bc1f CTextBox: fix pass of SCROLL_FRAME_WIDTH
Origin commit data
------------------
Commit: 4c388bb71c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-06 (Mon, 06 Mar 2017)
2017-03-06 21:11:08 +01:00
Stefan Seyfried
6bf879b03c msgbox: remove explicit handling of record events
these are handled in the last else clause anyway


Origin commit data
------------------
Commit: f80f69c232
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-03-04 (Sat, 04 Mar 2017)
2017-03-05 19:53:34 +01:00
Stefan Seyfried
d178f57c41 msgbox: remove duplicated code
Origin commit data
------------------
Commit: c3ab1b91d8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-03-04 (Sat, 04 Mar 2017)
2017-03-05 19:53:34 +01:00
Stefan Seyfried
c6a36ed677 unbreak msgbox
the "if (msg)" was basically always true, killing all keys that were not
handled in this clause (e.g. it was not possible to switch the box from
standby if a plugin with output was running during standby)


Origin commit data
------------------
Commit: f9b7fca210
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-03-04 (Sat, 04 Mar 2017)
2017-03-05 19:53:34 +01:00
Jacek Jendrzej
ea3cfe55c8 src/gui/widget/msgbox.cpp init result
Origin commit data
------------------
Commit: d5cf652763
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-05 (Sun, 05 Mar 2017)
2017-03-05 14:41:15 +01:00
vanhofen
a9edf315db rename g_PluginList to g_Plugins; this isn't a list of plugins
Origin commit data
------------------
Commit: 856c676430
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-01 (Wed, 01 Mar 2017)

Origin message was:
------------------
- rename g_PluginList to g_Plugins; this isn't a list of plugins
2017-03-01 13:03:50 +01:00
Jacek Jendrzej
ca7fb7b95f supplement to 10a28d34b4, add stop msg
Origin commit data
------------------
Commit: 98afb08c5d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-02-24 (Fri, 24 Feb 2017)
2017-02-24 12:30:33 +01:00
Jacek Jendrzej
10a28d34b4 src/gui/widget/msgbox.cpp dont block record msg
Origin commit data
------------------
Commit: 1f5778b769
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-02-23 (Thu, 23 Feb 2017)
2017-02-23 20:41:54 +01:00
Michael Liebmann
31c041a325 Fix compiler format warnings
Origin commit data
------------------
Commit: e35969afe2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-22 (Wed, 22 Feb 2017)
2017-02-22 06:24:48 +01:00
Thilo Graf
14f4e34218 CProgressWindow: add documentation for Doxygen
Origin commit data
------------------
Commit: 45e77707f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-10 (Fri, 10 Feb 2017)
2017-02-13 09:02:43 +01:00
Thilo Graf
36958f4e7e CProgressWindow: use using namespace for std and sigc
Makes more clearly


Origin commit data
------------------
Commit: a3c93f4236
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-10 (Fri, 10 Feb 2017)
2017-02-13 09:02:43 +01:00
Thilo Graf
a1598cb703 CProgressWindow: add possibility to show progress via signal
Origin commit data
------------------
Commit: 842c8e79bb
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-10 (Fri, 10 Feb 2017)
2017-02-13 09:02:43 +01:00
Thilo Graf
ae97c4e398 CProgressWindow: allow variable max value, allow define dimensions
Origin commit data
------------------
Commit: 547238bfdd
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-10 (Fri, 10 Feb 2017)
2017-02-13 09:02:43 +01:00
Stefan Seyfried
8107c333eb set useful thread names for all spawned threads
Origin commit data
------------------
Commit: 5188f721c4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)
2017-02-12 22:55:36 +01:00
Stefan Seyfried
30fd1a003c cc: reduce impact of cc_draw header from 161 to 4 files
Origin commit data
------------------
Commit: 58c6dbf469
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)
2017-02-12 22:50:44 +01:00
Michael Liebmann
c1dd0ff7de Merge branch 'master' into pu/fb-modules
Origin commit data
------------------
Commit: db8ea57da2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-09 (Thu, 09 Feb 2017)
2017-02-09 22:58:09 +01:00
Thilo Graf
829d045a99 CMenuWidget: remove dub code from init
Origin commit data
------------------
Commit: 0435ca20a3
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-09 (Thu, 09 Feb 2017)
2017-02-09 16:35:03 +01:00
Thilo Graf
a3f59e7c4a CMenuWidget: use only nameString as container for widget name
neutrino_locale_t	name could be transformed always to real string to
unify this container


Origin commit data
------------------
Commit: 2dda93ed2b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-09 (Thu, 09 Feb 2017)
2017-02-09 15:52:39 +01:00
Michael Liebmann
922fc5b74f Merge branch 'master' into pu/fb-modules
Origin commit data
------------------
Commit: 6890e003ae
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-09 (Thu, 09 Feb 2017)
2017-02-09 08:46:47 +01:00
vanhofen
8f0d3e0a5f helpbox: fix display of text after scroll; thx to DboxOldie
Origin commit data
------------------
Commit: 4b55d2597f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-09 (Thu, 09 Feb 2017)

Origin message was:
------------------
- helpbox: fix display of text after scroll; thx to DboxOldie
2017-02-09 08:29:07 +01:00
Michael Liebmann
534d1b315e Merge branch 'master' into pu/fb-modules
Origin commit data
------------------
Commit: ef61905a2d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-08 (Wed, 08 Feb 2017)
2017-02-08 20:16:41 +01:00
Stefan Seyfried
4fc79052ea move gui/color.h includes from headers to cpp files
Origin commit data
------------------
Commit: 648c00f26a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)
2017-02-07 17:23:42 +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
Stefan Seyfried
8b4c30e093 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)


Origin commit data
------------------
Commit: e490f84ea8
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
d5c3981f10 CTextBox: compare condition for text render more precisely
Origin commit data
------------------
Commit: 95de68c5a5
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-07 (Tue, 07 Feb 2017)
2017-02-07 17:12:25 +01:00
Thilo Graf
60d1b4b302 Helpbox: fix missing text after page repaint
Origin commit data
------------------
Commit: 9f7605127a
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-06 (Mon, 06 Feb 2017)
2017-02-07 17:12:25 +01:00
Thilo Graf
eff64072c2 Revert "CMenuWidget: ensure repaint of all header content if it is already painted"
This reverts commit 04cec1bdf4.


Origin commit data
------------------
Commit: a2f9d4b462
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-02 (Thu, 02 Feb 2017)
2017-02-02 11:18:27 +01:00
Thilo Graf
23811afa46 Messages: add timeout parameter for error and info messages
I'm not sure if it is a good idea to set a global timeout for
all error messages. This should be decided for respective cases.
Timeout for info messages should not be a problem.
The default timeout is set here as global.


Origin commit data
------------------
Commit: b8dabf2bf9
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-01 (Wed, 01 Feb 2017)
2017-02-01 11:34:00 +01:00
Thilo Graf
04cec1bdf4 CMenuWidget: ensure repaint of all header content if it is already painted
TODO: 	This should be controlled inside header base class.
	paint() method seems suitable.
	I Will try to implement it soon.


Origin commit data
------------------
Commit: 97ed7cdaf7
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-30 (Mon, 30 Jan 2017)
2017-01-31 16:36:43 +01:00
Thilo Graf
686bc2ce6a CMenuWidget: add missing hide() for details line
Details_line was not removed in all constellations when menu was closed.
Sample: open main menue and select an entry with connect-line, eg. plugins,
press key to come into submenu, then go back to main menue and close
menu with home key, result: it's possible that line is still on screen.


Origin commit data
------------------
Commit: 76008371ff
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-27 (Fri, 27 Jan 2017)
2017-01-31 16:36:42 +01:00
Thilo Graf
ef6f65cbfb CTextBox: fix m_old_cText update after text paint
refreshText() executes loop also for text with more than one line
and m_old_cText attribut should be updated only if loop is ready. Otherwise
in text boxes with more than one line, only first line would be painted.


Origin commit data
------------------
Commit: 2f24e98252
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
cd3239a523 CTextBox: rework return control of value of setText() function
value was not clearly, hope i'ts now


Origin commit data
------------------
Commit: 1120e3a37d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-17 (Tue, 17 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
f3fa638e29 CTextBox: add attribut 'm_bg_painted'
Shoul help in together with changed text content
to control required text render.


Origin commit data
------------------
Commit: d31deac545
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
a70f4d2974 CTextBox: remove text reinit from reInitToCompareVar()
Will be already done after each text render.


Origin commit data
------------------
Commit: ae903ddb2f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-16 (Mon, 16 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
02ee99fe00 CTextBox: paint bg always if pixbuffer exists
Should prevent unintended possible overlap on multiple font render.


Origin commit data
------------------
Commit: 9b69803ca4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-10 (Tue, 10 Jan 2017)
2017-01-31 16:36:41 +01:00
Michael Liebmann
de73bdf3d4 fontrenderer: Rework rendering for better font presentation
- For the correct use of the changes should be built freetype
 with the following settings:
 #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
 #define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING


Origin commit data
------------------
Commit: 97d1d93c93
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-01-24 (Tue, 24 Jan 2017)

Origin message was:
------------------
fontrenderer: Rework rendering for better font presentation

 - For the correct use of the changes should be built freetype
  with the following settings:
   #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
   #define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
2017-01-31 16:36:40 +01:00
Thilo Graf
b29b69a39b CMenuWidget: Forcing removal of details line during removing of hint box.
Origin commit data
------------------
Commit: 6a3778ba93
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-30 (Mon, 30 Jan 2017)
2017-01-30 11:27:55 +01:00
Stefan Seyfried
b1a0ea6024 shellwindow: reduce update interval
Origin commit data
------------------
Commit: edab27be92
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Stefan Seyfried
1956eb6bba shellwindow: ensure text is set correctly and only when necessary
Origin commit data
------------------
Commit: d372892ef5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Stefan Seyfried
199bf36a28 shellwindow: use run_pty() instead of my_popen()
Origin commit data
------------------
Commit: 046de91ce6
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Stefan Seyfried
f17233f682 textbox: fix output for BOTTOM mode
If more text is added to a textbox than fits into the window, the last
lines are stripped. In BOTTOM (and non-SCROLL) mode, it makes more sense
to strip the first lines. This is used by shellwindow, e.g. in package
management menu.


Origin commit data
------------------
Commit: b623aad5c3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Stefan Seyfried
43a9c2f71d shellwindow: use time_monotonic_ms()
Origin commit data
------------------
Commit: 9d5fc68b83
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Stefan Seyfried
e32ff6b40a hintbox: restore proper handling of up/down keys
When no scrollbar is present, just pass through up/down keys instead
of only canceling the hintbox. This restores the behaviour before
commit 11b3307251.
Prominent examle is the "channel not available" popup which prevented
further channel switching until canceled.


Origin commit data
------------------
Commit: 5f93b57d84
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 21:27:45 +01:00
Jacek Jendrzej
542ba9679a fix uninitialised values
Origin commit data
------------------
Commit: f76dda36df
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 20:54:35 +01:00