[yast-commit] r54621 - in /branches/tmp/aschnell/graph/qt-graph: examples/ examples/Simple.cc src/YQGraph.cc src/YQGraph.h
Author: aschnell
Date: Wed Jan 14 15:41:27 2009
New Revision: 54621
URL: http://svn.opensuse.org/viewcvs/yast?rev=54621&view=rev
Log:
- backup
Added:
branches/tmp/aschnell/graph/qt-graph/examples/
branches/tmp/aschnell/graph/qt-graph/examples/Simple.cc
Modified:
branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc
branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h
Added: branches/tmp/aschnell/graph/qt-graph/examples/Simple.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/examples/Simple.cc?rev=54621&view=auto
==============================================================================
--- branches/tmp/aschnell/graph/qt-graph/examples/Simple.cc (added)
+++ branches/tmp/aschnell/graph/qt-graph/examples/Simple.cc Wed Jan 14 15:41:27 2009
@@ -0,0 +1,24 @@
+// Trivial graph example.
+//
+// Compile with:
+//
+// g++ -I/usr/include/YaST2/yui -lyui Simple.cc -o Simple
+
+#include "YUI.h"
+#include "YWidgetFactory.h"
+#include "YOptionalWidgetFactory.h"
+#include "YDialog.h"
+#include "YLayoutBox.h"
+#include "YEvent.h"
+
+int
+main( int argc, char **argv )
+{
+ YDialog * dialog = YUI::widgetFactory()->createPopupDialog();
+ YLayoutBox * vbox = YUI::widgetFactory()->createVBox( dialog );
+
+ YUI::optionalWidgetFactory()->createGraph( vbox );
+
+ dialog->waitForEvent();
+ dialog->destroy();
+}
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=54621&r1=54620&r2=54621&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc (original)
+++ branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc Wed Jan 14 15:41:27 2009
@@ -56,6 +56,8 @@
YQGraph::YQGraph( YWidget * parent )
: YGraph( parent )
{
+ button = new QPushButton(this);
+
yuiMilestone() << "Graph init done" << endl;
}
Modified: branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h?rev=54621&r1=54620&r2=54621&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h (original)
+++ branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h Wed Jan 14 15:41:27 2009
@@ -25,7 +25,7 @@
#include
participants (1)
-
aschnell@svn.opensuse.org