[Tizen] Add DISABLE_STYLE_CHANGE_SIGNALS in NUI Text components 73/291973/1 accepted/tizen/7.0/unified/20230428.015842 accepted/tizen/7.0/unified/20230428.170433
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 10 Nov 2022 06:08:43 +0000 (15:08 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 25 Apr 2023 09:03:30 +0000 (18:03 +0900)
If the text components have a NUI theme,
dali's style change signal is disabled.

Change-Id: Iba74b06738a1144088c359fcd3fd1ea66710808d
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-csharp-binder/src/dali-wrap.cpp
dali-csharp-binder/src/text-editor-wrap.cpp
dali-csharp-binder/src/text-field-wrap.cpp

index daee50e..50f3ae4 100644 (file)
@@ -48551,16 +48551,16 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_0() {
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) {
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * text) {
   void * jresult ;
   std::string *arg1 = 0 ;
   Dali::Toolkit::TextLabel result;
 
-  if (!jarg1) {
+  if (!text) {
     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
     return 0;
   }
-  std::string arg1_str(jarg1);
+  std::string arg1_str(text);
   arg1 = &arg1_str;
   {
     try {
@@ -48576,6 +48576,54 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) {
 }
 
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New_With_Style(bool hasStyle) {
+  void * jresult ;
+  Dali::Toolkit::TextLabel result;
+
+  {
+    try {
+      if (hasStyle) {
+        result = Dali::Toolkit::TextLabel::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS);
+      } else {
+        result = Dali::Toolkit::TextLabel::New();
+      }
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::TextLabel((const Dali::Toolkit::TextLabel &)result);
+  return jresult;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New_With_String_Style(char * text, bool hasStyle) {
+  void * jresult ;
+  std::string *arg1 = 0 ;
+  Dali::Toolkit::TextLabel result;
+
+  if (!text) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
+    return 0;
+  }
+  std::string arg1_str(text);
+  arg1 = &arg1_str;
+  {
+    try {
+      if (hasStyle) {
+        result = Dali::Toolkit::TextLabel::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS, (std::string const &)*arg1);
+      } else {
+        result = Dali::Toolkit::TextLabel::New((std::string const &)*arg1);
+      }
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::TextLabel((const Dali::Toolkit::TextLabel &)result);
+
+  //argout typemap for const std::string&
+
+  return jresult;
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextLabel__SWIG_0() {
   void * jresult ;
   Dali::Toolkit::TextLabel *result = 0 ;
index 0f217da..13f4d1a 100755 (executable)
@@ -795,6 +795,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_New() {
 }
 
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_New_With_Style(bool hasStyle) {
+  void * jresult ;
+  Dali::Toolkit::TextEditor result;
+
+  {
+    try {
+      if (hasStyle) {
+        result = Dali::Toolkit::TextEditor::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS);
+      } else {
+        result = Dali::Toolkit::TextEditor::New();
+      }
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::TextEditor((const Dali::Toolkit::TextEditor &)result);
+  return jresult;
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor__SWIG_0() {
   void * jresult ;
   Dali::Toolkit::TextEditor *result = 0 ;
index 98ada7d..2cff05d 100755 (executable)
@@ -717,6 +717,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_New() {
 }
 
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_New_With_Style(bool hasStyle) {
+  void * jresult ;
+  Dali::Toolkit::TextField result;
+
+  {
+    try {
+      if (hasStyle) {
+        result = Dali::Toolkit::TextField::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS);
+      } else {
+        result = Dali::Toolkit::TextField::New();
+      }
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Toolkit::TextField((const Dali::Toolkit::TextField &)result);
+  return jresult;
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField__SWIG_0() {
   void * jresult ;
   Dali::Toolkit::TextField *result = 0 ;