Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54603 - in /branches/tmp/aschnell/graph/libyui: VERSION package/yast2-libyui.changes src/Makefile.am src/YGraph.cc src/YGraph.h src/YGraphPlugin.h src/YWidgetFactory.h
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 14 Jan 2009 09:59:04 -0000
  • Message-id: <E1LN2We-0000do-VU@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Jan 14 10:59:04 2009
New Revision: 54603

URL: http://svn.opensuse.org/viewcvs/yast?rev=54603&view=rev
Log:
- added graph widget

Added:
branches/tmp/aschnell/graph/libyui/src/YGraph.cc
branches/tmp/aschnell/graph/libyui/src/YGraph.h
branches/tmp/aschnell/graph/libyui/src/YGraphPlugin.h
Modified:
branches/tmp/aschnell/graph/libyui/VERSION
branches/tmp/aschnell/graph/libyui/package/yast2-libyui.changes
branches/tmp/aschnell/graph/libyui/src/Makefile.am
branches/tmp/aschnell/graph/libyui/src/YWidgetFactory.h

Modified: branches/tmp/aschnell/graph/libyui/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/VERSION?rev=54603&r1=54602&r2=54603&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/libyui/VERSION (original)
+++ branches/tmp/aschnell/graph/libyui/VERSION Wed Jan 14 10:59:04 2009
@@ -1 +1 @@
-2.18.1
+2.18.2

Modified: branches/tmp/aschnell/graph/libyui/package/yast2-libyui.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/package/yast2-libyui.changes?rev=54603&r1=54602&r2=54603&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/libyui/package/yast2-libyui.changes (original)
+++ branches/tmp/aschnell/graph/libyui/package/yast2-libyui.changes Wed Jan 14
10:59:04 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Jan 14 10:57:17 CET 2009 - aschnell@xxxxxxx
+
+- added graph widget
+- V 2.18.2
+
+-------------------------------------------------------------------
Wed Oct 15 15:11:42 CEST 2008 - sh@xxxxxxx

- Added `opt(`confirmUnsupported) for PackageSelector widget

Modified: branches/tmp/aschnell/graph/libyui/src/Makefile.am
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/Makefile.am?rev=54603&r1=54602&r2=54603&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/libyui/src/Makefile.am (original)
+++ branches/tmp/aschnell/graph/libyui/src/Makefile.am Wed Jan 14 10:59:04 2009
@@ -71,6 +71,7 @@
YMultiProgressMeter.cc \
YMultiSelectionBox.cc \
YPackageSelector.cc \
+ YGraph.cc \
YPartitionSplitter.cc \
YProgressBar.cc \
YPushButton.cc \
@@ -118,6 +119,7 @@
YMacroPlayer.h \
YMacroRecorder.h \
YPackageSelectorPlugin.h \
+ YGraphPlugin.h \
YProperty.h \
YShortcut.h \
YShortcutManager.h \
@@ -162,6 +164,7 @@
YMultiProgressMeter.h \
YMultiSelectionBox.h \
YPackageSelector.h \
+ YGraph.h \
YPartitionSplitter.h \
YProgressBar.h \
YPushButton.h \

Added: branches/tmp/aschnell/graph/libyui/src/YGraph.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YGraph.cc?rev=54603&view=auto
==============================================================================
--- branches/tmp/aschnell/graph/libyui/src/YGraph.cc (added)
+++ branches/tmp/aschnell/graph/libyui/src/YGraph.cc Wed Jan 14 10:59:04 2009
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YGraph.cc
+
+ Author: Arvin Schnell <aschnell@xxxxxxx>
+
+/-*/
+
+
+#define YUILogComponent "ui-graph"
+#include "YUILog.h"
+
+#include "YGraph.h"
+
+
+YGraph::YGraph( YWidget * parent )
+ : YWidget( parent )
+{
+ setDefaultStretchable( YD_HORIZ, true );
+ setDefaultStretchable( YD_VERT, true );
+}

