Commit Graph

62 Commits

Author SHA1 Message Date
Thilo Graf
a4da9d28a9 widget/hintbox.cpp: add explicit init of var picon
Had some issues while compile with gcc 7.x.
Exact data type was expected.


Origin commit data
------------------
Commit: 882a4654a8
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-12-04 (Mon, 04 Dec 2017)
2017-12-04 20:16:12 +01:00
vanhofen
20451a9be6 rcinput: simplify calcTimeoutEnd() calls; 0 is "off" by default now
Origin commit data
------------------
Commit: 99cc7f850a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-29 (Fri, 29 Sep 2017)

Origin message was:
------------------
- rcinput: simplify calcTimeoutEnd() calls; 0 is "off" by default now
2017-09-29 10:34:23 +02:00
Thilo Graf
6603d1126e CHintBox: fix possible unintended cut of text
Last line size was not considered.


Origin commit data
------------------
Commit: 87b53a8597
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-09-17 (Sun, 17 Sep 2017)
2017-09-17 21:50:59 +02:00
Thilo Graf
2de45c33b6 Merge branch 'master' into pu/fb-setmode
Origin commit data
------------------
Commit: c0cc7ef192
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
2017-05-21 18:09:22 +02:00
Thilo Graf
1fff9dbad3 CHintBox: use less colors time scale mode for visual timeout
Otherwise probably in this context to much colored with default settings.


Origin commit data
------------------
Commit: 8c29b8e68f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-21 (Sun, 21 May 2017)
2017-05-21 18:00:21 +02:00
Thilo Graf
44af471dd9 CHintBox: fix position in case of missing text
Without text, position was not complete calculated.
Only default position was used.


Origin commit data
------------------
Commit: e48cc87b6f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-17 (Wed, 17 May 2017)
2017-05-17 20:11:28 +02:00
Thilo Graf
caa00d432d CHintBox: fix passed width parameter
Origin commit data
------------------
Commit: 820ea4db3b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-26 (Sun, 26 Feb 2017)
2017-02-26 21:29:53 +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
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
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
Thilo Graf
862f212214 CHintBox: add possibility to left hintbox with RC_up and RC_down
RC_up and RC_down are used for text scroll, but most message texts
are small and no scroll mode is required. In case of large texts
it should falling back to scroll mode.


Origin commit data
------------------
Commit: 1d8de839d5
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-10 (Tue, 10 Jan 2017)
2017-01-11 11:32:32 +01:00
Thilo Graf
91d2fa8784 CHintBox: add overloaded version of setMsgText() with locale parameter
Origin commit data
------------------
Commit: c60accaeae
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-04 (Wed, 04 Jan 2017)
2017-01-05 22:53:47 +01:00
Thilo Graf
02f613dbb7 CHintBox: small cosmetics for initial positions
This should have no effect, because calculation of position and dimensions
is mostly dependency from message text. So this is only formality.


Origin commit data
------------------
Commit: b714998065
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-22 (Thu, 22 Dec 2016)
2016-12-22 10:01:53 +01:00
Thilo Graf
e8039bf784 CHintBox: fix timeout comparsion
default timeout was not defined


Origin commit data
------------------
Commit: bd75701fc3
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-12 (Mon, 12 Dec 2016)
2016-12-12 21:37:17 +01:00
vanhofen
8f55c83ce0 rename BUTTON_TOP to BUTTON_UP; it isn't a top-button
Origin commit data
------------------
Commit: 0dc0789de8
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-07 (Wed, 07 Dec 2016)

Origin message was:
------------------
- rename BUTTON_TOP to BUTTON_UP; it isn't a top-button
2016-12-07 15:37:03 +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
c91143c82d CHintBox: fix missing shadow for popups
Must be enabled with enum, bool has no effect.


Origin commit data
------------------
Commit: e46d65fb92
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-22 (Tue, 22 Nov 2016)
2016-11-22 10:44:50 +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
ae117fae66 Messages: add option to change size of message text
Include default size and localized setup.

TODO: localize for nederlands and slovak, current english only.


Origin commit data
------------------
Commit: 4988df1dd9
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 01:08:14 +01:00
Thilo Graf
5bb70ba9e9 CHintBox: update ascII scheme
Origin commit data
------------------
Commit: 27905b9acf
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
2016-11-12 14:51:18 +01:00
Thilo Graf
527a5ad046 CHintBox: remove center text mode on used picon
Origin commit data
------------------
Commit: 075917e32d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-11 (Fri, 11 Nov 2016)
2016-11-11 23:10:39 +01:00
Thilo Graf
9ea70e4ea7 CHintBox: try to fix truncated chars
Last chars were truncated. Indent and titel text were not considered.


