Fix typos 40/256440/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 2 Apr 2021 10:59:18 +0000 (19:59 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 6 Apr 2021 02:20:05 +0000 (11:20 +0900)
Change-Id: I2f20cfebc3612c98387e3d8783770e39fb60d0d5
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
scl/sclcontroller.cpp
scl/sclresourcecache.cpp
scl/sclresourcecache.h
scl/sclwindows-efl.cpp
scl/sclwindows.cpp

index 3e30e45..a6101b4 100644 (file)
@@ -648,7 +648,7 @@ CSCLController::process_button_pressed_event(sclwindow window, sclint x, sclint
 
                                 windows->hide_window(windows->get_magnifier_window());
                                 /* FIXME : The parent key should be turned back to NORMAL state when RELEASED,
-                                    in case of POPUP_TYPE_BTN_PRESS_POPUP_DRAG type. Temporariliy setting NORMAL here. */
+                                    in case of POPUP_TYPE_BTN_PRESS_POPUP_DRAG type. Temporarily setting NORMAL here. */
                                 button_context->state = BUTTON_STATE_NORMAL;
                                 _play_tts_for_input_mode_name(popup_input_mode);
                             }
@@ -740,7 +740,7 @@ CSCLController::process_button_pressed_event(sclwindow window, sclint x, sclint
                     pos.y += coordinate->magnifier_offset_y;
                     windows->move_window(windows->get_magnifier_window(), pos.x, pos.y);
                     //windows->resize_window(windows->get_magnifier_window(), utils->get_scale_x(scl_magnifier_configure.width), utils->get_scale_y(scl_magnifier_configure.height));
-                    /*If we use transient_for them the ISE will occure some crash. It needs to check X11 */
+                    /*If we use transient_for them the ISE will occur some crash. It needs to check X11 */
                     /*windows->set_parent(windows->get_base_window(), windows->get_magnifier_window());*/
 
                     windows->show_window(windows->get_magnifier_window(), TRUE);
@@ -765,7 +765,7 @@ CSCLController::process_button_pressed_event(sclwindow window, sclint x, sclint
             /* COMMENTED OUT FOR TESTING MULTITOUCH!! */
             ///* In case the current button is not the given key index */
             //if (button_context->state == BUTTON_STATE_PRESSED) {
-            //    /* Even if the press event occured outside of this button's physical area, reset its context */
+            //    /* Even if the press event occurs outside of this button's physical area, reset its context */
             //    button_context->state = BUTTON_STATE_NORMAL;
             //    redraw = TRUE;
             //}
@@ -823,8 +823,8 @@ CSCLController::process_button_long_pressed_event(sclwindow window, sclbyte key_
         if (coordinate) {
             if (actual_event) {
                 if (coordinate->multitouch_type == SCL_MULTI_TOUCH_TYPE_SETTLE_PREVIOUS) {
-                    /* When calling mouse_release, the seq order of current multitouch events will be ch anged,
-                       so we put all the multitouch events into a vector and use them afterwards for rel easing */
+                    /* When calling mouse_release, the seq order of current multitouch events will be changed,
+                       so we put all the multitouch events into a vector and use them afterwards for releasing */
                     sclboolean finished = FALSE;
                     sclint loop = 0;
                     sclint multi_touch_context_num = context->get_multi_touch_context_num();
@@ -3946,7 +3946,7 @@ CSCLController::set_button_delay_duration(scllong msc)
 /**
  * Configures the variables for auto-popup window
  * It will return rectangle area
- * @return FALSE It's not avaiable popup key
+ * @return FALSE It's not available popup key
  */
 sclboolean
 CSCLController::configure_autopopup_window(sclwindow window, sclbyte key_index, SclRectangle* rect)
index 4904ba5..21b49ea 100644 (file)
@@ -740,18 +740,18 @@ CSCLResourceCache::clear_privatekeyproperties(SclPrivateKeyProperties* privPrope
 /**
  * Adds a new private key
  * It will update it to the current cache properties context because the application can call it anytime
- * For adapting it in realtime, you should explictly call the draw_button function.
+ * For adapting it in realtime, you should explicitly call the draw_button function.
  *
  * @param[out] fNeedInvalid It will return true if the current private can be adapt into the current display.
  * @return id an array index of the private key
  */
 sclint
-CSCLResourceCache::add_private_key(SclPrivateKeyProperties* privProperties, sclboolean *fNeedInvaild)
+CSCLResourceCache::add_private_key(SclPrivateKeyProperties* privProperties, sclboolean *fNeedInvalid)
 {
     SCL_DEBUG();
     scl_assert_return_false(privProperties);
     sclint ret = NOT_USED;
-    *fNeedInvaild = FALSE; /* don't need to update now */
+    *fNeedInvalid = FALSE; /* don't need to update now */
 
     if (privProperties->custom_id.empty())
         return ret;
@@ -791,7 +791,7 @@ CSCLResourceCache::add_private_key(SclPrivateKeyProperties* privProperties, sclb
         }
     }
     if (found) {
-        *fNeedInvaild = TRUE;
+        *fNeedInvalid = TRUE;
         return ret;
     }
 
@@ -804,7 +804,7 @@ CSCLResourceCache::add_private_key(SclPrivateKeyProperties* privProperties, sclb
             /* sets the current properties to private key properties */
             copy_privatekeyproperties_to_keyproperties(privProperties, &mCurPopupLayoutKeyProperties[ploop][privProperties->key_index]);
             return ret;
-            *fNeedInvaild = TRUE;
+            *fNeedInvalid = TRUE;
         }
     }
 #endif
@@ -1172,7 +1172,7 @@ CSCLResourceCache::get_label_properties(sclchar *label_type, sclbyte index) cons
 
     CSCLUtils *utils = CSCLUtils::get_instance();
     if (utils && label_type) {
-        utils->log("WARNINNG!!!!!!!!!!!!!!!!!! LABEL NAME %s COULD NOT BE FOUND!!!!!\n", label_type);
+        utils->log("WARNING!!!!!!!!!!!!!!!!!! LABEL NAME %s COULD NOT BE FOUND!!!!!\n", label_type);
     }
 
     return NULL;
index e11bd89..df1af1a 100644 (file)
@@ -60,7 +60,7 @@ public:
     SclButtonContext* get_cur_button_context(sclwindow window, sclbyte key_index);
 
     sclboolean clear_private_keys();
-    sclint add_private_key(SclPrivateKeyProperties* properties, sclboolean *fNeedInvaild);
+    sclint add_private_key(SclPrivateKeyProperties* properties, sclboolean *fNeedInvalid);
     sclboolean remove_private_key(sclint id);
 
     sclboolean copy_from_privatekeyproperties(const SclPrivateKeyProperties* privProperties, SclLayoutKeyCoordinate* coordinate);
index 9a6a3de..9871aa5 100644 (file)
@@ -380,7 +380,7 @@ CSCLWindowsImplEfl::create_dim_window(const sclwindow parent, SclWindowContext *
 
 /**
  * Make a window relation between parent and child
- * Caution: Currently, If we use transient_for them the ISE will occure some crash. It needs to check X11
+ * Caution: Currently, If we use transient_for them the ISE will occur some crash. It needs to check X11
  */
 void
 CSCLWindowsImplEfl::set_parent(const sclwindow parent, const sclwindow window)
index d850aac..45730c6 100644 (file)
@@ -178,7 +178,7 @@ sclwindow CSCLWindows::open_popup(const SclWindowOpener opener, const SclRectang
             resize_window(dim_window, rect.width, rect.height);
             move_window(dim_window, rect.x, rect.y);
             events->connect_window_events(dim_window, SCL_EVENT_MOUSE);
-            /*If we use transient_for them the ISE will occure some crash. It needs to check X11*/
+            /*If we use transient_for them the ISE will occur some crash. It needs to check X11*/
             set_parent(opener.window, dim_window);
             SclWindowContext *dim_window_context = get_window_context(get_dim_window());
             if (dim_window_context) {
@@ -190,7 +190,7 @@ sclwindow CSCLWindows::open_popup(const SclWindowOpener opener, const SclRectang
             }
             show_window(dim_window);
         } else {
-            /*If we use transient_for them the ISE will occure some crash. It needs to check X11*/
+            /*If we use transient_for them the ISE will occur some crash. It needs to check X11*/
             set_parent(opener.window, window);
         }
         show_window(window);
@@ -923,13 +923,13 @@ void CSCLWindows::set_window_rotation(const sclwindow window, SCLRotation rotati
             }
 
             if (SCLWINDOW_INVALID != m_dim_window_context.window) {
-                /* For indivisual window rotation */
+                /* For individual window rotation */
                 impl->set_window_rotation(m_dim_window_context.window, rotation);
                 //resize_window(m_dim_window_context.window, m_base_window_context.width, m_base_winctx.height);
                 //move_window(m_dim_window_context.window, m_base_window_context.x, m_base_winctx.y);
                 hide_window(m_dim_window_context.window);
             }
-            /* For indivisual window rotation
+            /* For individual window rotation
             for (int loop = 0;loop < MAX_POPUP_WINDOW;loop++) {
                 if (m_popup_window_context[loop].window != SCLWINDOW_INVALID) {
                     if (!m_popup_window_context[loop].isVirtual) {