[ITC][dali-toolkit][ACR-1436][Added Dali Button Visual Properties] 56/215756/3
authorPriya Kohli <priya.kohli@samsung.com>
Tue, 15 Oct 2019 09:22:31 +0000 (14:52 +0530)
committershobhit verma <shobhit.v@samsung.com>
Tue, 15 Oct 2019 10:41:14 +0000 (10:41 +0000)
Change-Id: Id7cda0b57fe538db430c46cedfe95e716a3aa4bd
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/itc/dali-toolkit/button/ITs-button.cpp
src/itc/dali-toolkit/tct-dali-toolkit-native_mobile.h
src/itc/dali-toolkit/tct-dali-toolkit-native_tizeniot.h
src/itc/dali-toolkit/tct-dali-toolkit-native_wearable.h

index 251a581e8c292fe1a83155d67727f3a7d8542e76..7de95ce2430dcaf3ef03da48cf808d97e0618574 100755 (executable)
@@ -64,6 +64,15 @@ void ButtonAutoRepeatingProperty();
 void ButtonInitialAutoRepeatingDelayProperty();
 void ButtonNextAutoRepeatingDelayProperty();
 void ButtonTogglableProperty();
+void ButtonSetUnselectedVisual();
+void ButtonSetSelectedVisual();
+void ButtonSetDisabledSelectedVisual();
+void ButtonSetDisabledUnselectedVisual();
+void ButtonSetUnselectedBackgroundVisual();
+void ButtonSetSelectedBackgroundVisual();
+void ButtonSetDisabledUnselectedBackgroundVisual();
+void ButtonSetDisabledSelectedBackgroundVisual();
+
 
 namespace
 {
@@ -81,7 +90,15 @@ namespace
                BUTTON_AUTO_REPEATING_PROPERTY,
                BUTTON_INITIAL_AUTO_REPEATING_DELAY_PROPERTY,
                BUTTON_NEXT_AUTO_REPEATING_DELAY_PROPERTY,
-               BUTTON_TOGGLABLE_PROPERTY
+               BUTTON_TOGGLABLE_PROPERTY,
+               BUTTON_SET_UNSELECTED_VISUAL,
+               BUTTON_SET_SELECTED_VISUAL,
+               BUTTON_SET_DISABLED_SELECTED_VISUAL,
+               BUTTON_SET_DISABLED_UNSELECTED_VISUAL,
+               BUTTON_SET_UNSELECTED_BACKGROUND_VISUAL,
+               BUTTON_SET_SELECTED_BACKGROUND_VISUAL,
+               BUTTON_SET_DISABLED_UNSELECTED_BACKGROUND_VISUAL,
+               BUTTON_SET_DISABLED_SELECTED_BACKGROUND_VISUAL
        };
 
        struct Button_TestApp : public ConnectionTracker
@@ -161,6 +178,38 @@ namespace
                                case BUTTON_TOGGLABLE_PROPERTY:
                                ButtonTogglableProperty();
                                break;
+
+                               case BUTTON_SET_UNSELECTED_VISUAL:
+                               ButtonSetUnselectedVisual();
+                               break;
+
+                               case BUTTON_SET_SELECTED_VISUAL:
+                               ButtonSetSelectedVisual();
+                               break;
+
+                               case BUTTON_SET_DISABLED_SELECTED_VISUAL:
+                               ButtonSetDisabledSelectedVisual();
+                               break;
+
+                               case BUTTON_SET_DISABLED_UNSELECTED_VISUAL:
+                               ButtonSetDisabledUnselectedVisual();
+                               break;
+
+                               case BUTTON_SET_UNSELECTED_BACKGROUND_VISUAL:
+                               ButtonSetUnselectedBackgroundVisual();
+                               break;
+
+                               case BUTTON_SET_SELECTED_BACKGROUND_VISUAL:
+                               ButtonSetSelectedBackgroundVisual();
+                               break;
+
+                               case BUTTON_SET_DISABLED_UNSELECTED_BACKGROUND_VISUAL:
+                               ButtonSetDisabledUnselectedBackgroundVisual();
+                               break;
+
+                               case BUTTON_SET_DISABLED_SELECTED_BACKGROUND_VISUAL:
+                               ButtonSetDisabledSelectedBackgroundVisual();
+                               break;
                        }
                }
                // Data
@@ -421,6 +470,230 @@ void ButtonTogglableProperty()
        DaliLog::PrintPass();
 }
 
