- fix funny typo

This commit is contained in:
svenhoefer
2017-03-03 09:52:57 +01:00
parent a9a09541e0
commit 8862ef621b
5 changed files with 9 additions and 9 deletions

View File

@@ -35,7 +35,7 @@
using namespace std; 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(); initVarBuildInfo();
if (show) if (show)

View File

@@ -29,7 +29,7 @@
#include "cc_frm_header.h" #include "cc_frm_header.h"
#include "cc_frm_footer.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. //! 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 * @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. * @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 * Example: \n
* this inits a window with position x100 y100 on screen with dimensions 700px x 800px \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 * 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 * 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, CComponentsWindow( const int& x_pos, const int& y_pos, const int& w, const int& h,
const std::string& caption = "", const std::string& caption = "",

View File

@@ -3126,7 +3126,7 @@ void CMovieBrowser::loadMovies(bool doRefresh)
{ {
TRACE("[mb] loadMovies: \n"); 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.enableShadow();
loadBox.paint(); loadBox.paint();

View File

@@ -861,7 +861,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
//with signals //with signals
sigc::signal<void, size_t, size_t, std::string> OnProgress0, OnProgress1; 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(); pw2.paint();
for(size_t i = 0; i< max; i++){ for(size_t i = 0; i< max; i++){
@@ -872,7 +872,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
OnProgress0.clear(); OnProgress0.clear();
OnProgress1.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(); pw3.paint();
for(size_t i = 0; i< max; i++){ for(size_t i = 0; i< max; i++){

View File

@@ -28,8 +28,8 @@
#include <gui/components/cc.h> #include <gui/components/cc.h>
#include "menue.h" #include "menue.h"
#define PW_MIN_WIDTH CCW_PERCENATL 50 //% #define PW_MIN_WIDTH CCW_PERCENT 50
#define PW_MIN_HEIGHT CCW_PERCENATL 20 //% #define PW_MIN_HEIGHT CCW_PERCENT 20
class CProgressWindow : public CComponentsWindow, public CMenuTarget class CProgressWindow : public CComponentsWindow, public CMenuTarget
{ {