Thilo Graf
882a4654a8
widget/hintbox.cpp: add explicit init of var picon
...
Had some issues while compile with gcc 7.x.
Exact data type was expected.
2017-12-04 20:16:12 +01:00
svenhoefer
99cc7f850a
- rcinput: simplify calcTimeoutEnd() calls; 0 is "off" by default now
2017-09-29 10:34:23 +02:00
Thilo Graf
87b53a8597
CHintBox: fix possible unintended cut of text
...
Last line size was not considered.
2017-09-17 21:50:59 +02:00
Thilo Graf
c0cc7ef192
Merge branch 'master' into pu/fb-setmode
2017-05-21 18:09:22 +02:00
Thilo Graf
8c29b8e68f
CHintBox: use less colors time scale mode for visual timeout
...
Otherwise probably in this context to much colored with default settings.
2017-05-21 18:00:21 +02:00
Thilo Graf
e48cc87b6f
CHintBox: fix position in case of missing text
...
Without text, position was not complete calculated.
Only default position was used.
2017-05-17 20:11:28 +02:00
Thilo Graf
820ea4db3b
CHintBox: fix passed width parameter
2017-02-26 21:29:53 +01:00
Stefan Seyfried
5188f721c4
set useful thread names for all spawned threads
2017-02-12 22:55:36 +01:00
Stefan Seyfried
58c6dbf469
cc: reduce impact of cc_draw header from 161 to 4 files
2017-02-12 22:50:44 +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
5f93b57d84
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 dde298b1b7
.
Prominent examle is the "channel not available" popup which prevented
further channel switching until canceled.
2017-01-29 21:27:45 +01:00
Thilo Graf
1d8de839d5
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.
2017-01-11 11:32:32 +01:00
Thilo Graf
c60accaeae
CHintBox: add overloaded version of setMsgText() with locale parameter
2017-01-05 22:53:47 +01:00
Thilo Graf
b714998065
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.
2016-12-22 10:01:53 +01:00
Thilo Graf
bd75701fc3
CHintBox: fix timeout comparsion
...
default timeout was not defined
2016-12-12 21:37:17 +01:00
svenhoefer
0dc0789de8
- rename BUTTON_TOP to BUTTON_UP; it isn't a top-button
2016-12-07 15:37:03 +01:00
Thilo Graf
644063d2c8
Messages: move window to top of screen
...
User request.
2016-11-22 11:01:30 +01:00
Thilo Graf
e46d65fb92
CHintBox: fix missing shadow for popups
...
Must be enabled with enum, bool has no effect.
2016-11-22 10:44:50 +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
4988df1dd9
Messages: add option to change size of message text
...
Include default size and localized setup.
TODO: localize for nederlands and slovak, current english only.
2016-11-20 01:08:14 +01:00
Thilo Graf
27905b9acf
CHintBox: update ascII scheme
2016-11-12 14:51:18 +01:00
Thilo Graf
075917e32d
CHintBox: remove center text mode on used picon
2016-11-11 23:10:39 +01:00
Thilo Graf
7f5a576795
CHintBox: try to fix truncated chars
...
Last chars were truncated. Indent and titel text were not considered.
2016-11-11 21:42:07 +01:00
Thilo Graf
0952efaba4
CHintBox: optimize dynamic window width bahavior on different line sizes
...
Width calculation is now depends on largest line of text.
2016-11-10 11:19:09 +01:00
Thilo Graf
e3f51f2c91
CHintBox/CMsgBox: rework text handling and dynamic size behavior
2016-11-10 11:18:56 +01:00
Thilo Graf
4bdd5e11a9
CHintBox: add member to get maximal required width
2016-11-10 11:15:43 +01: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
a5ce26dfd9
CHintBox: try to optimize height and width of message window
2016-10-24 10:31:28 +02:00
Thilo Graf
6580c5a54a
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
2952dcc124
CHintBox: fix text mode pass
...
Rquired in inherited classes
2016-10-24 10:31:28 +02:00
Thilo Graf
4ff7bd8f7e
CHintBox: visualize timeoutbar with smooth progress
2016-10-24 10:31:28 +02:00
Thilo Graf
c035b2fc15
CHintBox: add space for timeout bar
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
8579758884
Helpbox: fix possible transparent holes behind images
2016-10-24 10:31:27 +02:00
Thilo Graf
3b60a55f59
CHintBox: reduce window size for used auto size depends on text content
2016-10-24 10:31:26 +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
vanhofen
6629b64d6c
- colors: add COL_SCROLLBAR_PASSIVE wrapper
2016-10-10 14:19:54 +02:00
vanhofen
7e7d4e5fc1
- colors: add COL_SCROLLBAR_ACTIVE wrapper
2016-10-10 14:19:54 +02:00
svenhoefer
2911e638c7
- add listModeKey() function to simplify these calls
2016-09-09 10:42:46 +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
[CST] Focus
302642cee7
neutrino: add webtv channel list mode
2016-03-23 16:36:00 +03:00
svenhoefer
0f45e26728
- hintbox: allow plain neutrino locales in bodytext
2014-12-22 09:15:26 +01:00
M. Liebmann
b9400110b4
Enable gradient for all remaining GUI header
2014-10-16 09:49:28 +02:00
[CST] Focus
31d5811bc3
gui/widget/hintbox.cpp: use hide() in dtor
2014-09-26 14:22:57 +04:00
[CST] Focus
420af7a4dc
neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii
2014-09-05 17:49:11 +04: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
svenhoefer
6995e1a765
- adapt ShowHint handling from martii's neutrino-mp
2014-01-22 12:11:52 +01: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
satbaby
bb347b3a44
performance Prefer prefix ++/-- operators for non-primitive types.
2012-04-28 10:56:27 +02:00