+void ButtonSetUnselectedVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::UNSELECTED_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get UNSELECTED_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::UNSELECTED_VISUAL );
+       Property::Map *unselectedVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!unselectedVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetSelectedVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::SELECTED_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get SELECTED_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::SELECTED_VISUAL );
+       Property::Map *selectedVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!selectedVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetDisabledSelectedVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::DISABLED_SELECTED_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get DISABLED_SELECTED_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::DISABLED_SELECTED_VISUAL );
+       Property::Map *disableSelectedVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!disableSelectedVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetDisabledUnselectedVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::DISABLED_UNSELECTED_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get DISABLED_UNSELECTED_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::DISABLED_UNSELECTED_VISUAL );
+       Property::Map *disableUnselectedVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!disableUnselectedVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetUnselectedBackgroundVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::UNSELECTED_BACKGROUND_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get UNSELECTED_BACKGROUND_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::UNSELECTED_BACKGROUND_VISUAL );
+       Property::Map *unselectedBackgroundVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!unselectedBackgroundVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetSelectedBackgroundVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::SELECTED_BACKGROUND_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get SELECTED_BACKGROUND_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::SELECTED_BACKGROUND_VISUAL );
+       Property::Map *selectedBackgroundVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!selectedBackgroundVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetDisabledUnselectedBackgroundVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get DISABLED_UNSELECTED_BACKGROUND_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL );
+       Property::Map *disableUnselectedBackroundVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!disableUnselectedBackroundVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
+void ButtonSetDisabledSelectedBackgroundVisual()
+{
+       Button button = PushButton::New();
+       DALI_CHECK_INSTANCE(button,"PushButton::New() is failed to create valid button object ");
+
+       string strButtonImagePath=getResourceFullPath(PUSH_BUTTON_IMAGE);
+       DALI_CHECK_FAIL(strButtonImagePath == "", "Unable to get resource path from app data directory." );
+
+       try
+       {
+               button.SetProperty( Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL, strButtonImagePath );
+       }
+       catch(DaliException& de)
+       {
+               LOG_E("Get DISABLED_SELECTED_BACKGROUND_VISUAL Property is failed.");
+               DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__);
+               test_return_value=1;
+               return;
+       }
+
+       Property::Value value = button.GetProperty( Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL );
+       Property::Map *disableSelectedBackroundVisualProperty = value.GetMap();
+       DALI_CHECK_FAIL(!disableSelectedBackroundVisualProperty, "Unable to get value from map." );
+
+       strButtonImagePath.clear();
+       DaliLog::PrintPass();
+}
+
 /**
  * End of TC Logic Implementation Area.
  **/
@@ -800,6 +1073,222 @@ int ITcButtonTogglableProperty(void)
        return test_return_value;
 }
 
