Author: gs
Date: Thu Jun 28 13:51:23 2007
New Revision: 39077
URL: http://svn.opensuse.org/viewcvs/yast?rev=39077&view=rev
Log:
adapt NCLayoutBox
Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.h
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc?rev=39077&r1=39076&r2=39077&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc Thu Jun 28 13:51:23 2007
@@ -10,7 +10,7 @@
| (C) SuSE GmbH |
\----------------------------------------------------------------------/
- File: NCSplit.cc
+ File: NCLayoutBox.cc
Author: Michael Andres
Maintainer: Michael Andres
@@ -18,19 +18,19 @@
/-*/
#include "Y2Log.h"
#include "NCurses.h"
-#include "NCSplit.h"
+#include "NCLayoutBox.h"
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCSplit::NCSplit
+// METHOD NAME : NCLayoutBox::NCLayoutBox
// METHOD TYPE : Constructor
//
// DESCRIPTION :
//
-NCSplit::NCSplit( NCWidget * parent, const YWidgetOpt & opt,
+NCLayoutBox::NCLayoutBox( NCWidget * parent, const YWidgetOpt & opt,
YUIDimension dimension )
- : YSplit( opt, dimension )
+ : YLayoutBox( opt, dimension )
, NCWidget( parent )
{
WIDDBG << endl;
@@ -40,12 +40,12 @@
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCSplit::~NCSplit
+// METHOD NAME : NCLayoutBox::~NCLayoutBox
// METHOD TYPE : Destructor
//
// DESCRIPTION :
//
-NCSplit::~NCSplit()
+NCLayoutBox::~NCLayoutBox()
{
WIDDBG << endl;
}
@@ -53,26 +53,26 @@
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCSplit::setSize
+// METHOD NAME : NCLayoutBox::setSize
// METHOD TYPE : void
//
// DESCRIPTION :
//
-void NCSplit::setSize( int newwidth, int newheight )
+void NCLayoutBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
- YSplit::setSize( newwidth, newheight );
+ YLayoutBox::setSize( newwidth, newheight );
}
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCSplit::moveChild
+// METHOD NAME : NCLayoutBox::moveChild
// METHOD TYPE : void
//
// DESCRIPTION :
//
-void NCSplit::moveChild( YWidget * child, long newx, long newy )
+void NCLayoutBox::moveChild( YWidget * child, int newx, int newy )
{
NCWidget * cw = dynamic_cast(child);
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.h?rev=39077&r1=39076&r2=39077&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.h Thu Jun 28 13:51:23 2007
@@ -10,50 +10,50 @@
| (C) SuSE GmbH |
\----------------------------------------------------------------------/
- File: NCSplit.h
+ File: NCLayoutBox.h
Author: Michael Andres
Maintainer: Michael Andres
/-*/
-#ifndef NCSplit_h
-#define NCSplit_h
+#ifndef NCLayoutBox_h
+#define NCLayoutBox_h
#include <iosfwd>
-#include "YSplit.h"
+#include "YLayoutBox.h"
#include "NCWidget.h"
-class NCSplit;
+class NCLayoutBox;
///////////////////////////////////////////////////////////////////
//
-// CLASS NAME : NCSplit
+// CLASS NAME : NCLayoutBox
//
// DESCRIPTION :
//
-class NCSplit : public YSplit, public NCWidget {
+class NCLayoutBox : public YLayoutBox, public NCWidget {
- friend std::ostream & operator<<( std::ostream & STREAM, const NCSplit & OBJ );
+ friend std::ostream & operator<<( std::ostream & STREAM, const NCLayoutBox & OBJ );
- NCSplit & operator=( const NCSplit & );
- NCSplit ( const NCSplit & );
+ NCLayoutBox & operator=( const NCLayoutBox & );
+ NCLayoutBox ( const NCLayoutBox & );
private:
protected:
virtual const char * location() const {
- return dimension() == YD_HORIZ ? "NC(H)Split" : "NC(V)Split" ;
+ return primary() == YD_HORIZ ? "NC(H)LayoutBox" : "NC(V)LayoutBox" ;
}
public:
- NCSplit( NCWidget * parent, const YWidgetOpt & opt,
+ NCLayoutBox( NCWidget * parent, const YWidgetOpt & opt,
YUIDimension dimension );
- virtual ~NCSplit();
+ virtual ~NCLayoutBox();
- virtual long nicesize( YUIDimension dim ) { return YSplit::nicesize( dim ); }
+ //virtual long nicesize( YUIDimension dim ) { return YLayoutBox::nicesize( dim ); }
/**
* Set the new size of the widget.
@@ -62,11 +62,11 @@
**/
virtual void setSize( int newWidth, int newHeight );
- virtual void moveChild( YWidget * child, long newx, long newy );
+ virtual void moveChild( YWidget * child, int newx, int newy );
virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
};
///////////////////////////////////////////////////////////////////
-#endif // NCSplit_h
+#endif // NCLayoutBox_h
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org