[GME-commit] GMESRC/GME/ObjectInspector Attribute.cpp,1.17,1.18

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu Oct 19 15:59:28 CDT 2006


Update of /project/gme-repository/GMESRC/GME/ObjectInspector
In directory escher:/tmp/cvs-serv3646

Modified Files:
	Attribute.cpp 
Log Message:
Attributes might be hidden not by the first aspect's attribute list (and only for models) but depending on the attribute's Viewable property (and from now on for every fco kind).


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: Attribute.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ObjectInspector/Attribute.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Attribute.cpp	10 Feb 2006 21:00:00 -0000	1.17
--- Attribute.cpp	19 Oct 2006 14:59:26 -0000	1.18
***************
*** 236,239 ****
--- 236,245 ----
  bool CAttribute::isViewable( const CComPtr<IMgaFCO>& fco, const CComPtr<IMgaMetaAttribute>& attr_meta) const
  {
+ 	VARIANT_BOOL vbl = VARIANT_TRUE;
+ 	COMTHROW( attr_meta->get_Viewable( &vbl));
+ 	return vbl == VARIANT_TRUE;
+ 	// attribute hiding policy changed by introducing 'viewable' attribute
+ 	//  for IMgaMetaAttribute. Section below commented out:
+ 	/*
  	bool res = true;
  	objtype_enum objtype;
***************
*** 274,277 ****
--- 280,284 ----
  	}
  	return res;
+ 	*/
  }
  



More information about the GME-commit mailing list