+//& purpose: To set the unselected button foreground/icon visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetUnselectedVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the unselected button foreground/icon visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the UNSELECTED_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::UNSELECTED_VISUAL
+* @passcase                            Set api works properly for UNSELECTED_VISUAL property.
+* @failcase                            Set api does not works properly for UNSELECTED_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetUnselectedVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_UNSELECTED_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the selected button foreground/icon visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetSelectedVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the selected button foreground/icon visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the SELECTED_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::SELECTED_VISUAL
+* @passcase                            Set api works properly for SELECTED_VISUAL property.
+* @failcase                            Set api does not works properly for SELECTED_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetSelectedVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_SELECTED_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the disabled selected state foreground/icon button visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetDisabledSelectedVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the disabled selected state foreground/icon button visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the DISABLED_SELECTED_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::DISABLED_SELECTED_VISUAL
+* @passcase                            Set api works properly for DISABLED_SELECTED_VISUAL property.
+* @failcase                            Set api does not works properly for DISABLED_SELECTED_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetDisabledSelectedVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_DISABLED_SELECTED_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the disabled unselected state foreground/icon visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetDisabledUnselectedVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the disabled unselected state foreground/icon visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the DISABLED_UNSELECTED_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::DISABLED_UNSELECTED_VISUAL
+* @passcase                            Set api works properly for DISABLED_UNSELECTED_VISUAL property.
+* @failcase                            Set api does not works properly for DISABLED_UNSELECTED_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetDisabledUnselectedVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_DISABLED_UNSELECTED_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the disabled in the unselected state background, button visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetUnselectedBackgroundVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the disabled in the unselected state background, button visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the UNSELECTED_BACKGROUND_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::UNSELECTED_BACKGROUND_VISUAL
+* @passcase                            Set api works properly for UNSELECTED_BACKGROUND_VISUAL property.
+* @failcase                            Set api does not works properly for UNSELECTED_BACKGROUND_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetUnselectedBackgroundVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_UNSELECTED_BACKGROUND_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the selected background button visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetSelectedBackgroundVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the selected background button visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the SELECTED_BACKGROUND_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::SELECTED_BACKGROUND_VISUAL
+* @passcase                            Set api works properly for SELECTED_BACKGROUND_VISUAL property.
+* @failcase                            Set api does not works properly for SELECTED_BACKGROUND_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetSelectedBackgroundVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_SELECTED_BACKGROUND_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the disabled while unselected background button visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetDisabledUnselectedBackgroundVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the disabled while unselected background button visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the DISABLED_UNSELECTED_BACKGROUND_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL
+* @passcase                            Set api works properly for DISABLED_UNSELECTED_BACKGROUND_VISUAL property.
+* @failcase                            Set api does not works properly for DISABLED_UNSELECTED_BACKGROUND_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetDisabledUnselectedBackgroundVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_DISABLED_UNSELECTED_BACKGROUND_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
+//& purpose: To set the disabled while selected background button visual
+//& type auto
+/**
+* @testcase                    ITcButtonSetDisabledSelectedBackgroundVisual
+* @since_tizen                 5.5
+* @type                                Positive
+* @description                 Sets the disabled while selected background button visual
+* @scenario                            Creates a Button instance. \n
+*                                              Sets the DISABLED_SELECTED_BACKGROUND_VISUAL property. \n
+* @apicovered                  PushButton::New(), Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL
+* @passcase                            Set api works properly for DISABLED_SELECTED_BACKGROUND_VISUAL property.
+* @failcase                            Set api does not works properly for DISABLED_SELECTED_BACKGROUND_VISUAL property.
+* @precondition                        NA
+* @postcondition               NA
+*/
+int ITcButtonSetDisabledSelectedBackgroundVisual(void)
+{
+       DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Button_TestApp testApp( application, BUTTON_SET_DISABLED_SELECTED_BACKGROUND_VISUAL );
+       application.MainLoop();
+
+       return test_return_value;
+}
+
 /** @} */ // end of itc-button-testcases
 /** @} */ // end of itc-button
 /** @} */ // end of itc-dali-toolkit
index ab8bf6458f012db9931dc779493322ed0233da79..c3cab913cccdf2d4acb500cd5fd0d423019f630d 100755 (executable)
@@ -124,6 +124,14 @@ extern int ITcButtonAutoRepeatingProperty(void);
 extern int ITcButtonInitialAutoRepeatingDelayProperty(void);
 extern int ITcButtonNextAutoRepeatingDelayProperty(void);
 extern int ITcButtonTogglableProperty(void);
