Commit Graph

13402 Commits

Author SHA1 Message Date
Thilo Graf
3c8596a5be hourglass: use count of images as calculation base for paint interval
We are using possible 3rd party theme packages (installed via package
manager) with other counts of images.
This should ensure an automatic adaptation of interval
in case of different count of images.
2021-10-10 16:58:07 +02:00
Thilo Graf
ac594109d7 neutrino.cpp: action reloadplugins, implement ShowHintS 2021-10-08 23:10:58 +02:00
Thilo Graf
42c624a337 neutrino.cpp: action save settings, implement ShowHintS
The same is possible with tuxtxt_init() and tuxtxt_close(), if reqiured
2021-10-08 23:10:58 +02:00
Thilo Graf
6134115c63 gui/widget: add class CHourGlass
Provides an hourglass/snake-loader function to visualize running processes.
A template xcf-file for Gimp 2.10 is appended. Feel free to edit.
2021-10-08 23:10:30 +02:00
Thilo Graf
c9efac0665 hintbox: try to fix logic for enable/disable timeout bar.
Timeout bar could not be switched off, is now disabled for CHint
TODO: find a better solution to vizualize timeout for CHint.
      It looks not so good on the top of the hintbox, especially
      with round corners or frameless window.
2021-10-04 17:16:38 +02:00
Thilo Graf
aa81278cfb testmenu: fix action key value, typo 2021-10-04 16:43:42 +02:00
svenhoefer
0a3a95f4a3 - movieplayer: switch from define to enum in AC3_ATYPE handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-04 09:41:19 +02:00
svenhoefer
990689a990 - movieplayer: better readability in AC3_ATYPE handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-04 09:41:02 +02:00
retsim01
85d88bfba6 - movieplayer: introduce g_settings.movieplayer_select_ac3_atype0
Conflicts:
	src/neutrino.cpp
2021-10-04 09:40:39 +02:00
Thilo Graf
4135b48521 configure.ac: remove hbbtv configure option
pick fix for: - configure: rename ENABLE_HBBTV => ENABLE_AIT
2021-10-03 17:02:39 +02:00
svenhoefer
ddeb09f6ce - data: fix install of settingsupdate.conf
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
svenhoefer
5ef59f4cbc - cst/hardware-caps: add pip_devs
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
BPanther
609d6c4a7c DMX_PIP_CHANNEL removed, DMX_VIDEO_CHANNEL does the same 2021-10-03 17:02:39 +02:00
svenhoefer
79a63aef0a - neutrino: remove stop_lcd4l_support(void) function
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
svenhoefer
a97d3db67d - neutrino: more verbose console messages in Cleanup() function
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
svenhoefer
2a49ff0369 - moviebrowser: remove inactive code
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
svenhoefer
2121698c49 - hintbox: remove obsolete include
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 17:02:39 +02:00
svenhoefer
3f34ab5877 - change some hintboxes
Conflicts:
	src/neutrino.cpp

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

I'm not enthused of this solution to misuse the CHint destructor since
commit 1cb25e7cd3 "- hintbox: add setDelay() prototype".
I think such tasks with delay impact are not the designation of
destructors and avoidable. Unless it is absolutely necessary.
Therefore, I think this is only a temporary solution.
2021-10-03 17:02:07 +02:00
svenhoefer
887d2f1cb5 - hintbox: setDelay() prototype v2
Signed-off-by: Thilo Graf <dbt@novatux.de>

see commit message at: - change some hintboxes
2021-10-03 17:00:27 +02:00
svenhoefer
1cb25e7cd3 - hintbox: add setDelay() prototype
Signed-off-by: Thilo Graf <dbt@novatux.de>

see commit message at: - change some hintboxes
2021-10-03 17:00:03 +02:00
svenhoefer
ab0d178d58 - neutrino: use simple hintboxes w/o header
To avoid the sleep command, a call hint->setDelay(1) nice. :)

 Conflicts:
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 11:51:45 +02:00
Thilo Graf
b7e837d82b hintbox: expand ShowHintS() with slot parameter
This allows to execute one ore more methods inside the ShowHintS() method.
This should simplify calls of CHint messages with or without hide delays
In the simplest or most cases, only one code line is necessary for this,
see examples inside test_menu.cpp or here:

Single methode:
old:
CHintBox *hintBox new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_SERVICEMENU_GETPLUGINS_HINT));
hintBox->paint();
g_Plugins->loadPlugins();
sleep(1);
hintBox->.hide();
delete hintbox;

new:
ShowHintS(LOCALE_SERVICEMENU_GETPLUGINS_HINT, 1, true, sigc::mem_fun(g_Plugins, &CPlugins::loadPlugins));

Multiple methods:
old:
	CHint *hint = new CHint("Restart Tuner");
	hint->paint();
	g_Zapit->setStandby(true);
	sleep(2);
	g_Zapit->setStandby(false);
	sleep(2);
	g_Zapit->Rezap();
	delete hint;

new:
	std::vector <hint_message_data_t> hints;
	hints.push_back({sigc::bind(sigc::mem_fun(g_Zapit, &CZapitClient::setStandby), true),"Stopping tuner...", NONEXISTANT_LOCALE, 2, true});
	hints.push_back({sigc::bind(sigc::mem_fun(g_Zapit, &CZapitClient::setStandby), false), "Start tuner...", NONEXISTANT_LOCALE, 2, true});
	hints.push_back({sigc::hide_return(sigc::mem_fun(g_Zapit, &CZapitClient::Rezap)), "Rezap...", NONEXISTANT_LOCALE, 2, true});
	ShowHintS(hints);

slots can be used with sigc::bind, sigc::hide_return (or what ever) too.
sample slot:
sigc::slot<void> sl = sigc::bind(sigc::mem_fun(this, &ClassName::method), parameter);

Note: Usage of namespace sigc are doing to simplify the lines,
      but this is a matter of discretion.

TODO: - timeoutbar should visualize a kind of busy mode.
      - implemetations
2021-10-03 11:50:48 +02:00
Thilo Graf
b23fcc7c7c testmenu: add CHint demos 2021-10-03 11:14:47 +02:00
svenhoefer
f48c390e47 - helpers: simplify: add url to curl error log
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-03 11:12:59 +02:00
TangoCash
e750dceea2 add url to curl error log 2021-10-01 22:00:12 +02:00
Thilo Graf
e42d4570cd moviebrowser: simplify user guidance with sort menue
It's always easier to use  blindly the cross control buttons,
than looking for the colored buttons on the remote control.
Nothing will change for users who want to use the colored keys directly,
but they will get used to it.
This was a directly user request.
2021-10-01 22:00:10 +02:00
Thilo Graf
b72bd0fbe2 zapit: add missing delete ait
Possible leak detected with LeakSanitizer
2021-10-01 22:00:03 +02:00
svenhoefer
dc222187e6 - configure: rename ENABLE_HBBTV => ENABLE_AIT
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-01 21:59:56 +02:00
max_10
4a18629847 - make ait scan for hbbtv url configurable 2021-10-01 21:59:49 +02:00
Thilo Graf
b67ab168da lcd4l.cpp: exit ParseInfo() on missing instance of videoDecoder 2021-10-01 21:59:12 +02:00
svenhoefer
3da4a27882 - webchannels-setup: rework g_settings.livestreamResolution option chooser
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-01 21:59:07 +02:00
svenhoefer
e0cd455e16 - webchannels-setup: re-add inactive code around g_settings.livestreamScriptPath
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-01 21:59:02 +02:00
svenhoefer
8217f897b7 - scripts: fix permissions of restore.sh.in
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-10-01 21:58:58 +02:00
svenhoefer
d813414583 - Revert "webtv: add prefered quality option for use in webtv plugins"; ...
re-activate g_settings.livestreamResolution

Signed-off-by: Jacek Jendrzej <overx300@gmail.com>
2021-09-26 17:29:00 +02:00
TangoCash
4009bd2a68 getting ait after starting playback 2021-09-26 14:21:00 +02:00
TangoCash
7b4a536f62 add ait scan (hbbtvurls) to /tmp/ait.txt for now 2021-09-26 11:49:08 +02:00
TangoCash
bc4cd3a356 cleanup (supplemental to cdbfe10b13)
Signed-off-by: Thilo Graf <dbt@novatux.de>

commit was: move xmltv epgmapping into own variable
2021-09-26 11:38:30 +02:00
svenhoefer
69ed0f6f29 - epgview: correct labeling of green button
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:29:33 +02:00
svenhoefer
a3f13f267c - locale: fix deutsch.locale
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:29:30 +02:00
svenhoefer
7db740166f - epgview: fix switch back from movie database view
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:29:27 +02:00
svenhoefer
27784214eb - epgview: auto-calc buttons struct
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:29:11 +02:00
svenhoefer
c65d294eee - epgview: add movie database selection
Conflicts:
	src/gui/epgview.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:29:08 +02:00
svenhoefer
2ca7d1d7d1 - hintbox: just code formatting
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-25 09:28:58 +02:00
svenhoefer
e904e2191f - luainstance: allow access to defined directories
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-24 10:19:15 +02:00
svenhoefer
ce09b670c5 - luaserver: use LUAPLUGINDIR_VAR
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-24 10:19:12 +02:00
svenhoefer
a6aebded5f - add LUAPLUGINDIR_VAR
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-24 10:19:09 +02:00
svenhoefer
4893ec9149 - webchannels-setup: simplify WEBTV_XML_QUALITY_OPTIONS; small changes to menu structure
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-20 19:51:56 +02:00
svenhoefer
384109ccf9 - miscsettings_menu: add hintbox around epg_read_now
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-20 19:51:53 +02:00
svenhoefer
4bd62c4fd9 - miscsettings_menu: minor reworks in epg menu and epg locales
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-20 19:51:50 +02:00
svenhoefer
019644334f - lcd4l: add and use wrapper functions to handle /tmp/lcd/menu
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-09-20 19:51:48 +02:00