Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

NCSplit.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013    File:       NCSplit.h
00014 
00015    Author:     Michael Andres <ma@suse.de>
00016    Maintainer: Michael Andres <ma@suse.de>
00017 
00018 /-*/
00019 #ifndef NCSplit_h
00020 #define NCSplit_h
00021 
00022 #include <iosfwd>
00023 
00024 #include "YSplit.h"
00025 #include "NCWidget.h"
00026 
00027 class NCSplit;
00028 
00030 //
00031 //      CLASS NAME : NCSplit
00032 //
00033 //      DESCRIPTION :
00034 //
00035 class NCSplit : public YSplit, public NCWidget {
00036 
00037   friend std::ostream & operator<<( std::ostream & STREAM, const NCSplit & OBJ );
00038 
00039   NCSplit & operator=( const NCSplit & );
00040   NCSplit            ( const NCSplit & );
00041 
00042   private:
00043 
00044   protected:
00045 
00046     virtual const char * location() const {
00047       return dimension() == YD_HORIZ ? "NC(H)Split" : "NC(V)Split" ;
00048     }
00049 
00050   public:
00051 
00052     NCSplit( NCWidget * parent, const YWidgetOpt & opt,
00053              YUIDimension dimension );
00054     virtual ~NCSplit();
00055 
00056     virtual long nicesize( YUIDimension dim ) { return YSplit::nicesize( dim ); }
00057     virtual void setSize( long newwidth, long newheight );
00058 
00059     virtual void moveChild( YWidget * child, long newx, long newy );
00060 
00061     virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
00062 };
00063 
00065 
00066 #endif // NCSplit_h

Generated on Wed Sep 14 10:52:54 2005 for yast2-ncurses by  doxygen 1.4.4