mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- fix funny typo
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
CBuildInfo::CBuildInfo(bool show) : CComponentsWindow(0, 0, CCW_PERCENATL 90, CCW_PERCENATL 90, LOCALE_BUILDINFO_MENU, NEUTRINO_ICON_INFO)
|
||||
CBuildInfo::CBuildInfo(bool show) : CComponentsWindow(0, 0, CCW_PERCENT 90, CCW_PERCENT 90, LOCALE_BUILDINFO_MENU, NEUTRINO_ICON_INFO)
|
||||
{
|
||||
initVarBuildInfo();
|
||||
if (show)
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "cc_frm_header.h"
|
||||
#include "cc_frm_footer.h"
|
||||
|
||||
#define CCW_PERCENATL - //placeholder for negative sign '-', used for discret dimensions parameters
|
||||
#define CCW_PERCENT - //placeholder for negative sign '-', used for discret dimensions parameters
|
||||
|
||||
//! Sub class of CComponentsForm. Shows a window with prepared items.
|
||||
/*!
|
||||
@@ -173,12 +173,12 @@ class CComponentsWindow : public CComponentsForm
|
||||
* @li optional: expects type fb_pixel_t, defines shadow color, default = COL_SHADOW_PLUS_0
|
||||
*
|
||||
* @note Discret dimensions parameters: values < 0 to -100 will be interpreted as percent values related to screen.
|
||||
* For better readability please use placeholder 'CCW_PERCENATL' as negative sign '-' \n
|
||||
* For better readability please use placeholder 'CCW_PERCENT' as negative sign '-' \n
|
||||
* Example: \n
|
||||
* this inits a window with position x100 y100 on screen with dimensions 700px x 800px \n
|
||||
* CComponentsWindow win(100, 100, 700, 800, "Test window");\n
|
||||
* this inits a window with position x100 y100 on screen with 50% of screen size assigned with discret percental screen dimensions \n
|
||||
* CComponentsWindow win(100, 100, CCW_PERCENATL 50, CCW_PERCENATL 50, "Test window");
|
||||
* CComponentsWindow win(100, 100, CCW_PERCENT 50, CCW_PERCENT 50, "Test window");
|
||||
*/
|
||||
CComponentsWindow( const int& x_pos, const int& y_pos, const int& w, const int& h,
|
||||
const std::string& caption = "",
|
||||
|
@@ -3126,7 +3126,7 @@ void CMovieBrowser::loadMovies(bool doRefresh)
|
||||
{
|
||||
TRACE("[mb] loadMovies: \n");
|
||||
|
||||
CProgressWindow loadBox((show_mode == MB_SHOW_YT) ? LOCALE_MOVIEPLAYER_YTPLAYBACK : LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES, CCW_PERCENATL 50, CCW_PERCENATL 10, NULL, show_mode == MB_SHOW_YT ? &ytparser.OnLoadVideoInfo : &OnLoadFile, &OnLoadDir);
|
||||
CProgressWindow loadBox((show_mode == MB_SHOW_YT) ? LOCALE_MOVIEPLAYER_YTPLAYBACK : LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES, CCW_PERCENT 50, CCW_PERCENT 10, NULL, show_mode == MB_SHOW_YT ? &ytparser.OnLoadVideoInfo : &OnLoadFile, &OnLoadDir);
|
||||
loadBox.enableShadow();
|
||||
loadBox.paint();
|
||||
|
||||
|
@@ -861,7 +861,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
//with signals
|
||||
sigc::signal<void, size_t, size_t, std::string> OnProgress0, OnProgress1;
|
||||
CProgressWindow pw2("Progress Single Test -> single Signal", CCW_PERCENATL 50, CCW_PERCENATL 30, &OnProgress0);
|
||||
CProgressWindow pw2("Progress Single Test -> single Signal", CCW_PERCENT 50, CCW_PERCENT 30, &OnProgress0);
|
||||
pw2.paint();
|
||||
|
||||
for(size_t i = 0; i< max; i++){
|
||||
@@ -872,7 +872,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
OnProgress0.clear();
|
||||
OnProgress1.clear();
|
||||
CProgressWindow pw3("Progress Single Test -> dub Signal", CCW_PERCENATL 50, CCW_PERCENATL 20, NULL, &OnProgress0, &OnProgress1);
|
||||
CProgressWindow pw3("Progress Single Test -> dub Signal", CCW_PERCENT 50, CCW_PERCENT 20, NULL, &OnProgress0, &OnProgress1);
|
||||
pw3.paint();
|
||||
|
||||
for(size_t i = 0; i< max; i++){
|
||||
|
@@ -28,8 +28,8 @@
|
||||
#include <gui/components/cc.h>
|
||||
#include "menue.h"
|
||||
|
||||
#define PW_MIN_WIDTH CCW_PERCENATL 50 //%
|
||||
#define PW_MIN_HEIGHT CCW_PERCENATL 20 //%
|
||||
#define PW_MIN_WIDTH CCW_PERCENT 50
|
||||
#define PW_MIN_HEIGHT CCW_PERCENT 20
|
||||
|
||||
class CProgressWindow : public CComponentsWindow, public CMenuTarget
|
||||
{
|
||||
|
Reference in New Issue
Block a user