Commit Graph

173 Commits

Author SHA1 Message Date
Thilo Graf
64edf98da4 test_menu: add simple colored Boxes 2023-11-05 16:50:28 +01:00
Thilo Graf
cf55b7aa15 test_menu.cpp: fix possible crash on left menu
w_hw->hide() is not really required.
2023-03-04 22:37:34 +01:00
svenhoefer
e8787da651 - hourglass: add defaults for x/y position
Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-11-07 21:21:38 +01:00
Thilo Graf
b902c4ee96 test_menu.cpp: add ShortHint demo with NEUTRINO_ICON_LOADER 2022-09-22 16:04:31 +02:00
Thilo Graf
9f5fc4a9d4 menue.cpp/h: modify move behavior of menu window for custom position
MENU_POS_PRESET is replaced with MENU_POS_CUSTOM. This allows
with methode setPos() to any position on screen without preset offset.
Old behavior is untouched.
2022-03-23 21:08:44 +01:00
Thilo Graf
ea7c787a5f record_info: add widget class for record info 2022-01-19 05:27:46 +01:00
svenhoefer
d458d98805 - change RC_back handling; its not longer translated to RC_home
Conflicts:
	src/gui/hdd_info.cpp
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2022-01-04 21:30:14 +01:00
Thilo Graf
af512304ce testmenu: add color check
colors on other platforms seems to be different. Observed on generic pc.
2022-01-01 18:54:42 +01:00
svenhoefer
72669771a7 - testmenu: formatting code using astyle; some manual code nicenings
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-12-06 05:18:19 +01:00
svenhoefer
89b385eeee - colors_custom: rework colors; use Google Material Palette
TODO: make custom colors themable
Signed-off-by: Thilo Graf <dbt@novatux.de>
2021-11-19 22:24:15 +01:00
Thilo Graf
af8c1abe16 test_menu: add image demo into test window 2021-11-19 08:56:45 +01:00
Thilo Graf
20a05074de test_menu: fix form with blinking item 2021-11-16 08:53:20 +01:00
Thilo Graf
68c8edf09c cc_item_picture: rework for svg-support, simplified structure
- simplified icon and logohandling in headers
- add svg examples, fix some other tests inside test_menu.cpp
2021-11-13 18:59:51 +01:00
Thilo Graf
1444b5a381 testmenu: use restarttuner from neutrino.cpp 2021-10-11 20:39:17 +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
aa81278cfb testmenu: fix action key value, typo 2021-10-04 16:43:42 +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
Thilo Graf
072995afcb cc_extra: add short methode to paintIcon with optional text content 2021-01-12 11:34:34 +01:00
Thilo Graf
eb5bb066b2 test_menu.cpp: ensure destroy footer after hide 2020-11-26 15:56:36 +01:00
Thilo Graf
88abaa8232 test_menu.cpp: remove double include 2020-11-15 15:33:31 +01:00
svenhoefer
d29c98d7d5 - rename HAVE_COOL_HARDWARE => HAVE_CST_HARDWARE
Conflicts:
	src/driver/rcinput.cpp
	src/gui/info_menue.cpp
	src/gui/mediaplayer.cpp
	src/gui/movieplayer.cpp
	src/zapit/src/frontend.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-09-08 11:13:51 +02:00
Thilo Graf
5b2299dba8 test_menu: add sample for rate banner 2020-03-02 21:48:52 +01:00
Thilo Graf
0c62e5e264 CProgressWindow: add adaptiv progress handling, new classes added
See src/gui/widget/progresswindow.h for more details and examples.
Docs could be generated with Doxygen.
2020-01-05 21:17:59 +01:00
Thilo Graf
b1f9c3c7f3 cc_timer/cc_frm_clock: allow use of milisecond intervals
Should be easier and more flexible to handle without nano parameter,
some reworkes in other classes and thread handlings are required.
2020-01-05 21:17:59 +01:00
Thilo Graf
0080ac220d test-menu: move separator types into own methode 2019-10-27 16:24:47 +01:00
Thilo Graf
01e69fbf2a test_menu.cpp: fix blink demos 2019-05-24 13:54:52 +02:00
Thilo Graf
8eb418617b menue.cpp/h: re add SUB_HEAD option with some samples inside test menu 2019-04-03 15:35:29 +02:00
Thilo Graf
557805bc40 infobar: rework infobar timeout behavior
Options were sometimes described ambiguously and previous behavior was no longer available.
Now the descriptions should be more plausible for current behavior.
2018-04-10 10:29:38 +02:00
Stefan Seyfried
a73b765df1 test_menu: add CTermWindow() test
Conflicts:
	src/gui/test_menu.cpp
2018-01-13 20:09:29 +01:00
Thilo Graf
8b1b72267a CTestMenu: add example for variable caption inside message buttons 2017-12-15 18:40:35 +01:00
Thilo Graf
8613e5db11 CTestMenu: add gui restart item for faster access 2017-11-19 20:49:37 +01:00
Jacek Jendrzej
4b8cf23d70 Merge branch 'master' into pu/mp 2017-10-16 13:17:17 +02:00
Thilo Graf
c7a2dd70fc CComponentsFooter: rework uniformed arrangement
Some parts were incomplete treated with defined parameter
'label_width' and/or 'chain_width'.
2017-10-13 12:35:59 +02:00
Jacek Jendrzej
3010cd24d7 Merge branch 'master' into pu/mp 2017-10-08 16:50:46 +02:00
Jacek Jendrzej
74f02a16f5 src/gui/test_menu.cpp fix memleak 2017-10-08 16:49:23 +02:00
Jacek Jendrzej
2c5bf73006 Merge branch 'master' into pu/mp 2017-09-13 13:40:40 +02:00
Jacek Jendrzej
6576729fd1 remove double includes 2017-09-08 21:21:32 +02:00
Jacek Jendrzej
4c3002cb26 Merge branch 'master' into pu/mp 2017-06-15 12:32:31 +02:00
svenhoefer
1525719472 - test_menu: avoid usage of CORNER_RADIUS defines; use RADIUS instead
... because the RADIUS defines depends on user's corner settings

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-06-15 01:01:55 +02:00
Jacek Jendrzej
ca83324763 Merge branch 'master' into pu/mp 2017-06-07 16:20:47 +02:00
Jacek Jendrzej
152c4e3fe4 Merge branch 'master' into pu/mp 2017-05-11 16:44:05 +02:00
Thilo Graf
aaa34d8887 Merge branch 'master' into pu/fb-setmode
# Conflicts:
#	src/gui/components/cc_frm_window.h
2017-05-11 12:18:38 +02:00
Thilo Graf
942a27e3ef cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.
2017-05-11 12:15:16 +02:00
svenhoefer
8862ef621b - fix funny typo 2017-03-03 09:52:57 +01:00
Thilo Graf
4d50172fbd CTestMenu: adaopt progress sample with discret percental window dimensions 2017-03-03 09:22:08 +01:00
Thilo Graf
42619c8d2c CTestMenu: add samples for progress window with signals 2017-02-26 21:29:53 +01:00
Thilo Graf
b250ae6b9d CTestMenu: ad samples for progress window 2017-02-26 21:29:53 +01:00
Stefan Seyfried
1d9d81d448 Merge remote-tracking branch 'tuxbox/master' 2017-02-15 20:26:44 +01:00
svenhoefer
ba4b67436c - test_menu: add missing include of gui/components/cc_timer.h 2017-02-12 23:27:18 +01:00