From 515d4bab0d18ce1e1c5dac03798a0d0594c77a1a Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 22 Nov 2010 01:12:46 +0000 Subject: [PATCH] added ezc functions: winix_false, winix_true git-svn-id: svn://ttmath.org/publicrep/winix/trunk@679 e52654a7-88a9-db11-a3e9-0013d4bc506e --- core/system.cpp | 2 ++ templates/templates.cpp | 2 ++ templates/templates.h | 2 ++ templates/winix.cpp | 10 ++++++++++ 4 files changed, 16 insertions(+) diff --git a/core/system.cpp b/core/system.cpp index 9e1e0d6..d182a87 100755 --- a/core/system.cpp +++ b/core/system.cpp @@ -152,6 +152,8 @@ bool System::CanChangeUser(const Item & item, long new_user_id) // super user is allowed everything return true; + // !! przeciez to prosciej mozna zapisac + // albo dac od razu return false if( item.user_id != new_user_id ) // only super user can change the owner of an item return false; diff --git a/templates/templates.cpp b/templates/templates.cpp index cdd43da..7ca3c1c 100755 --- a/templates/templates.cpp +++ b/templates/templates.cpp @@ -403,6 +403,8 @@ void Templates::CreateFunctions() ezc_functions.Insert("winix_is_err_in_locales", winix_is_err_in_locales); ezc_functions.Insert("winix_err_msg_from_locales",winix_err_msg_from_locales); ezc_functions.Insert("winix_show_content_in_full_window", winix_show_content_in_full_window); + ezc_functions.Insert("winix_false", winix_false); + ezc_functions.Insert("winix_true", winix_true); /* diff --git a/templates/templates.h b/templates/templates.h index ad1ad36..fe6ed4a 100755 --- a/templates/templates.h +++ b/templates/templates.h @@ -332,6 +332,8 @@ namespace TemplatesFunctions void winix_is_err_in_locales(Info & i); void winix_err_msg_from_locales(Info & i); void winix_show_content_in_full_window(Info & i); + void winix_false(Info & i); + void winix_true(Info & i); /* diff --git a/templates/winix.cpp b/templates/winix.cpp index c0c14b4..d28966c 100755 --- a/templates/winix.cpp +++ b/templates/winix.cpp @@ -198,5 +198,15 @@ void winix_show_content_in_full_window(Info & i) } +void winix_false(Info & i) +{ + i.res = false; +} + +void winix_true(Info & i) +{ + i.res = true; +} + } // namespace