Commit Graph

45 Commits

Author SHA1 Message Date
Stefan Seyfried
71361684d8 msgbox: remove duplicated code 2017-03-04 19:55:59 +01:00
Stefan Seyfried
e1b50ee304 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)
2017-03-04 19:49:48 +01:00
Jacek Jendrzej
98afb08c5d supplement to 1f5778b769, add stop msg 2017-02-24 12:30:33 +01:00
Jacek Jendrzej
1f5778b769 src/gui/widget/msgbox.cpp dont block record msg 2017-02-23 20:41:54 +01:00
Thilo Graf
b8dabf2bf9 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.
2017-02-01 11:34:00 +01:00
Thilo Graf
26ec29dc79 CMsgBox: remove debug output
Not longer required.
2016-12-27 18:18:00 +01:00
Thilo Graf
22a7006644 megbox.cpp/h: add overloaded version of ShowMsg() with string/locale combination
Constellation was missed.
2016-12-23 20:51:39 +01:00
Thilo Graf
4382daf5e4 Message timeout: try to fix timeout defines
Some parameters were confused.
2016-12-08 12:54:37 +01:00
svenhoefer
9607957e07 Message Timeouts: add possibilty to change timeout for static messages
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-12-02 21:32:15 +01:00
Thilo Graf
d632d66581 CMsgBox: reduce flicker effects with single button
Disabled refresh avoids unnecessary repaints with possible flicker effects
on pressed navi keys.
2016-11-29 16:31:44 +01:00
Thilo Graf
644063d2c8 Messages: move window to top of screen
User request.
2016-11-22 11:01:30 +01:00
Thilo Graf
8b97f72ed1 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.
2016-11-22 10:32:10 +01:00
Thilo Graf
01893dfefc CMsgBox: enable button background as default 2016-11-20 16:33:53 +01:00
Thilo Graf
f2b781dd6d CMsgBox: apply order of color buttons like on remote control
Ensures unified conventions over gui.
2016-10-27 12:17:29 +02:00
Thilo Graf
f1e4723964 CMsgBox: add option for No Yes button arrangement
Useful if order of red and green buttons must be changed.
Return values are untouched.
2016-10-27 12:17:24 +02:00
Thilo Graf
3a6f9e5ffa CMsgBox: add missing disableTimeOutBar()
addendum to
CHintBox: move showTimeOutBar() to protected, add params to enableTimeOutBar()
2016-10-26 09:55:55 +02:00
Thilo Graf
a80b861cb5 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.
2016-10-25 08:53:23 +02:00
Thilo Graf
3280b44471 CMsgBox: ensure reset of progress value on used key 2016-10-24 10:31:27 +02:00
Thilo Graf
d50ef787a2 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.
2016-10-24 10:31:27 +02:00
Thilo Graf
cb3699deb5 CHintbox/CMsgBox: add vizualized timeout bar 2016-10-24 10:31:27 +02:00
Thilo Graf
857b494c47 CMsgBox: use same colors for window body, footer and button container 2016-10-24 10:31:26 +02:00
Thilo Graf
3e01cbe1ac CMsgBox: set some alternate keys to default key values 2016-10-24 10:31:26 +02:00
Thilo Graf
b272c407d7 CMsgBox: add colors to debug output 2016-10-24 10:31:25 +02:00
Thilo Graf
2e631fd0ce Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed
2016-10-24 10:31:25 +02:00
Thilo Graf
be740c1552 CMsgBox: add option to enable/disable button background
replaces var name btn_contour for better plausibility
2016-10-24 10:31:24 +02:00
Thilo Graf
dde298b1b7 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
2016-10-24 10:31:24 +02:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
svenhoefer
2911e638c7 - add listModeKey() function to simplify these calls 2016-09-09 10:42:46 +02:00
svenhoefer
54f2ac510f - fonts: add and use own font for all footers 2016-08-15 19:02:42 +02:00
svenhoefer
bc39d1e14e - 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
svenhoefer
ba9a54a0a9 - 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
ab7c67d2b0 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.
2016-07-27 21:38:49 +02:00
[CST] Focus
302642cee7 neutrino: add webtv channel list mode 2016-03-23 16:36:00 +03:00
M. Liebmann
b9400110b4 Enable gradient for all remaining GUI header 2014-10-16 09:49:28 +02:00
svenhoefer
649d1b1f9d - change RenderString() default to UTF8 2014-06-11 23:07:13 +02:00
svenhoefer
8b91cda918 - change getRenderWidth() default to UTF8 2014-06-11 23:07:00 +02:00
Michael Liebmann
c60c5c5ce3 Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +02:00
Stefan Seyfried
230096c050 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.
2013-04-05 18:29:08 +04:00
Thilo Graf
694d995415 CMsgBox: fix build
merge error: mode is not declared
2012-11-05 21:26:22 +01:00
satbaby
926e0ce141 initialize not initialized var 2012-11-05 09:24:51 +01:00
Thilo Graf
d1f22aa20c *includes: add global.h 2012-08-21 09:48:22 +01:00
satbaby
8f59cc96ec change 'long long' tom int64_t'; change variable buf to new delete;
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@291 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-07 14:32:21 +00:00
mws
6e718d8987 fix shadow stuff and initializers....
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@118 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-23 12:08:43 +00:00
mws
1b13da2617 Mark unused vars as comment
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@104 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-21 16:23:09 +00:00
mrcolor
bc5bd4154e our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-08 11:05:11 +00:00