Origin commit data
------------------
Commit: 7f5a576795
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-11 (Fri, 11 Nov 2016)
2016-11-11 21:42:07 +01:00
Thilo Graf
2f89d7ff76 CHintBox: optimize dynamic window width bahavior on different line sizes
Width calculation is now depends on largest line of text.


Origin commit data
------------------
Commit: 0952efaba4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-10 (Thu, 10 Nov 2016)
2016-11-10 11:19:09 +01:00
Thilo Graf
c337d0449e CHintBox/CMsgBox: rework text handling and dynamic size behavior
Origin commit data
------------------
Commit: e3f51f2c91
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-03 (Thu, 03 Nov 2016)
2016-11-10 11:18:56 +01:00
Thilo Graf
0704180bf9 CHintBox: add member to get maximal required width
Origin commit data
------------------
Commit: 4bdd5e11a9
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-31 (Mon, 31 Oct 2016)
2016-11-10 11:15:43 +01: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
ebc13d46b3 CHintBox: try to optimize height and width of message window
Origin commit data
------------------
Commit: a5ce26dfd9
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-23 (Sun, 23 Oct 2016)
2016-10-24 10:31:28 +02:00
Thilo Graf
c8c22653a1 CHintBox: ensure remove timeout bar from screen if hintbox object is closed
Timeout bar is not embedded like other cc items in this form, therefor is
is better to kill this object explicit from screen otherwise it is possible
we hab artefacts after closing of hintbox window.


Origin commit data
------------------
Commit: 6580c5a54a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-21 (Fri, 21 Oct 2016)

Origin message was:
------------------
CHintBox: ensure remove timeout bar from screen if hintbox object is closed

Timeout bar is not embedded like other cc items in this form, therefor is
is better to kill this object explicit from screen otherwise it is possible
we hab artefacts after closing of hintbox window.
2016-10-24 10:31:28 +02:00
Thilo Graf
c004c30056 CHintBox: fix text mode pass
Rquired in inherited classes


Origin commit data
------------------
Commit: 2952dcc124
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-21 (Fri, 21 Oct 2016)
2016-10-24 10:31:28 +02:00
Thilo Graf
28ba1cbc86 CHintBox: visualize timeoutbar with smooth progress
Origin commit data
------------------
Commit: 4ff7bd8f7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-20 (Thu, 20 Oct 2016)
2016-10-24 10:31:28 +02:00
Thilo Graf
c9972f68a0 CHintBox: add space for timeout bar
Origin commit data
------------------
Commit: c035b2fc15
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-13 (Thu, 13 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
ba90b113f0 Helpbox: fix possible transparent holes behind images
Origin commit data
------------------
Commit: 8579758884
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-09 (Sun, 09 Oct 2016)

Origin message was:
------------------
Helpbox: fix possible transparent holes behind images
2016-10-24 10:31:27 +02:00
Thilo Graf
df41f8f768 CHintBox: reduce window size for used auto size depends on text content
Origin commit data
------------------
Commit: 3b60a55f59
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
2016-10-24 10:31:26 +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
af3e39a47d colors: add COL_SCROLLBAR_PASSIVE wrapper
Origin commit data
------------------
Commit: 6629b64d6c
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_PASSIVE wrapper
2016-10-10 14:19:54 +02:00
vanhofen
4b3b25ca7a colors: add COL_SCROLLBAR_ACTIVE wrapper
Origin commit data
------------------
Commit: 7e7d4e5fc1
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_SCROLLBAR_ACTIVE wrapper
2016-10-10 14:19:54 +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
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
[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
vanhofen
11d680e053 hintbox: allow plain neutrino locales in bodytext
Origin commit data
------------------
Commit: 0f45e26728
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-22 (Mon, 22 Dec 2014)

Origin message was:
------------------
- hintbox: allow plain neutrino locales in bodytext
2014-12-22 09:15:26 +01: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
[CST] Focus
ca69eafab2 gui/widget/hintbox.cpp: use hide() in dtor
Origin commit data
------------------
Commit: 31d5811bc3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-24 (Wed, 24 Sep 2014)
2014-09-26 14:22:57 +04:00
[CST] Focus
34d2776109 neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii
Origin commit data
------------------
Commit: 420af7a4dc
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-05 (Fri, 05 Sep 2014)
2014-09-05 17:49:11 +04: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
vanhofen
8a02f4f089 adapt ShowHint handling from martii's neutrino-mp
Origin commit data
------------------
Commit: 6995e1a765
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-01-22 (Wed, 22 Jan 2014)

Origin message was:
------------------
- adapt ShowHint handling from martii's neutrino-mp
2014-01-22 12:11:52 +01: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
Jacek Jendrzej
04be37cf14 performance Prefer prefix ++/-- operators for non-primitive types.
Origin commit data
------------------
Commit: bb347b3a44
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-04-28 (Sat, 28 Apr 2012)
2012-04-28 10:56:27 +02:00