Commit Graph

170 Commits

Author SHA1 Message Date
Thilo Graf
1e164bcd06 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.


Origin commit data
------------------
Commit: 8174f094e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)
2022-03-27 21:46:44 +02:00
Thilo Graf
11c3a880f0 record_info: add widget class for record info
Origin commit data
------------------
Commit: 84843dd625
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-20 (Thu, 20 Jan 2022)
2022-01-20 21:24:37 +01:00
Thilo Graf
36d76406ba testmenu: add color check
colors on other platforms seems to be different. Observed on generic pc.


Origin commit data
------------------
Commit: 508e538133
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-01 (Sat, 01 Jan 2022)
2022-01-03 23:09:03 +01:00
vanhofen
dfce6dd08f change RC_back handling; its not longer translated to RC_home
Origin commit data
------------------
Commit: b0c6332f44
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-03 (Mon, 03 Jan 2022)

Origin message was:
------------------
- change RC_back handling; its not longer translated to RC_home
2022-01-03 22:32:25 +01:00
vanhofen
af4429bcba testmenu: formatting code using astyle; some manual code nicenings
Origin commit data
------------------
Commit: 6d8402eb9c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-12-04 (Sat, 04 Dec 2021)

Origin message was:
------------------
- testmenu: formatting code using astyle; some manual code nicenings
2021-12-04 23:22:35 +01:00
Thilo Graf
c4a9fcb20c test_menu: add image demo into test window
Origin commit data
------------------
Commit: c897a1b731
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-20 (Sat, 20 Nov 2021)
2021-11-20 18:42:49 +01:00
vanhofen
978633ace9 colors_custom: rework colors; use Google Material Palette
TODO: make custom colors themable


Origin commit data
------------------
Commit: 1da3f5ef61
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-19 (Fri, 19 Nov 2021)

Origin message was:
------------------
- colors_custom: rework colors; use Google Material Palette

TODO: make custom colors themable
2021-11-19 21:51:01 +01:00
Thilo Graf
01c23f371e test_menu: fix form with blinking item
Origin commit data
------------------
Commit: 06f1a870f3
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-16 (Tue, 16 Nov 2021)
2021-11-16 20:17:27 +01:00
Thilo Graf
6df0b28a4d 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


Origin commit data
------------------
Commit: 06fac0b58e
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-14 (Sun, 14 Nov 2021)
2021-11-14 22:12:27 +01:00
vanhofen
db02913f25 test-menu: sync with tuxbox
Origin commit data
------------------
Commit: c223ff6f76
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-11 (Mon, 11 Oct 2021)

Origin message was:
------------------
- test-menu: sync with tuxbox
2021-10-11 22:24:02 +02:00
Thilo Graf
37a0ddc3bb testmenu: use restarttuner from neutrino.cpp
Origin commit data
------------------
Commit: 61b767f204
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-11 (Mon, 11 Oct 2021)
2021-10-11 22:24:02 +02:00
Thilo Graf
d738fc22c1 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.


Origin commit data
------------------
Commit: 0e809c9c76
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-09 (Sat, 09 Oct 2021)
2021-10-09 01:23:28 +02:00
Thilo Graf
3049b21a38 testmenu: fix action key value, typo
Origin commit data
------------------
Commit: 190a990242
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-04 (Mon, 04 Oct 2021)
2021-10-04 22:01:31 +02:00
Thilo Graf
b933f3e9f2 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


Origin commit data
------------------
Commit: 0ae328d081
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-04 (Mon, 04 Oct 2021)

Origin message was:
------------------
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-04 22:01:31 +02:00
Thilo Graf
8021481a38 testmenu: add CHint demos
Origin commit data
------------------
Commit: 6f0cac34bd
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-04 (Mon, 04 Oct 2021)
2021-10-04 22:01:31 +02:00
Thilo Graf
7e532cf8eb cc_extra: add short methode to paintIcon with optional text content
Origin commit data
------------------
Commit: a6e4096e5b
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-01-06 (Wed, 06 Jan 2021)
2021-01-12 23:33:44 +01:00
Thilo Graf
cbf2599731 test_menu.cpp: ensure destroy footer after hide
Origin commit data
------------------
Commit: 9b1e528c19
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
2020-12-07 23:28:52 +01:00
Thilo Graf
393c442270 test_menu.cpp: remove double include
Origin commit data
------------------
Commit: 46edb684de
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-11-15 (Sun, 15 Nov 2020)
2020-11-15 23:00:28 +01:00
vanhofen
d3b0831354 rename HAVE_COOL_HARDWARE => HAVE_CST_HARDWARE
Origin commit data
------------------
Commit: 524913f4ee
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-09-03 (Thu, 03 Sep 2020)

Origin message was:
------------------
- rename HAVE_COOL_HARDWARE => HAVE_CST_HARDWARE
2020-09-03 22:07:12 +02:00
Thilo Graf
69665d9ba2 test_menu: add sample for rate banner
Origin commit data
------------------
Commit: 34f2cd0313
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-03-03 (Tue, 03 Mar 2020)
2020-03-03 21:22:34 +01:00
Thilo Graf
2e25d9e1ca 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.


Origin commit data
------------------
Commit: 72276fb3a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-05 (Sun, 05 Jan 2020)
2020-01-06 22:25:46 +01:00
Thilo Graf
de56424c45 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.


