Author: sh-sh-sh
Date: Tue Jun 12 17:59:06 2007
New Revision: 38416
URL: http://svn.opensuse.org/viewcvs/yast?rev=38416&view=rev
Log:
factories
Added:
branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.cc
branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.h
branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.cc
branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.h
Added: branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.cc?rev=38416&view=auto
==============================================================================
--- branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.cc (added)
+++ branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.cc Tue Jun 12 17:59:06 2007
@@ -0,0 +1,195 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQOptionalWidgetFactory.cc
+
+ Author: Stefan Hundhammer
+
+/-*/
+
+#include "YQOptionalWidgetFactory.h"
+#include "YUIException.h"
+
+
+#define THROW_UNSUPPORTED( WIDGET_TYPE ) \
+ YUI_THROW( YUIUnsupportedWidgetException( WIDGET_TYPE ) ); \
+ return 0
+
+
+
+YQOptionalWidgetFactory::YQOptionalWidgetFactory()
+ : YOptionalWidgetFactory()
+{
+ // NOP
+}
+
+YQOptionalWidgetFactory::~YQOptionalWidgetFactory()
+{
+ // NOP
+}
+
+
+
+bool YQOptionalWidgetFactory::hasWizard()
+{
+ return false;
+}
+
+YQWizard *
+YQOptionalWidgetFactory::createWizard( YWidget * parent )
+{
+ THROW_UNSUPPORTED( "QYWizard" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasDumbTab()
+{
+ return false;
+}
+
+YQDumbTab *
+YQOptionalWidgetFactory::createDumbTab( YWidget * parent )
+{
+ THROW_UNSUPPORTED( "YQDumbTab" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasSlider()
+{
+ return false;
+}
+
+YQSlider *
+YQOptionalWidgetFactory::createSlider( YWidget * parent,
+ const string & label,
+ int minVal,
+ int maxVal,
+ int initialVal )
+{
+ THROW_UNSUPPORTED( "YQSlider" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasDateField()
+{
+ return false;
+}
+
+YQDateField *
+YQOptionalWidgetFactory::createDateField( YWidget * parent, const string & label )
+{
+ THROW_UNSUPPORTED( "YQDateField" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasTimeField()
+{
+ return false;
+}
+
+YQTimeField *
+YQOptionalWidgetFactory::createTimeField( YWidget * parent, const string & label )
+{
+ THROW_UNSUPPORTED( "YQTimeField" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasBarGraph()
+{
+ return false;
+}
+
+YQBarGraph *
+YQOptionalWidgetFactory::createBarGraph( YWidget * parent, list<int> values, list<string> labels )
+{
+ THROW_UNSUPPORTED( "YQBarGraph" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasPatternSelector()
+{
+ return false;
+}
+
+YQPatternSelector *
+YQOptionalWidgetFactory::createPatternSelector( YWidget * parent )
+{
+ THROW_UNSUPPORTED( "YQPatternSelector" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasSimplePatchSelector()
+{
+ return false;
+}
+
+YQSimplePatchSelector *
+YQOptionalWidgetFactory::createSimplePatchSelector( YWidget * parent )
+{
+ THROW_UNSUPPORTED( "YQSimplePatchSelector" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasMultiProgressMeter()
+{
+ return false;
+}
+
+YQMultiProgressMeter *
+YQOptionalWidgetFactory::createHMultiProgressMeter( YWidget * parent, const string & label, list<int> maxValues )
+{
+ THROW_UNSUPPORTED( "YQMultiProgressMeter" );
+}
+
+YQMultiProgressMeter *
+YQOptionalWidgetFactory::createVMultiProgressMeter( YWidget * parent, const string & label, list<int> maxValues )
+{
+ THROW_UNSUPPORTED( "YQMultiProgressMeter" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasPartitionSplitter()
+{
+ return false;
+}
+
+YQPartitionSplitter *
+YQOptionalWidgetFactory::createPartitionSplitter( YWidget * parent )
+{
+ THROW_UNSUPPORTED( "YQPartitionSplitter" );
+}
+
+
+
+bool YQOptionalWidgetFactory::hasDownloadProgress()
+{
+ return false;
+}
+
+YQDownloadProgress *
+YQOptionalWidgetFactory::createDownloadProgress( YWidget * parent,
+ const string & label,
+ const string & filename,
+ long expectedFileSize )
+{
+ THROW_UNSUPPORTED( "YQDownloadProgress" );
+}
+
Added: branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.h?rev=38416&view=auto
==============================================================================
--- branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.h (added)
+++ branches/tmp/sh/mod-ui/qt/src/YQOptionalWidgetFactory.h Tue Jun 12 17:59:06 2007
@@ -0,0 +1,128 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQOptionalWidgetFactory.h
+
+ Author: Stefan Hundhammer
+
+/-*/
+
+#ifndef YQOptionalWidgetFactory_h
+#define YQOptionalWidgetFactory_h
+
+
+#include "YOptionalWidgetFactory.h"
+
+#include "YQBarGraph.h"
+#include "YQDownloadProgress.h"
+#include "YQDumbTab.h"
+#include "YQMultiProgressMeter.h"
+#include "YQPartitionSplitter.h"
+#include "YQPatternSelector.h"
+#include "YQSimplePatchSelector.h"
+#include "YQSlider.h"
+#include "YQWizard.h"
+
+#if 0
+#include "YQDateField.h"
+#include "YQTimeField.h"
+#else
+#define YQDateField YDateField
+#define YQTimeField YTimeField
+#endif
+
+using std::string;
+using std::list;
+
+
+
+/**
+ * Widget factory for optional ("special") widgets.
+ *
+ * Remember to always check with the corresponding "has..()" method if the
+ * current UI actually provides the requested widget. Otherwise the
+ * "create...()" method will throw an exception.
+ **/
+class YQOptionalWidgetFactory: public YOptionalWidgetFactory
+{
+public:
+
+ //
+ // Optional Widgets
+ //
+
+
+ virtual bool hasWizard();
+ virtual YQWizard * createWizard ( YWidget * parent );
+
+ virtual bool hasDumbTab();
+ virtual YQDumbTab * createDumbTab ( YWidget * parent );
+
+ virtual bool hasSlider();
+ virtual YQSlider * createSlider ( YWidget * parent,
+ const string & label,
+ int minVal,
+ int maxVal,
+ int initialVal );
+
+ virtual bool hasDateField();
+ virtual YQDateField * createDateField ( YWidget * parent, const string & label );
+
+ virtual bool hasTimeField();
+ virtual YQTimeField * createTimeField ( YWidget * parent, const string & label );
+
+ virtual bool hasBarGraph();
+ virtual YQBarGraph * createBarGraph ( YWidget * parent, list<int> values, list<string> labels );
+
+ virtual bool hasPatternSelector();
+ virtual YQPatternSelector * createPatternSelector ( YWidget * parent );
+
+ virtual bool hasSimplePatchSelector();
+ virtual YQSimplePatchSelector * createSimplePatchSelector( YWidget * parent );
+
+ virtual bool hasMultiProgressMeter();
+ virtual YQMultiProgressMeter * createHMultiProgressMeter( YWidget * parent, const string & label, list<int> maxValues );
+ virtual YQMultiProgressMeter * createVMultiProgressMeter( YWidget * parent, const string & label, list<int> maxValues );
+
+ virtual bool hasPartitionSplitter();
+ virtual YQPartitionSplitter * createPartitionSplitter ( YWidget * parent );
+
+ virtual bool hasDownloadProgress();
+ virtual YQDownloadProgress * createDownloadProgress ( YWidget * parent,
+ const string & label,
+ const string & filename,
+ long expectedFileSize );
+
+ // FIXME: drop ColoredLabel
+
+
+protected:
+
+ friend class YQUI;
+
+ /**
+ * Constructor.
+ *
+ * Use YUI::optionalWidgetFactory() to get the singleton for this class.
+ **/
+ YQOptionalWidgetFactory();
+
+ /**
+ * Destructor.
+ **/
+ virtual ~YQOptionalWidgetFactory();
+
+}; // class YQOptionalWidgetFactory
+
+
+
+#endif // YQOptionalWidgetFactory_h
Added: branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.cc?rev=38416&view=auto
==============================================================================
--- branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.cc (added)
+++ branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.cc Tue Jun 12 17:59:06 2007
@@ -0,0 +1,399 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQWidgetFactory.cc
+
+ Author: Stefan Hundhammer
+
+/-*/
+
+
+#include "YQWidgetFactory.h"
+#include "YUIException.h"
+
+#include <string>
+
+
+using std::string;
+
+
+YQWidgetFactory::YQWidgetFactory()
+ : YWidgetFactory()
+{
+ // NOP
+}
+
+YQWidgetFactory::~YQWidgetFactory()
+{
+ // NOP
+}
+
+
+
+
+//
+// Dialogs
+//
+
+YQDialog *
+YQWidgetFactory::createMainDialog()
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQDialog *
+YQWidgetFactory::createPopupDialog()
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+
+//
+// Layout Boxes
+//
+
+YQVBox *
+YQWidgetFactory::createVBox( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQHBox *
+YQWidgetFactory::createHBox( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+
+//
+// Common Leaf Widgets
+//
+
+YQPushButton *
+YQWidgetFactory::createPushButton( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQLabel *
+YQWidgetFactory::createHeading( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQLabel *
+YQWidgetFactory::createLabel( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQInputField *
+YQWidgetFactory::createInputField( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQCheckBox *
+YQWidgetFactory::createCheckBox( YWidget * parent, const string & label, bool isChecked )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQRadioButton *
+YQWidgetFactory::createRadioButton( YWidget * parent, const string & label, bool isChecked )
+{
+ YQRadioButton * radioButton = new YQRadioButton( parent, label, isChecked );
+ YUI_CHECK_NEW( radioButton );
+
+ // Register radio button with its button group.
+ // This has to be done after all constructors are done so virtual functions
+ // can be used.
+
+ if ( radioButton->buttonGroup() )
+ radioButton->buttonGroup()->addRadioButton( radioButton );
+
+ return radioButton;
+}
+
+
+
+YQComboBox *
+YQWidgetFactory::createComboBox( YWidget * parent, const string & label, bool editable )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQSelectionBox *
+YQWidgetFactory::createSelectionBox( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQTree *
+YQWidgetFactory::createTree( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQTable *
+YQWidgetFactory::createTable( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQProgressBar *
+YQWidgetFactory::createProgressBar( YWidget * parent, const string & label, int maxValue )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQRichText *
+YQWidgetFactory::createRichText( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+
+//
+// Less Common Leaf Widgets
+//
+
+YQIntField *
+YQWidgetFactory::createIntField( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQInputField *
+YQWidgetFactory::createPasswordField( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQLabel *
+YQWidgetFactory::createOutputField( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+
+YQMenuButton *
+YQWidgetFactory::createMenuButton( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQPushButton *
+YQWidgetFactory::createIconButton( YWidget * parent, const string & iconName, const string & fallbackTextLabel )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQMultiLineEdit *
+YQWidgetFactory::createMultiLineEdit( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQImage *
+YQWidgetFactory::createImage( YWidget * parent, const string & imagePath )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQLogView *
+YQWidgetFactory::createLogView( YWidget * parent, const string & label, int visibleLines, int storedLines )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQSelectionBox *
+YQWidgetFactory::createMultiSelectionBox( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+
+YQPackageSelector *
+YQWidgetFactory::createPackageSelector( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YPkgSpecial *
+YQWidgetFactory::createPkgSpecial( YWidget * parent )
+{
+ YUI_THROW( YUIUnsupportedWidgetException( "YQPkgSpecial" ) ); // NCurses only
+ return 0;
+}
+
+
+//
+// Layout Helpers
+//
+
+YQEmpty *
+YQWidgetFactory::createHStretch( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQEmpty *
+YQWidgetFactory::createVStretch( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQEmpty *
+YQWidgetFactory::createHSpacing( YWidget * parent, YLayoutSize_t size )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQEmpty *
+YQWidgetFactory::createVSpacing( YWidget * parent, YLayoutSize_t size )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQEmpty *
+YQWidgetFactory::createEmpty( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQAlignment *
+YQWidgetFactory::createAlignment( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQAlignment *
+YQWidgetFactory::createMarginBox( YWidget * parent,
+ YLayoutSize_t leftMargin, YLayoutSize_t rightMargin,
+ YLayoutSize_t topMargin, YLayoutSize_t bottomMargin )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQAlignment *
+YQWidgetFactory::createMinSize( YWidget * parent, YLayoutSize_t minWidth, YLayoutSize_t minHeight )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQSquash *
+YQWidgetFactory::createSquash( YWidget * parent, bool hSquash, bool vSquash )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQFrame *
+YQWidgetFactory::createFrame( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQCheckBoxFrame *
+YQWidgetFactory::createCheckBoxFrame( YWidget * parent, const string & label )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQRadioButtonGroup *
+YQWidgetFactory::createRadioButtonGroup( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
+YQReplacePoint *
+YQWidgetFactory::createReplacePoint( YWidget * parent )
+{
+ return 0; // FIXME: TO DO
+}
+
+
+
Added: branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.h?rev=38416&view=auto
==============================================================================
--- branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.h (added)
+++ branches/tmp/sh/mod-ui/qt/src/YQWidgetFactory.h Tue Jun 12 17:59:06 2007
@@ -0,0 +1,178 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQWidgetFactory.h
+
+ Author: Stefan Hundhammer
+
+/-*/
+
+#ifndef YQWidgetFactory_h
+#define YQWidgetFactory_h
+
+
+#include "YWidgetFactory.h"
+
+#include "YQAlignment.h"
+#include "YQCheckBox.h"
+#include "YQCheckBoxFrame.h"
+#include "YQComboBox.h"
+#include "YQDialog.h"
+#include "YQEmpty.h"
+#include "YQFrame.h"
+#include "YQImage.h"
+#include "YQIntField.h"
+#include "YQLabel.h"
+#include "YQLogView.h"
+#include "YQMenuButton.h"
+#include "YQMultiLineEdit.h"
+#include "YQPackageSelector.h"
+#include "YQProgressBar.h"
+#include "YQPushButton.h"
+#include "YQRadioButton.h"
+#include "YQRadioButtonGroup.h"
+#include "YQReplacePoint.h"
+#include "YQRichText.h"
+#include "YQSelectionBox.h"
+#include "YQSquash.h"
+#include "YQTable.h"
+#include "YQTree.h"
+
+#if 0
+#include "YQHBox.h"
+#include "YQVBox.h"
+#include "YQInputField.h"
+#include "YQTimeField.h"
+#else
+#define YQHBox YHBox
+#define YQVBox YVBox
+#define YQInputField YInputField
+#define YQTimeField YTimeField
+#endif
+
+using std::string;
+
+
+/**
+ * Concrete widget factory for mandatory widgets.
+ **/
+class YQWidgetFactory: public YWidgetFactory
+{
+public:
+ // Note: Using covariant return types for all createXY() methods
+ // (returning YQXyWidget where the base class declares virtual methods that
+ // return YXyWidget)
+
+
+ //
+ // Dialogs
+ //
+
+ virtual YQDialog * createMainDialog();
+ virtual YQDialog * createPopupDialog();
+
+ //
+ // Layout Boxes
+ //
+
+ virtual YQVBox * createVBox ( YWidget * parent );
+ virtual YQHBox * createHBox ( YWidget * parent );
+
+ //
+ // Common Leaf Widgets
+ //
+
+ virtual YQPushButton * createPushButton ( YWidget * parent, const string & label );
+ virtual YQLabel * createHeading ( YWidget * parent, const string & label );
+ virtual YQLabel * createLabel ( YWidget * parent, const string & label );
+ virtual YQInputField * createInputField ( YWidget * parent, const string & label );
+ virtual YQCheckBox * createCheckBox ( YWidget * parent, const string & label, bool isChecked = false );
+ virtual YQRadioButton * createRadioButton ( YWidget * parent, const string & label, bool isChecked = false );
+ virtual YQComboBox * createComboBox ( YWidget * parent, const string & label, bool editable = false );
+ virtual YQSelectionBox * createSelectionBox ( YWidget * parent, const string & label );
+ virtual YQTree * createTree ( YWidget * parent, const string & label );
+ virtual YQTable * createTable ( YWidget * parent );
+ virtual YQProgressBar * createProgressBar ( YWidget * parent, const string & label, int maxValue = 100 );
+ virtual YQRichText * createRichText ( YWidget * parent );
+
+ //
+ // Less Common Leaf Widgets
+ //
+
+ virtual YQIntField * createIntField ( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal );
+ virtual YQInputField * createPasswordField ( YWidget * parent, const string & label );
+ virtual YQLabel * createOutputField ( YWidget * parent, const string & label );
+
+ virtual YQMenuButton * createMenuButton ( YWidget * parent, const string & label );
+ virtual YQPushButton * createIconButton ( YWidget * parent, const string & iconName, const string & fallbackTextLabel );
+ virtual YQMultiLineEdit * createMultiLineEdit ( YWidget * parent, const string & label );
+ virtual YQImage * createImage ( YWidget * parent, const string & imagePath );
+ virtual YQLogView * createLogView ( YWidget * parent, const string & label, int visibleLines, int storedLines = 0 );
+ virtual YQSelectionBox * createMultiSelectionBox ( YWidget * parent, const string & label );
+
+ virtual YQPackageSelector * createPackageSelector ( YWidget * parent );
+ virtual YPkgSpecial * createPkgSpecial ( YWidget * parent ); // NCurses only
+
+ //
+ // Layout Helpers
+ //
+
+ virtual YQEmpty * createHStretch ( YWidget * parent );
+ virtual YQEmpty * createVStretch ( YWidget * parent );
+ virtual YQEmpty * createHSpacing ( YWidget * parent, YLayoutSize_t size = 1.0 );
+ virtual YQEmpty * createVSpacing ( YWidget * parent, YLayoutSize_t size = 1.0 );
+ virtual YQEmpty * createEmpty ( YWidget * parent );
+
+ virtual YQAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
+
+ virtual YQAlignment * createMarginBox ( YWidget * parent,
+ YLayoutSize_t leftMargin, YLayoutSize_t rightMargin,
+ YLayoutSize_t topMargin, YLayoutSize_t bottomMargin );
+
+ virtual YQAlignment * createMinSize ( YWidget * parent, YLayoutSize_t minWidth, YLayoutSize_t minHeight );
+ virtual YQSquash * createSquash ( YWidget * parent, bool hSquash, bool vSquash );
+
+ //
+ // Visual Grouping
+ //
+
+ virtual YQFrame * createFrame ( YWidget * parent, const string & label );
+ virtual YQCheckBoxFrame * createCheckBoxFrame ( YWidget * parent, const string & label );
+
+ //
+ // Logical Grouping
+ //
+
+ virtual YQRadioButtonGroup *createRadioButtonGroup ( YWidget * parent );
+ virtual YQReplacePoint * createReplacePoint ( YWidget * parent );
+
+
+protected:
+
+ friend class YQUI;
+
+ /**
+ * Constructor.
+ *
+ * Use YUI::widgetFactory() to get the singleton for this class.
+ **/
+ YQWidgetFactory();
+
+ /**
+ * Destructory.
+ **/
+ virtual ~YQWidgetFactory();
+
+}; // class YWidgetFactory
+
+
+#endif // YQWidgetFactory_h
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org