Author: aschnell Date: Thu Jan 15 14:49:10 2009 New Revision: 54646 URL: http://svn.opensuse.org/viewcvs/yast?rev=54646&view=rev Log: - backup Modified: branches/tmp/aschnell/graph/libyui/src/YGraph.h branches/tmp/aschnell/graph/libyui/src/YOptionalWidgetFactory.h Modified: branches/tmp/aschnell/graph/libyui/src/YGraph.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YGraph.h?rev=54646&r1=54645&r2=54646&view=diff ============================================================================== --- branches/tmp/aschnell/graph/libyui/src/YGraph.h (original) +++ branches/tmp/aschnell/graph/libyui/src/YGraph.h Thu Jan 15 14:49:10 2009 @@ -36,11 +36,18 @@ /** * Constructor. + * + * Loads a graph in DOT format from filename and uses the layout algorithm + * layoutAlgorithm to layout and then render the graph. The layout + * algorithm can be any string accepted by the function gvLayout from + * graphviz, e.g. "dot" or "neato". **/ YGraph( YWidget * parent, const string & filename, const string & layoutAlgorithm ); /** * Constructor. + * + * Renders the graph. The graph must already contain layout information. **/ YGraph( YWidget * parent, graph_t * graph ); Modified: branches/tmp/aschnell/graph/libyui/src/YOptionalWidgetFactory.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YOptionalWidgetFactory.h?rev=54646&r1=54645&r2=54646&view=diff ============================================================================== --- branches/tmp/aschnell/graph/libyui/src/YOptionalWidgetFactory.h (original) +++ branches/tmp/aschnell/graph/libyui/src/YOptionalWidgetFactory.h Thu Jan 15 14:49:10 2009 @@ -25,6 +25,7 @@ #include "YTypes.h" #include "YWizard.h" +#include "YGraph.h" using std::string; using std::vector; @@ -41,13 +42,7 @@ class YTimeField; class YWidget; class YTimezoneSelector; -class YGraph; -extern "C" -{ - struct Agraph_t; - typedef struct Agraph_t graph_t; -} /** * Abstract widget factory for optional ("special") widgets. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org