Origin commit data
------------------
Commit: 5afe92e526
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-05 (Sun, 05 Jan 2020)
2020-01-06 22:25:46 +01:00
Thilo Graf
c05c9ab8b6 test-menu: move separator types into own methode
Origin commit data
------------------
Commit: b00c7eb981
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
2019-10-27 22:56:48 +01:00
Thilo Graf
bd1bd810da test_menu.cpp: fix blink demos
Origin commit data
------------------
Commit: 7729a854fa
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-25 (Sat, 25 May 2019)
2019-05-25 00:43:35 +02:00
Thilo Graf
a301eb4741 menue.cpp/h: re add SUB_HEAD option with some samples inside test menu
Origin commit data
------------------
Commit: b1e643e9fb
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-03 (Wed, 03 Apr 2019)
2019-04-03 23:24:44 +02:00
Thilo Graf
a123753eaa 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.


Origin commit data
------------------
Commit: 89770bae19
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-10 (Tue, 10 Apr 2018)
2018-04-10 22:30:17 +02:00
Stefan Seyfried
8e7dc910a8 test_menu: add CTermWindow() test
Origin commit data
------------------
Commit: 2ec0b463aa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-01-15 (Mon, 15 Jan 2018)
2018-01-15 19:54:52 +01:00
Thilo Graf
1184024a61 CTestMenu: add example for variable caption inside message buttons
Origin commit data
------------------
Commit: 8b1b72267a
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-12-15 (Fri, 15 Dec 2017)
2017-12-15 18:40:35 +01:00
Thilo Graf
a0c84ff9f4 CTestMenu: add gui restart item for faster access
Origin commit data
------------------
Commit: 8613e5db11
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-11-19 (Sun, 19 Nov 2017)
2017-11-19 20:49:37 +01:00
Jacek Jendrzej
041101db81 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 4b8cf23d70
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-10-16 (Mon, 16 Oct 2017)
2017-10-16 13:17:17 +02:00
Thilo Graf
1861d5710c CComponentsFooter: rework uniformed arrangement
Some parts were incomplete treated with defined parameter
'label_width' and/or 'chain_width'.


Origin commit data
------------------
Commit: c7a2dd70fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-10-12 (Thu, 12 Oct 2017)
2017-10-13 12:35:59 +02:00
Jacek Jendrzej
d299bb89a0 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 3010cd24d7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-10-08 (Sun, 08 Oct 2017)
2017-10-08 16:50:46 +02:00
Jacek Jendrzej
17484d3983 src/gui/test_menu.cpp fix memleak
Origin commit data
------------------
Commit: 74f02a16f5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-10-07 (Sat, 07 Oct 2017)
2017-10-08 16:49:23 +02:00
Jacek Jendrzej
c44f82f12a Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 2c5bf73006
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-09-13 (Wed, 13 Sep 2017)
2017-09-13 13:40:40 +02:00
Jacek Jendrzej
b03ab5cb9e remove double includes
Origin commit data
------------------
Commit: 6576729fd1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-09-08 (Fri, 08 Sep 2017)
2017-09-08 21:21:32 +02:00
Jacek Jendrzej
9159d45c90 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 4c3002cb26
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-06-15 (Thu, 15 Jun 2017)
2017-06-15 12:32:31 +02:00
vanhofen
b1fb7bceb7 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>


Origin commit data
------------------
Commit: 1525719472
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)

Origin message was:
------------------
- 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
4643ac3f51 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: ca83324763
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-06-07 (Wed, 07 Jun 2017)
2017-06-07 16:20:47 +02:00
Jacek Jendrzej
c498d7a32b Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 152c4e3fe4
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 16:44:05 +02:00
Thilo Graf
801e94d938 Merge branch 'master' into pu/fb-setmode
# Conflicts:
#	src/gui/components/cc_frm_window.h


Origin commit data
------------------
Commit: aaa34d8887
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:18:38 +02:00
Thilo Graf
653c5af07c 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.


Origin commit data
------------------
Commit: 942a27e3ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:15:16 +02:00
vanhofen
1bf92d5fdd fix funny typo
Origin commit data
------------------
Commit: 8862ef621b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)

Origin message was:
------------------
- fix funny typo
2017-03-03 09:52:57 +01:00
Thilo Graf
ff4dae4c43 CTestMenu: adaopt progress sample with discret percental window dimensions
Origin commit data
------------------
Commit: 4d50172fbd
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)
2017-03-03 09:22:08 +01:00
Thilo Graf
c56c971dd3 CTestMenu: add samples for progress window with signals
Origin commit data
------------------
Commit: 42619c8d2c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-17 (Fri, 17 Feb 2017)
2017-02-26 21:29:53 +01:00
Thilo Graf
34f40c9417 CTestMenu: ad samples for progress window
Origin commit data
------------------
Commit: b250ae6b9d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-15 (Wed, 15 Feb 2017)
2017-02-26 21:29:53 +01:00
Stefan Seyfried
2369bc3cd6 Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: 1d9d81d448
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-15 (Wed, 15 Feb 2017)
2017-02-15 20:26:44 +01:00
vanhofen
4339876aa2 test_menu: add missing include of gui/components/cc_timer.h
Origin commit data
------------------
Commit: ba4b67436c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)

Origin message was:
------------------
- test_menu: add missing include of gui/components/cc_timer.h
2017-02-12 23:27:18 +01:00
Stefan Seyfried
c4cc5e62bb Merge remote-tracking branch 'tuxbox/pu/fb-modules'
only compile tested ;-)


Origin commit data
------------------
Commit: 2819e651c3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)
2017-02-12 21:29:10 +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
f9341822cf Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: 7497722646
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-01 (Wed, 01 Feb 2017)
2017-02-01 22:03:40 +01:00