model_server/dagraph_disgui/src/disUIHandler.cxx
//
// returns: -1: error, 0: the view is built and displayed
//
-1: error, 0: the view is built and displayed
- 1 : error 0 : the view is built and displayed
int
disUIHandler::preview(char *)
{
    Initialize(disUIHandler::preview);
    int ret_val = -1;
    if (gexists(2)) {
	appDGraph * g_app = new appDGraph(graph());
	if (g_app) {
	    symbolPtr ghead(g_app);
	    if (view_create(ghead, Rep_DGraph)) {
		view_create_flush();
		ret_val = 0;
	    }
	    (void) g_app->graph(); 
	}
    }
    return ret_val;
}
int disUIHandler :: preview ( char * ) { Initialize ( disUIHandler :: preview ) ; int ret_val = -1 ; if ( gexists ( 2 ) ) { appDGraph * g_app = new appDGraph ( graph ( ) ) ; if ( g_app ) { symbolPtr ghead ( g_app ) ; if ( view_create ( ghead , Rep_DGraph ) ) { view_create_flush ( ) ; ret_val = 0 ; } ( void ) g_app -> graph ( ) ; } } return ret_val ; }
returns: -1: error, 0: the view is built and displayed
returns : - 1 : error 0 : the view is built and displayed
// -- destroy the reference