Author: sh-sh-sh
Date: Wed Jun 13 17:38:42 2007
New Revision: 38437
URL: http://svn.opensuse.org/viewcvs/yast?rev=38437&view=rev
Log:
renamed YSplit -> YLayoutBox
Modified:
branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h
branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.cc
branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.h
branches/tmp/sh/mod-ui/core/libyui/src/YWidgetOpt.h
Modified: branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h (original)
+++ branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h Wed Jun 13 17:38:42 2007
@@ -25,7 +25,7 @@
/**
* @short Base class of all widgets that have child widgets
*
- * A Container is a widget that has child widgets. Examples are @ref YSplit,
+ * A Container is a widget that has child widgets. Examples are @ref YLayoutBox,
* @ref YReplacePoint, @ref YAlignment. This class generically handles the
* houskeeping of child widgets, looks for children with certain IDs and
* provides default implementations for nicesize, stretchable and
Modified: branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.cc?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.cc (original)
+++ branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.cc Wed Jun 13 17:38:42 2007
@@ -10,7 +10,7 @@
| (C) SuSE GmbH |
\----------------------------------------------------------------------/
- File: YSplit.cc
+ File: YLayoutBox.cc
Author: Stefan Hundhammer
@@ -20,7 +20,7 @@
#define y2log_component "ui-layout"
#include
-#include "YSplit.h"
+#include "YLayoutBox.h"
#include "YAlignment.h"
#include "YUI.h"
@@ -28,7 +28,7 @@
#include <algorithm>
-YSplit::YSplit( const YWidgetOpt & opt, YUIDimension dimension )
+YLayoutBox::YLayoutBox( const YWidgetOpt & opt, YUIDimension dimension )
: YContainerWidget( opt )
, primary( dimension )
, secondary( dimension == YD_HORIZ ? YD_VERT : YD_HORIZ )
@@ -37,12 +37,12 @@
if ( debugLayout )
{
- y2debug( "YSplit: Layout debugging enabled" );
+ y2debug( "YLayoutBox: Layout debugging enabled" );
}
}
-long YSplit::nicesize( YUIDimension dimension )
+long YLayoutBox::nicesize( YUIDimension dimension )
{
if ( dimension != primary ) // the easy case first: secondary dimension
{
@@ -104,7 +104,7 @@
* -1 will be returned.
*/
-int YSplit::bossChild()
+int YLayoutBox::bossChild()
{
int boss = -1;
double bossRatio = 0.0;
@@ -130,7 +130,7 @@
{
if ( boss >= 0 )
{
- y2debug( "YSplit::boss(): "
+ y2debug( "YLayoutBox::boss(): "
"Found boss child: #%d ( %s ) - nice size: %ld, weight: %ld",
boss,
child( boss )->widgetClass(),
@@ -139,7 +139,7 @@
}
else
{
- y2debug( "YSplit::boss(): This layout doesn't have a boss." );
+ y2debug( "YLayoutBox::boss(): This layout doesn't have a boss." );
}
}
@@ -147,7 +147,7 @@
}
-long YSplit::childrenMaxNiceSize( YUIDimension dimension )
+long YLayoutBox::childrenMaxNiceSize( YUIDimension dimension )
{
long maxNiceSize = 0L;
@@ -160,7 +160,7 @@
}
-long YSplit::childrenTotalWeight( YUIDimension dimension )
+long YLayoutBox::childrenTotalWeight( YUIDimension dimension )
{
long totalWeight = 0L;
@@ -173,7 +173,7 @@
}
-long YSplit::totalNonWeightedChildrenNiceSize( YUIDimension dimension )
+long YLayoutBox::totalNonWeightedChildrenNiceSize( YUIDimension dimension )
{
long size = 0L;
@@ -187,7 +187,7 @@
}
-int YSplit::countNonWeightedChildren( YUIDimension dimension )
+int YLayoutBox::countNonWeightedChildren( YUIDimension dimension )
{
int count = 0;
@@ -201,7 +201,7 @@
}
-int YSplit::countStretchableChildren( YUIDimension dimension )
+int YLayoutBox::countStretchableChildren( YUIDimension dimension )
{
int count = 0;
@@ -216,7 +216,7 @@
}
-int YSplit::countLayoutStretchChildren( YUIDimension dimension )
+int YLayoutBox::countLayoutStretchChildren( YUIDimension dimension )
{
int count = 0;
@@ -231,7 +231,7 @@
}
-bool YSplit::stretchable( YUIDimension dimension ) const
+bool YLayoutBox::stretchable( YUIDimension dimension ) const
{
for ( int i = 0; i < numChildren(); i++ )
{
@@ -244,7 +244,7 @@
}
-void YSplit::setSize( long newWidth, long newHeight )
+void YLayoutBox::setSize( long newWidth, long newHeight )
{
int childrenCount = numChildren();
sizeVector widths ( childrenCount );
@@ -276,9 +276,9 @@
}
-void YSplit::calcPrimaryGeometry( long newSize,
- sizeVector & childSize,
- posVector & childPos )
+void YLayoutBox::calcPrimaryGeometry( long newSize,
+ sizeVector & childSize,
+ posVector & childPos )
{
long pos = 0L;
long distributableSize = newSize - totalNonWeightedChildrenNiceSize( primary );
@@ -540,9 +540,9 @@
}
-void YSplit::calcSecondaryGeometry( long newSize,
- sizeVector & childSize,
- posVector & childPos )
+void YLayoutBox::calcSecondaryGeometry( long newSize,
+ sizeVector & childSize,
+ posVector & childPos )
{
for ( int i = 0; i < numChildren(); i++ )
{
@@ -581,10 +581,10 @@
}
-void YSplit::doResize( sizeVector & width,
- sizeVector & height,
- posVector & x_pos,
- posVector & y_pos )
+void YLayoutBox::doResize( sizeVector & width,
+ sizeVector & height,
+ posVector & x_pos,
+ posVector & y_pos )
{
for ( int i = 0; i < numChildren(); i++ )
{
Modified: branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.h?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.h (original)
+++ branches/tmp/sh/mod-ui/core/libyui/src/YLayoutBox.h Wed Jun 13 17:38:42 2007
@@ -10,14 +10,14 @@
| (C) SuSE GmbH |
\----------------------------------------------------------------------/
- File: YSplit.h
+ File: YLayoutBox.h
Author: Stefan Hundhammer
/-*/
-#ifndef YSplit_h
-#define YSplit_h
+#ifndef YLayoutBox_h
+#define YLayoutBox_h
#include "YContainerWidget.h"
@@ -25,22 +25,22 @@
/**
* @short Implementation of the Split widget.
*/
-class YSplit : public YContainerWidget
+class YLayoutBox : public YContainerWidget
{
public:
typedef vector<long>sizeVector;
typedef vector<long>posVector;
/**
- * Creates a new YSplit
+ * Creates a new YLayoutBox
*/
- YSplit( const YWidgetOpt & opt, YUIDimension newPrimaryDimension );
+ YLayoutBox( const YWidgetOpt & opt, YUIDimension newPrimaryDimension );
/**
* Returns a descriptive name of this widget class for logging,
* debugging etc.
*/
- virtual const char * widgetClass() { return "YSplit"; }
+ virtual const char * widgetClass() { return "YLayoutBox"; }
/**
* Returns the dimensions.
@@ -168,4 +168,4 @@
};
-#endif // YSplit_h
+#endif // YLayoutBox_h
Modified: branches/tmp/sh/mod-ui/core/libyui/src/YWidgetOpt.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/YWidgetOpt.h?rev=38437&r1=38436&r2=38437&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/core/libyui/src/YWidgetOpt.h (original)
+++ branches/tmp/sh/mod-ui/core/libyui/src/YWidgetOpt.h Wed Jun 13 17:38:42 2007
@@ -150,7 +150,7 @@
YBoolOpt keepSorting; // YTable
YBoolOpt invertAutoEnable; // YCheckBoxFrame
YBoolOpt noAutoEnable; // YCheckBoxFrame
- YBoolOpt debugLayoutMode; // YSplit
+ YBoolOpt debugLayoutMode; // YLayoutBox
YBoolOpt zeroWidth; // YImage
YBoolOpt zeroHeight; // YImage
YBoolOpt animated; // YImage
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org