+extern int ITcButtonSetUnselectedVisual(void);
+extern int ITcButtonSetSelectedVisual(void);
+extern int ITcButtonSetDisabledSelectedVisual(void);
+extern int ITcButtonSetDisabledUnselectedVisual(void);
+extern int ITcButtonSetUnselectedBackgroundVisual(void);
+extern int ITcButtonSetSelectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledUnselectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledSelectedBackgroundVisual(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -400,6 +408,14 @@ testcase tc_array[] = {
        {"ITcButtonInitialAutoRepeatingDelayProperty",ITcButtonInitialAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonNextAutoRepeatingDelayProperty",ITcButtonNextAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonTogglableProperty",ITcButtonTogglableProperty,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedVisual",ITcButtonSetUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedVisual",ITcButtonSetSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedVisual",ITcButtonSetDisabledSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedVisual",ITcButtonSetDisabledUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedBackgroundVisual",ITcButtonSetUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedBackgroundVisual",ITcButtonSetSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedBackgroundVisual",ITcButtonSetDisabledUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedBackgroundVisual",ITcButtonSetDisabledSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator",ITcCheckBoxButtonCopyDownCastOperator,ITs_check_box_button_startup,ITs_check_box_button_cleanup},
        {"ITcControlClearBackground",ITcControlClearBackground,ITs_control_startup,ITs_control_cleanup},
        {"ITcControlKeyInputFocus",ITcControlKeyInputFocus,ITs_control_startup,ITs_control_cleanup},
index 3bb0f6b7d80e1c48cb39759186e2a10a0643e591..d5bd78d94f72ec7d7015af75f13009ff35fc9786 100755 (executable)
@@ -124,6 +124,14 @@ extern int ITcButtonAutoRepeatingProperty(void);
 extern int ITcButtonInitialAutoRepeatingDelayProperty(void);
 extern int ITcButtonNextAutoRepeatingDelayProperty(void);
 extern int ITcButtonTogglableProperty(void);
+extern int ITcButtonSetUnselectedVisual(void);
+extern int ITcButtonSetSelectedVisual(void);
+extern int ITcButtonSetDisabledSelectedVisual(void);
+extern int ITcButtonSetDisabledUnselectedVisual(void);
+extern int ITcButtonSetUnselectedBackgroundVisual(void);
+extern int ITcButtonSetSelectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledUnselectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledSelectedBackgroundVisual(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -392,6 +400,14 @@ testcase tc_array[] = {
        {"ITcButtonInitialAutoRepeatingDelayProperty",ITcButtonInitialAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonNextAutoRepeatingDelayProperty",ITcButtonNextAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonTogglableProperty",ITcButtonTogglableProperty,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedVisual",ITcButtonSetUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedVisual",ITcButtonSetSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedVisual",ITcButtonSetDisabledSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedVisual",ITcButtonSetDisabledUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedBackgroundVisual",ITcButtonSetUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedBackgroundVisual",ITcButtonSetSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedBackgroundVisual",ITcButtonSetDisabledUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedBackgroundVisual",ITcButtonSetDisabledSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator",ITcCheckBoxButtonCopyDownCastOperator,ITs_check_box_button_startup,ITs_check_box_button_cleanup},
        {"ITcControlClearBackground",ITcControlClearBackground,ITs_control_startup,ITs_control_cleanup},
        {"ITcControlKeyInputFocus",ITcControlKeyInputFocus,ITs_control_startup,ITs_control_cleanup},
index db9dcf8aa60bd54f9f40bb3ad3d5f5cfe5576a3a..c98c818c44f972167f0fe113465094f10c5b62c7 100755 (executable)
@@ -124,6 +124,14 @@ extern int ITcButtonAutoRepeatingProperty(void);
 extern int ITcButtonInitialAutoRepeatingDelayProperty(void);
 extern int ITcButtonNextAutoRepeatingDelayProperty(void);
 extern int ITcButtonTogglableProperty(void);
+extern int ITcButtonSetUnselectedVisual(void);
+extern int ITcButtonSetSelectedVisual(void);
+extern int ITcButtonSetDisabledSelectedVisual(void);
+extern int ITcButtonSetDisabledUnselectedVisual(void);
+extern int ITcButtonSetUnselectedBackgroundVisual(void);
+extern int ITcButtonSetSelectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledUnselectedBackgroundVisual(void);
+extern int ITcButtonSetDisabledSelectedBackgroundVisual(void);
 extern int ITcCheckBoxButtonCopyDownCastOperator(void);
 extern int ITcControlClearBackground(void);
 extern int ITcControlKeyInputFocus(void);
@@ -400,6 +408,14 @@ testcase tc_array[] = {
        {"ITcButtonInitialAutoRepeatingDelayProperty",ITcButtonInitialAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonNextAutoRepeatingDelayProperty",ITcButtonNextAutoRepeatingDelayProperty,ITs_button_startup,ITs_button_cleanup},
        {"ITcButtonTogglableProperty",ITcButtonTogglableProperty,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedVisual",ITcButtonSetUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedVisual",ITcButtonSetSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedVisual",ITcButtonSetDisabledSelectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedVisual",ITcButtonSetDisabledUnselectedVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetUnselectedBackgroundVisual",ITcButtonSetUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetSelectedBackgroundVisual",ITcButtonSetSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledUnselectedBackgroundVisual",ITcButtonSetDisabledUnselectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
+       {"ITcButtonSetDisabledSelectedBackgroundVisual",ITcButtonSetDisabledSelectedBackgroundVisual,ITs_button_startup,ITs_button_cleanup},
        {"ITcCheckBoxButtonCopyDownCastOperator",ITcCheckBoxButtonCopyDownCastOperator,ITs_check_box_button_startup,ITs_check_box_button_cleanup},
        {"ITcControlClearBackground",ITcControlClearBackground,ITs_control_startup,ITs_control_cleanup},
        {"ITcControlKeyInputFocus",ITcControlKeyInputFocus,ITs_control_startup,ITs_control_cleanup},