Commit Graph

56 Commits

Author SHA1 Message Date
Thilo Graf
84439d05ee hintbox/msgbox: add more specific thread names
For better tracing while debugging.


Origin commit data
------------------
Commit: 957b5e00ea
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-01-01 (Tue, 01 Jan 2019)
2019-01-01 21:50:50 +01:00
Thilo Graf
dde30a382e src/gui/widget/msgbox.cpp: add missing handling of RC_home message
Required in case of usage without explicit undefined home button.


Origin commit data
------------------
Commit: ebffa8073f
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-29 (Sun, 29 Apr 2018)
2018-04-29 03:13:07 +02:00
vanhofen
c4885eb09a msgbox: add missing handling of RC_home as cancel key
Origin commit data
------------------
Commit: 8f2d5302f4
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-03-26 (Mon, 26 Mar 2018)

Origin message was:
------------------
- msgbox: add missing handling of RC_home as cancel key
2018-03-26 20:39:49 +02:00
Stefan Seyfried
c9d4fdd9cc 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 ;-)


Origin commit data
------------------
Commit: 0d9139054a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-10-01 (Sun, 01 Oct 2017)
2017-10-02 13:43:57 +02:00
vanhofen
402c567fe7 add and use FRAME_WIDTH defines; ...
replace other fixed frame widths with OFFSET defines

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 6ee3e54741
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-20 (Wed, 20 Sep 2017)

Origin message was:
------------------
- 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
9729665f49 CMsgBox: fix paint of footer buttons
Only paint of button container is required.


Origin commit data
------------------
Commit: 37387a3e69
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
2017-05-21 18:00:21 +02:00
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
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
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
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
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
5f4aa39993 CMsgBox: remove debug output
Not longer required.


Origin commit data
------------------
Commit: 26ec29dc79
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-25 (Sun, 25 Dec 2016)
2016-12-27 18:18:00 +01:00
Thilo Graf
a98daeccc6 megbox.cpp/h: add overloaded version of ShowMsg() with string/locale combination
Constellation was missed.


Origin commit data
------------------
Commit: 22a7006644
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-23 (Fri, 23 Dec 2016)
2016-12-23 20:51:39 +01:00
Thilo Graf
45b558cec7 Message timeout: try to fix timeout defines
Some parameters were confused.


Origin commit data
------------------
Commit: 4382daf5e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-07 (Wed, 07 Dec 2016)
2016-12-08 12:54:37 +01:00
vanhofen
f03e2a20ae Message Timeouts: add possibilty to change timeout for static messages
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 9607957e07
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-01 (Thu, 01 Dec 2016)
2016-12-02 21:32:15 +01:00
Thilo Graf
e8d7f2503c CMsgBox: reduce flicker effects with single button
Disabled refresh avoids unnecessary repaints with possible flicker effects
on pressed navi keys.


Origin commit data
------------------
Commit: d632d66581
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-29 (Tue, 29 Nov 2016)
2016-11-29 16:31:44 +01:00
Thilo Graf
3bed87466a Messages: move window to top of screen
User request.


Origin commit data
------------------
Commit: 644063d2c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-22 (Tue, 22 Nov 2016)
2016-11-22 11:01:30 +01:00
Thilo Graf
97b57a783d Messages: try to fix API message handling
Passed timeout for messeages an popup's fired by yWeb API was not really
ok.
For popups now we have a setting with default value of 6 seconds timeout
Popups fired with ShowHint() use this as default. Value of 0 and -1
are ignored.
Messages fired with ShowMsg() should be fixed and interpret
value 0 or -1 as no timeout and will remain on the screen.


Origin commit data
------------------
Commit: 8b97f72ed1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-22 (Tue, 22 Nov 2016)
2016-11-22 10:32:10 +01:00
Thilo Graf
8e1bc39318 CMsgBox: enable button background as default
Origin commit data
------------------
Commit: 01893dfefc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 16:33:53 +01:00
Thilo Graf
e46fc182dd CMsgBox: apply order of color buttons like on remote control
Ensures unified conventions over gui.


Origin commit data
------------------
Commit: f2b781dd6d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)
2016-10-27 12:17:29 +02:00
Thilo Graf
b07cc5fa96 CMsgBox: add option for No Yes button arrangement
Useful if order of red and green buttons must be changed.
Return values are untouched.


Origin commit data
------------------
Commit: f1e4723964
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)
2016-10-27 12:17:24 +02:00
Thilo Graf
1b71ff63e9 CMsgBox: add missing disableTimeOutBar()
addendum to
CHintBox: move showTimeOutBar() to protected, add params to enableTimeOutBar()


Origin commit data
------------------
Commit: 3a6f9e5ffa
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-26 (Wed, 26 Oct 2016)
2016-10-26 09:55:55 +02:00
Thilo Graf
23a56859aa CHintBox: move showTimeOutBar() to protected, add params to enableTimeOutBar()
Explicit call of disableTimeOutBar() after exec() is required to ensure
we have no timebar opened objects. I'm not shure, but otherwise crashs
could be possible.

showTimeOutBar() is required for OnTimer(). It doesn't need any
parameter.


