Author: aschnell Date: Wed Jan 14 16:37:13 2009 New Revision: 54628 URL: http://svn.opensuse.org/viewcvs/yast?rev=54628&view=rev Log: - backup Added: branches/tmp/aschnell/graph/qt-graph/examples/graph.dot Modified: branches/tmp/aschnell/graph/qt-graph/src/CMakeLists.txt branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc Added: branches/tmp/aschnell/graph/qt-graph/examples/graph.dot URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/examples/graph.dot?rev=54628&view=auto ============================================================================== --- branches/tmp/aschnell/graph/qt-graph/examples/graph.dot (added) +++ branches/tmp/aschnell/graph/qt-graph/examples/graph.dot Wed Jan 14 16:37:13 2009 @@ -0,0 +1,47 @@ +digraph G +{ + node [ style="filled" ]; + edge [ arrowhead="open" ]; + + 0 [ label="/dev/sda", shape="octagon", tooltip="80.0 GB" ]; + 1 [ label="/dev/sda1" ]; + 2 [ label="/dev/sda2" ]; + 3 [ label="/dev/sdb", shape="octagon", tooltip="150.5 GB" ]; + 4 [ label="/dev/sdb1" ]; + 5 [ label="/dev/sdb2" ]; + 6 [ label="/dev/sdc", shape="octagon" ]; + 7 [ label="/dev/sdc1" ]; + 8 [ label="/dev/md0", color="#00ff00", fillcolor="#aaffaa", tooltip="RAID1" ]; + 9 [ label="/dev/md1", color="#00ff00", fillcolor="#aaffaa", tooltip="RAID1, 75.3 GB" ]; + 10 [ label="/junk", shape="rectangle" ]; + 11 [ label="/boot", shape="rectangle" ]; + 12 [ label="/dev/system", color="#ff0000", fillcolor="#ff9999", tooltip="75.3 GB" ]; + 13 [ label="/dev/system/swap" ]; + 14 [ label="/dev/system/root" ]; + 15 [ label="/dev/system/home" ]; + 16 [ label="/", shape="rectangle" ]; + 17 [ label="swap", shape="rectangle" ]; + 18 [ label="/home", style="filled, rounded", shape="rectangle" ]; + + { rank=source; 0; 3; 6; } + { rank=same; 1; 2; 4; 5; 7; } + { rank=same; 8; 9; } + { rank=same; 12; } + { rank=same; 13; 14; 15; } + { rank=sink; 10; 11; 16; 17; 18; } + + 0->{ 1; 2; } [ arrowhead="open", arrowtail="open" ]; + 1->8; + 2->9; + 3->{ 4; 5; } [ arrowhead="none", style="dashed" ]; + 4->8; + 5->9; + 6->{ 7; } [ style="dashed" ]; + 7->10; + 8->11; + 9->12; + 12->{ 13; 14; 15; } [ arrowhead="empty" ]; + 13->17; + 14->16; + 15->18; +} Modified: branches/tmp/aschnell/graph/qt-graph/src/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/src/CMakeLists.txt?rev=54628&r1=54627&r2=54628&view=diff ============================================================================== --- branches/tmp/aschnell/graph/qt-graph/src/CMakeLists.txt (original) +++ branches/tmp/aschnell/graph/qt-graph/src/CMakeLists.txt Wed Jan 14 16:37:13 2009 @@ -11,11 +11,10 @@ SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-nonliteral -fmessage-length=0" ) SET(qt_yast_graph_plugin_SRCS - YQGraph.cc YQGraphPlugin.cc YQGraphPluginImpl.cc - ) +) QT4_AUTOMOC(${qt_yast_graph_plugin_SRCS}) @@ -36,4 +35,3 @@ SET_TARGET_PROPERTIES( py2qt_graph PROPERTIES LINK_FLAGS "-Wl,--no-undefined -Wl,-rpath -Wl,${UI_PLUGIN_DIR}" ) INSTALL(TARGETS py2qt_graph LIBRARY DESTINATION ${UI_PLUGIN_DIR} ) - Modified: branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc?rev=54628&r1=54627&r2=54628&view=diff ============================================================================== --- branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc (original) +++ branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc Wed Jan 14 16:37:13 2009 @@ -148,7 +148,7 @@ { GVC_t* gvc = gvContext(); - FILE* fp = fopen("example.dot", "r"); + FILE* fp = fopen("graph.dot", "r"); graph_t* g = agread(fp); gvLayout(gvc, g, "dot"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org