model_server/style/src/style_hooks.cxx
//
// Function to assign / deassign style/category
//
Function to assign / deassign style/category
Function to assign / deassign style / category
static int style_modify(appTree *nd, char *nm, boolean categ, int op) {
 Initialize(style_modify);
  if ( !nd )
      return -1;
  if( categ ){
     if ( op >= 0 )          
        ste_interface_category_assign(nd, nm);
     else
        ste_interface_category_deassign(nd, nm);
  }else{
    if ( op >= 0 )
        ste_interface_style_assign(nd, nm);
     else
        ste_interface_style_deassign(nd, nm);
  }
  return 0;
}
static int style_modify ( appTree * nd , char * nm , boolean categ , int op ) { Initialize ( style_modify ) ; if ( ! nd ) return -1 ; if ( categ ) { if ( op >= 0 ) ste_interface_category_assign ( nd , nm ) ; else ste_interface_category_deassign ( nd , nm ) ; } else { if ( op >= 0 ) ste_interface_style_assign ( nd , nm ) ; else ste_interface_style_deassign ( nd , nm ) ; } return 0 ; }
Function to assign / deassign style/category
Function to assign / deassign style / category
// 0 - restore, 1- assign