Origin commit data
------------------
Commit: a80b861cb5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-25 (Tue, 25 Oct 2016)
2016-10-25 08:53:23 +02:00
Thilo Graf
c28b7d4a23 CMsgBox: ensure reset of progress value on used key
Origin commit data
------------------
Commit: 3280b44471
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-17 (Mon, 17 Oct 2016)
2016-10-24 10:31:27 +02:00
Thilo Graf
d16159d80a CMsgBox: enlarge footer height
Buttons has too small offset to bottom of footer.
Framed and shaded buttons are arranged on the top of footer, so
we have a larger offset.


Origin commit data
------------------
Commit: d50ef787a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-14 (Fri, 14 Oct 2016)
2016-10-24 10:31:27 +02:00
Thilo Graf
deca218ec8 CHintbox/CMsgBox: add vizualized timeout bar
Origin commit data
------------------
Commit: cb3699deb5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-11 (Tue, 11 Oct 2016)
2016-10-24 10:31:27 +02:00
Thilo Graf
cdedefca33 CMsgBox: use same colors for window body, footer and button container
Origin commit data
------------------
Commit: 857b494c47
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-05 (Wed, 05 Oct 2016)
2016-10-24 10:31:26 +02:00
Thilo Graf
1352603017 CMsgBox: set some alternate keys to default key values
Origin commit data
------------------
Commit: 3e01cbe1ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-05 (Wed, 05 Oct 2016)
2016-10-24 10:31:26 +02:00
Thilo Graf
0efab9494e CMsgBox: add colors to debug output
Origin commit data
------------------
Commit: b272c407d7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-03 (Mon, 03 Oct 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
7179f3d3f0 Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
36d6eeea06 CMsgBox: add option to enable/disable button background
replaces var name btn_contour for better plausibility


Origin commit data
------------------
Commit: be740c1552
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)
2016-10-24 10:31:24 +02:00
Thilo Graf
11b3307251 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details


Origin commit data
------------------
Commit: dde298b1b7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-04 (Mon, 04 Apr 2016)
2016-10-24 10:31:24 +02:00
vanhofen
f21851aec0 rename SHADOW_OFFSET -> OFFSET_SHADOW
Origin commit data
------------------
Commit: 5d450c60d3
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- rename SHADOW_OFFSET -> OFFSET_SHADOW
2016-10-10 14:19:55 +02:00
vanhofen
fa2686a90e add listModeKey() function to simplify these calls
Origin commit data
------------------
Commit: 2911e638c7
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-09 (Fri, 09 Sep 2016)

Origin message was:
------------------
- add listModeKey() function to simplify these calls
2016-09-09 10:42:46 +02:00
vanhofen
e49ee18fb3 fonts: add and use own font for all footers
Origin commit data
------------------
Commit: 54f2ac510f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)

Origin message was:
------------------
- fonts: add and use own font for all footers
2016-08-15 19:02:42 +02:00
vanhofen
78230ead13 colors: some internal renamings
* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable


Origin commit data
------------------
Commit: bc39d1e14e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-14 (Sun, 14 Aug 2016)

Origin message was:
------------------
- colors: some internal renamings

* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable
2016-08-14 21:55:18 +02:00
vanhofen
099c59ee8b messagebox/msgbox: respect user colors for inactive buttons; ...
paint buttons with shadow and small frame


Origin commit data
------------------
Commit: ba9a54a0a9
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-12 (Fri, 12 Aug 2016)

Origin message was:
------------------
- messagebox/msgbox: respect user colors for inactive buttons; ...

paint buttons with shadow and small frame
2016-08-12 15:35:22 +02:00
Thilo Graf
e0d158738a CMsgBox: ensure repaint of background
This fixes "transparent holes", because textbox object is responsible
for text.

The problem here is that the message box has a fixed width and text box
width is not really considered. This should be fixed, but CMsgBox class
is used only by CMovieinfo class and this should be enough for the moment.


Origin commit data
------------------
Commit: ab7c67d2b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-07-27 (Wed, 27 Jul 2016)
2016-07-27 21:38:49 +02:00
[CST] Focus
38ede6dfb0 neutrino: add webtv channel list mode
Origin commit data
------------------
Commit: 302642cee7
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2016-03-23 (Wed, 23 Mar 2016)
2016-03-23 16:36:00 +03:00
Michael Liebmann
baf7ffea36 Enable gradient for all remaining GUI header
Origin commit data
------------------
Commit: b9400110b4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-10-16 (Thu, 16 Oct 2014)
2014-10-16 09:49:28 +02:00
vanhofen
98c0a441d8 change RenderString() default to UTF8
Origin commit data
------------------
Commit: 649d1b1f9d
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
vanhofen
3bba3094e2 change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Michael Liebmann
7b6498d39f Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values


Origin commit data
------------------
Commit: c60c5c5ce3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-11 (Thu, 11 Jul 2013)
2013-07-21 22:00:58 +02:00
Stefan Seyfried
78e1332111 msgbox: add rounded corners
This is not entirely correct, as the corners will be wong
if a msgbox without header or footer is used. But as the
only place where this is used is ShowMsg2UTF() which has
header and footer, it does not matter right now.


Origin commit data
------------------
Commit: 230096c050
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)
2013-04-05 18:29:08 +04:00
Thilo Graf
abfc54b3fe CMsgBox: fix build
merge error: mode is not declared


Origin commit data
------------------
Commit: 694d995415
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)
2012-11-05 21:26:22 +01:00