Added: branches/tmp/aschnell/graph/libyui/src/YGraph.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YGraph.h?rev=54603&view=auto
==============================================================================
--- branches/tmp/aschnell/graph/libyui/src/YGraph.h (added)
+++ branches/tmp/aschnell/graph/libyui/src/YGraph.h Wed Jan 14 10:59:04 2009
@@ -0,0 +1,42 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YGraph.h
+
+ Author: Arvin Schnell <aschnell@xxxxxxx>
+
+/-*/
+
+#ifndef YGraph_h
+#define YGraph_h
+
+#include "YWidget.h"
+
+class YGraph : public YWidget
+{
+protected:
+ /**
+ * Constructor.
+ **/
+ YGraph( YWidget * parent );
+
+public:
+ /**
+ * Returns a descriptive name of this widget class for logging,
+ * debugging etc.
+ **/
+ virtual const char * widgetClass() const { return "YGraph"; }
+
+};
+
+
+#endif // YGraph_h

Added: branches/tmp/aschnell/graph/libyui/src/YGraphPlugin.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YGraphPlugin.h?rev=54603&view=auto
==============================================================================
--- branches/tmp/aschnell/graph/libyui/src/YGraphPlugin.h (added)
+++ branches/tmp/aschnell/graph/libyui/src/YGraphPlugin.h Wed Jan 14 10:59:04
2009
@@ -0,0 +1,60 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YGraphPlugin.h
+
+ Author: Arvin Schnell <aschnell@xxxxxxx>
+
+/-*/
+
+
+#ifndef YGraphPlugin_h
+#define YGraphPlugin_h
+
+#include "YUIPlugin.h"
+
+class YWidget;
+class YGraph;
+
+
+/**
+ * Abstract base class for simplified access to UI plugins for graph widget.
+ **/
+class YGraphPlugin: public YUIPlugin
+{
+protected:
+ /**
+ * Constructor: Load the specified plugin library
+ * from the standard UI plugin directory (/usr/lib/YaST2/plugin).
+ **/
+ YGraphPlugin( const char * pluginLibBaseName )
+ : YUIPlugin( pluginLibBaseName ) {}
+
+ /**
+ * Destructor. Calls dlclose() which will unload the plugin library if it
+ * is no longer used, i.e. if the reference count dlopen() uses reaches 0.
+ **/
+ virtual ~YGraphPlugin() {}
+
+public:
+ /**
+ * Create a graph widget.
+ * Derived classes need to implement this.
+ *
+ * This might return 0 if the plugin lib could not be loaded or if the
+ * appropriate symbol could not be located in the plugin lib.
+ **/
+ virtual YGraph * createGraph( YWidget * parent ) = 0;
+};
+
+
+#endif // YGraphPlugin_h

Modified: branches/tmp/aschnell/graph/libyui/src/YWidgetFactory.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/libyui/src/YWidgetFactory.h?rev=54603&r1=54602&r2=54603&view=diff
==============================================================================
--- branches/tmp/aschnell/graph/libyui/src/YWidgetFactory.h (original)
+++ branches/tmp/aschnell/graph/libyui/src/YWidgetFactory.h Wed Jan 14 10:59:04
2009
@@ -44,6 +44,7 @@
class YMultiLineEdit;
class YMultiSelectionBox;
class YPackageSelector;
+class YGraph;
class YProgressBar;
class YPushButton;
class YRadioButton;
@@ -123,6 +124,7 @@
virtual YMultiSelectionBox *createMultiSelectionBox ( YWidget * parent,
const string & label ) = 0;

virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long ModeFlags = 0 ) = 0;
+ virtual YGraph * createGraph ( YWidget * parent )
= 0;
virtual YWidget * createPkgSpecial ( YWidget * parent,
const string & subwidgetName ) = 0; // NCurses only

//

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages