Author: sh-sh-sh
Date: Mon Apr 7 18:37:44 2008
New Revision: 46197
URL: http://svn.opensuse.org/viewcvs/yast?rev=46197&view=rev
Log:
Got rid of utterly useless generated forms for functions and classes:
They always contain redundant information (that is visible one line
below the comment anyway), yet that redundant information (function
return type!) is not checked by the compiler, even if the return type
changes. Yet the single field that would be important (DESCRIPTION) is
empty (!) in 98% of all cases.
This saves ~3000 lines of utterly useless comments.
Modified:
trunk/ncurses/src/NCAlignment.cc
trunk/ncurses/src/NCAlignment.h
trunk/ncurses/src/NCAskForDirectory.cc
trunk/ncurses/src/NCAskForDirectory.h
trunk/ncurses/src/NCAskForFile.cc
trunk/ncurses/src/NCAskForFile.h
trunk/ncurses/src/NCBusyIndicator.cc
trunk/ncurses/src/NCBusyIndicator.h
trunk/ncurses/src/NCCheckBox.cc
trunk/ncurses/src/NCCheckBox.h
trunk/ncurses/src/NCCheckBoxFrame.cc
trunk/ncurses/src/NCCheckBoxFrame.h
trunk/ncurses/src/NCComboBox.cc
trunk/ncurses/src/NCComboBox.h
trunk/ncurses/src/NCDialog.cc
trunk/ncurses/src/NCDialog.h
trunk/ncurses/src/NCEmpty.cc
trunk/ncurses/src/NCEmpty.h
trunk/ncurses/src/NCFileSelection.cc
trunk/ncurses/src/NCFileSelection.h
trunk/ncurses/src/NCFrame.cc
trunk/ncurses/src/NCFrame.h
trunk/ncurses/src/NCImage.cc
trunk/ncurses/src/NCImage.h
trunk/ncurses/src/NCInputField.cc
trunk/ncurses/src/NCInputField.h
trunk/ncurses/src/NCIntField.cc
trunk/ncurses/src/NCIntField.h
trunk/ncurses/src/NCLabel.cc
trunk/ncurses/src/NCLabel.h
trunk/ncurses/src/NCLayoutBox.cc
trunk/ncurses/src/NCLayoutBox.h
trunk/ncurses/src/NCLogView.cc
trunk/ncurses/src/NCLogView.h
trunk/ncurses/src/NCMenuButton.cc
trunk/ncurses/src/NCMenuButton.h
trunk/ncurses/src/NCMultiLineEdit.cc
trunk/ncurses/src/NCMultiLineEdit.h
trunk/ncurses/src/NCMultiSelectionBox.cc
trunk/ncurses/src/NCMultiSelectionBox.h
trunk/ncurses/src/NCPackageSelectorPluginStub.cc
trunk/ncurses/src/NCPad.cc
trunk/ncurses/src/NCPad.h
trunk/ncurses/src/NCPadWidget.cc
trunk/ncurses/src/NCPadWidget.h
trunk/ncurses/src/NCPopup.cc
trunk/ncurses/src/NCPopup.h
trunk/ncurses/src/NCPopupInfo.cc
trunk/ncurses/src/NCPopupInfo.h
trunk/ncurses/src/NCPopupList.cc
trunk/ncurses/src/NCPopupList.h
trunk/ncurses/src/NCPopupMenu.cc
trunk/ncurses/src/NCPopupMenu.h
trunk/ncurses/src/NCPopupTable.cc
trunk/ncurses/src/NCPopupTable.h
trunk/ncurses/src/NCPopupTextEntry.cc
trunk/ncurses/src/NCPopupTextEntry.h
trunk/ncurses/src/NCProgressBar.cc
trunk/ncurses/src/NCProgressBar.h
trunk/ncurses/src/NCPushButton.cc
trunk/ncurses/src/NCPushButton.h
trunk/ncurses/src/NCRadioButton.cc
trunk/ncurses/src/NCRadioButton.h
trunk/ncurses/src/NCRadioButtonGroup.cc
trunk/ncurses/src/NCRadioButtonGroup.h
trunk/ncurses/src/NCReplacePoint.cc
trunk/ncurses/src/NCReplacePoint.h
trunk/ncurses/src/NCRichText.cc
trunk/ncurses/src/NCRichText.h
trunk/ncurses/src/NCSelectionBox.cc
trunk/ncurses/src/NCSelectionBox.h
trunk/ncurses/src/NCSpacing.cc
trunk/ncurses/src/NCSpacing.h
trunk/ncurses/src/NCSquash.cc
trunk/ncurses/src/NCSquash.h
trunk/ncurses/src/NCStyleDef.cc
trunk/ncurses/src/NCTable.cc
trunk/ncurses/src/NCTable.h
trunk/ncurses/src/NCTableItem.cc
trunk/ncurses/src/NCTableItem.h
trunk/ncurses/src/NCTablePad.cc
trunk/ncurses/src/NCTablePad.h
trunk/ncurses/src/NCTextPad.cc
trunk/ncurses/src/NCTextPad.h
trunk/ncurses/src/NCTree.cc
trunk/ncurses/src/NCTreePad.cc
trunk/ncurses/src/NCTreePad.h
trunk/ncurses/src/NCWidget.cc
trunk/ncurses/src/NCWidget.h
trunk/ncurses/src/NCWidgetFactory.cc
trunk/ncurses/src/NCattribute.cc
trunk/ncurses/src/NCattribute.h
trunk/ncurses/src/NCstring.cc
trunk/ncurses/src/NCstring.h
trunk/ncurses/src/NCstyle.cc
trunk/ncurses/src/NCstyle.h
trunk/ncurses/src/NCtext.cc
trunk/ncurses/src/NCtext.h
trunk/ncurses/src/NCurses.cc
trunk/ncurses/src/NCurses.h
trunk/ncurses/src/YNCursesUI.cc
trunk/ncurses/src/ncursesp.cc
trunk/ncurses/src/ncursesw.cc
trunk/ncurses/src/position.h
trunk/ncurses/src/tnode.h
Modified: trunk/ncurses/src/NCAlignment.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAlignment.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAlignment.cc (original)
+++ trunk/ncurses/src/NCAlignment.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCAlignment.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAlignment::NCAlignment
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCAlignment::NCAlignment( YWidget * parent,
YAlignmentType halign,
YAlignmentType valign )
@@ -40,55 +34,31 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAlignment::~NCAlignment
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCAlignment::~NCAlignment()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAlignment::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCAlignment::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
YAlignment::setSize( newwidth, newheight);
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAlignment::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCAlignment::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YAlignment::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAlignment::moveChild
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCAlignment::moveChild( YWidget * child, int newx, int newy )
{
NCWidget * cw = dynamic_cast(child);
Modified: trunk/ncurses/src/NCAlignment.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAlignment.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAlignment.h (original)
+++ trunk/ncurses/src/NCAlignment.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCAlignment;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCAlignment
-//
-// DESCRIPTION :
-//
+
class NCAlignment : public YAlignment, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCAlignment & OBJ );
@@ -65,6 +60,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCAlignment_h
Modified: trunk/ncurses/src/NCAskForDirectory.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAskForDirectory.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAskForDirectory.cc (original)
+++ trunk/ncurses/src/NCAskForDirectory.cc Mon Apr 7 18:37:44 2008
@@ -39,14 +39,8 @@
*/
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingDirectory::NCAskForExistingDirectory
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForExistingDirectory::NCAskForExistingDirectory( const wpos at,
const string & iniDir,
const string & headline )
@@ -61,27 +55,15 @@
setTextdomain( "ncurses" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingDirectory::~NCAskForExistingDirectory
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForExistingDirectory::~NCAskForExistingDirectory()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingDirectory::createLayout
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCAskForExistingDirectory::createLayout( const string & iniDir,
const string & headline )
{
@@ -138,11 +120,7 @@
new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 );
}
-///////////////////////////////////////////////////////////////////
-//
// NCursesEvent & showDirPopup ()
-//
-//
NCursesEvent & NCAskForExistingDirectory::showDirPopup( )
{
postevent = NCursesEvent();
@@ -178,14 +156,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCAskForExistingDirectory::wHandleInput( wint_t ch )
{
if ( ch == 27 ) // ESC
@@ -194,14 +166,8 @@
return NCDialog::wHandleInput( ch );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingDirectory::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCAskForExistingDirectory::postAgain( )
{
if( !postevent.widget )
Modified: trunk/ncurses/src/NCAskForDirectory.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAskForDirectory.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAskForDirectory.h (original)
+++ trunk/ncurses/src/NCAskForDirectory.h Mon Apr 7 18:37:44 2008
@@ -32,12 +32,7 @@
#include "NCCheckBox.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCAskForExistingDirectory
-//
-// DESCRIPTION :
-//
+
class NCAskForExistingDirectory : public NCPopup {
NCAskForExistingDirectory & operator=( const NCAskForExistingDirectory & );
@@ -91,7 +86,6 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCAskForExistingDirectory_h
Modified: trunk/ncurses/src/NCAskForFile.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAskForFile.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAskForFile.cc (original)
+++ trunk/ncurses/src/NCAskForFile.cc Mon Apr 7 18:37:44 2008
@@ -40,14 +40,8 @@
*/
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::NCAskForFile
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForFile::NCAskForFile( const wpos at,
const string & iniDir,
const string & filter,
@@ -64,14 +58,8 @@
setTextdomain( "ncurses" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::NCAskForFile
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForFile::~NCAskForFile( )
{
@@ -111,14 +99,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::createLayout
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCAskForFile::createLayout( const string & iniDir,
const string & filter,
const string & headline,
@@ -219,11 +201,7 @@
new NCSpacing( hSplit3, YD_HORIZ, true, 0.2 );
}
-///////////////////////////////////////////////////////////////////
-//
// NCursesEvent & showDirPopup ()
-//
-//
NCursesEvent & NCAskForFile::showDirPopup( )
{
postevent = NCursesEvent();
@@ -258,14 +236,8 @@
return NCurses::lines()-4;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCAskForFile::wHandleInput( wint_t ch )
{
if ( ch == 27 ) // ESC
@@ -274,14 +246,8 @@
return NCDialog::wHandleInput( ch );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::updateFileList
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
void NCAskForFile::updateFileList()
{
// set new start dir and show the file list
@@ -292,14 +258,8 @@
fileName->setValue( fileList->getCurrentFile() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCAskForFile::postAgain( )
{
if( !postevent.widget )
@@ -386,14 +346,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForFile::NCAskForFile
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCAskForFile::getCheckBoxValue( NCCheckBox * checkBox )
{
if ( checkBox )
@@ -405,14 +359,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingFile::NCAskForExistingFile
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForExistingFile::NCAskForExistingFile( const wpos at,
const string & iniDir,
const string & filter,
@@ -425,14 +373,8 @@
false ); // file name is not editable
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingFile::getFileName
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
string NCAskForExistingFile::getFileName()
{
if ( fileName->value() == "" )
@@ -441,14 +383,8 @@
return fileName->value();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForExistingFile::NCAskForExistingFile
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCAskForSaveFileName::NCAskForSaveFileName( const wpos at,
const string & iniDir,
const string & filter,
@@ -461,14 +397,8 @@
true ); // file name is editable
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCAskForSaveFileName::NCAskForSaveFileName
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
string NCAskForSaveFileName::getFileName()
{
return fileName->value();
Modified: trunk/ncurses/src/NCAskForFile.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCAskForFile.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCAskForFile.h (original)
+++ trunk/ncurses/src/NCAskForFile.h Mon Apr 7 18:37:44 2008
@@ -33,12 +33,7 @@
#include "NCInputField.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCAskForFile
-//
-// DESCRIPTION :
-//
+
class NCAskForFile : public NCPopup {
NCAskForFile & operator=( const NCAskForFile & );
@@ -111,12 +106,7 @@
};
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCAskForExistingFile
-//
-// DESCRIPTION :
-//
+
class NCAskForExistingFile : public NCAskForFile {
NCAskForExistingFile & operator=( const NCAskForFile & );
@@ -136,12 +126,7 @@
virtual string getFileName();
};
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCAskForSaveFileName
-//
-// DESCRIPTION :
-//
+
class NCAskForSaveFileName : public NCAskForFile {
NCAskForSaveFileName & operator=( const NCAskForFile & );
@@ -162,7 +147,6 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCAskForFile_h
Modified: trunk/ncurses/src/NCBusyIndicator.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCBusyIndicator.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCBusyIndicator.cc (original)
+++ trunk/ncurses/src/NCBusyIndicator.cc Mon Apr 7 18:37:44 2008
@@ -56,14 +56,8 @@
void NCBusyIndicatorHandlerWrapper(int sig_num);
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::NCBusyIndicator
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCBusyIndicator::NCBusyIndicator( YWidget * parent,
const string & nlabel,
int timeout )
@@ -97,14 +91,8 @@
#endif
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::~NCBusyIndicator
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCBusyIndicator::~NCBusyIndicator()
{
NCBusyIndicatorObject = NULL;
@@ -113,14 +101,8 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCBusyIndicator::nicesize( YUIDimension dim )
{
return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H;
@@ -142,41 +124,23 @@
YBusyIndicator::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCBusyIndicator::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::setDefsze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCBusyIndicator::setDefsze()
{
defsze = wsze( _label.height() + 1,
_label.width() < 5 ? 5 : _label.width() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCBusyIndicator::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -203,14 +167,8 @@
'r' );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCBusyIndicator::wDelete()
{
delete _lwin;
@@ -220,14 +178,8 @@
NCWidget::wDelete();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCBusyIndicator::setLabel( const string & nlabel )
{
_label = NCstring( nlabel );
@@ -236,14 +188,9 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::handler
-// METHOD TYPE : void
-//
-// DESCRIPTION : handler, called by NCBusyIndicatorHandlerWrapper
-//
+
+
+// handler, called by NCBusyIndicatorHandlerWrapper
void NCBusyIndicator::handler(int sig_num)
{
_timer_progress+=_timer_divisor;
@@ -262,14 +209,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicatorHandlerWrapper
-// METHOD TYPE : void
-//
-// DESCRIPTION : static wrapper for member function handler
-//
+
+
+// static wrapper for member function handler
#if 0
void NCBusyIndicatorHandlerWrapper(int sig_num)
{
@@ -279,14 +221,9 @@
}
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::update
-// METHOD TYPE : void
-//
-// DESCRIPTION : calculate position of moving bar
-//
+
+
+// calculate position of moving bar
void NCBusyIndicator::update()
{
if (!_alive)
@@ -306,14 +243,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::setAlive
-// METHOD TYPE : void
-//
-// DESCRIPTION : set alive or stalled
-//
+
+
+// set alive or stalled
void NCBusyIndicator::setAlive( bool newAlive)
{
_alive = newAlive;
@@ -323,14 +255,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::setTimeout
-// METHOD TYPE : void
-//
-// DESCRIPTION : set timeout
-//
+
+
+// set timeout
void NCBusyIndicator::setTimeout( int newTimeout)
{
if (newTimeout < 1)
@@ -342,14 +269,9 @@
_timer_divisor = (double) REPAINT_INTERVAL / (double) _timeout;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION : draw busy indicator widget
-//
+
+
+// draw busy indicator widget
void NCBusyIndicator::wRedraw()
{
if ( !win )
@@ -363,14 +285,9 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCBusyIndicator::tUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION : draw busy bar
-//
+
+
+// draw busy bar
void NCBusyIndicator::tUpdate()
{
if ( !win )
Modified: trunk/ncurses/src/NCBusyIndicator.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCBusyIndicator.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCBusyIndicator.h (original)
+++ trunk/ncurses/src/NCBusyIndicator.h Mon Apr 7 18:37:44 2008
@@ -30,12 +30,7 @@
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCBusyIndicator
-//
-// DESCRIPTION :
-//
+
class NCBusyIndicator : public YBusyIndicator, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCBusyIndicator & OBJ );
@@ -105,6 +100,5 @@
static void staticHandler(int sig_num);
};
-///////////////////////////////////////////////////////////////////
#endif // NCBusyIndicator_h
Modified: trunk/ncurses/src/NCCheckBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCCheckBox.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCCheckBox.cc (original)
+++ trunk/ncurses/src/NCCheckBox.cc Mon Apr 7 18:37:44 2008
@@ -23,18 +23,11 @@
#include "NCCheckBox.h"
-///////////////////////////////////////////////////////////////////
unsigned char NCCheckBox::statetag[3] = { '?', ' ', 'x' };
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::NCCheckBox
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCCheckBox::NCCheckBox( YWidget * parent,
const string & nlabel,
bool checked )
@@ -48,14 +41,8 @@
hotlabel = &label;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::~NCCheckBox
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCCheckBox::~NCCheckBox()
{
yuiDebug() << endl;
@@ -77,27 +64,16 @@
YCheckBox::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION : set label
-//
+
+
+// set label
void NCCheckBox::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -107,14 +83,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBox::setValue( YCheckBoxState state )
{
switch ( state )
@@ -137,14 +107,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::value
-// METHOD TYPE : YCheckBoxState
-//
-// DESCRIPTION :
-//
+
+
YCheckBoxState NCCheckBox::value()
{
if ( checkstate == S_DC )
@@ -156,14 +120,8 @@
return YCheckBox_off;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBox::wRedraw()
{
if ( !win )
@@ -177,14 +135,8 @@
win->printw( 0, 1, "%c", statetag[checkstate] );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBox::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCCheckBox::wHandleInput( wint_t key )
{
NCursesEvent ret;
Modified: trunk/ncurses/src/NCCheckBox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCCheckBox.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCCheckBox.h (original)
+++ trunk/ncurses/src/NCCheckBox.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCCheckBox;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCCheckBox
-//
-// DESCRIPTION :
-//
+
class NCCheckBox : public YCheckBox, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCCheckBox & OBJ );
@@ -95,6 +90,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCCheckBox_h
Modified: trunk/ncurses/src/NCCheckBoxFrame.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCCheckBoxFrame.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCCheckBoxFrame.cc (original)
+++ trunk/ncurses/src/NCCheckBoxFrame.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCCheckBoxFrame.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::NCCheckBoxFrame
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCCheckBoxFrame::NCCheckBoxFrame( YWidget * parent, const string & nlabel,
bool checked )
: YCheckBoxFrame( parent, nlabel, checked )
@@ -52,27 +46,15 @@
// setEnabled(); is called in wRedraw()
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::~NCCheckBoxFrame
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCCheckBoxFrame::~NCCheckBoxFrame()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCCheckBoxFrame::nicesize( YUIDimension dim )
{
//space to add - keep vertical dim, add horizontal space
@@ -105,14 +87,8 @@
return defsze.H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBoxFrame::setSize( int newwidth, int newheight )
{
wsze csze( newheight, newwidth );
@@ -121,14 +97,8 @@
firstChild()->setSize( csze.W, csze.H );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBoxFrame::setLabel( const string & nlabel )
{
YCheckBoxFrame::setLabel( nlabel );
@@ -139,14 +109,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBoxFrame::setEnabled( bool do_bv )
{
YWidget::setEnabled( do_bv );
@@ -163,14 +127,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::gotBuddy
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCCheckBoxFrame::gotBuddy()
{
if ( !label.hasHotkey() )
@@ -185,14 +143,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCCheckBoxFrame::wRedraw()
{
if ( !win )
@@ -230,14 +182,8 @@
setEnabled( getValue() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCCheckBoxFrame::wHandleInput( wint_t key )
{
NCursesEvent ret = NCursesEvent::handled;
@@ -266,14 +212,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCCheckBoxFrame::setKeyboardFocus
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCCheckBoxFrame::setKeyboardFocus()
{
if ( !grabFocus() )
Modified: trunk/ncurses/src/NCCheckBoxFrame.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCCheckBoxFrame.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCCheckBoxFrame.h (original)
+++ trunk/ncurses/src/NCCheckBoxFrame.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCCheckBoxFrame;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCCheckBoxFrame
-//
-// DESCRIPTION :
-//
+
class NCCheckBoxFrame : public YCheckBoxFrame, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCCheckBoxFrame & OBJ );
@@ -88,6 +83,5 @@
virtual NCursesEvent wHandleInput( wint_t key );
};
-///////////////////////////////////////////////////////////////////
#endif // NCCheckBoxFrame_h
Modified: trunk/ncurses/src/NCComboBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCComboBox.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCComboBox.cc (original)
+++ trunk/ncurses/src/NCComboBox.cc Mon Apr 7 18:37:44 2008
@@ -25,14 +25,8 @@
#include "NCComboBox.h"
#include "NCPopupList.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::NCComboBox
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCComboBox::NCComboBox( YWidget * parent, const string & nlabel,
bool editable )
: YComboBox( parent, nlabel, editable )
@@ -54,14 +48,8 @@
setText( "" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::~NCComboBox
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCComboBox::~NCComboBox()
{
delete lwin;
@@ -69,67 +57,37 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCComboBox::preferredWidth()
{
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCComboBox::preferredHeight()
{
return wGetDefsze().H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YComboBox::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setDefsze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setDefsze()
{
// Height: label h. + 1 (text area)
@@ -140,14 +98,8 @@
(label.width() > longest_line) ? label.width() : longest_line + 2 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -175,14 +127,8 @@
fldlength = trect.Sze.W ? trect.Sze.W - 1 : 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::wDelete()
{
delete lwin;
@@ -192,14 +138,8 @@
NCWidget::wDelete();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::addItem( YItem * item )
{
if ( item )
@@ -225,14 +165,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::addItem( const string & label, bool selected )
{
YItem * newItem = new YItem( label, selected );
@@ -242,14 +176,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -259,14 +187,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setCurrentItem( int nindex )
{
int idx = 0;
@@ -286,28 +208,16 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCComboBox::getCurrentItem() const
{
return index;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setText
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setText( const string & ntext )
{
privText = NCstring( ntext );
@@ -324,14 +234,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::text
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
string NCComboBox::text()
{
if ( modified )
@@ -349,28 +253,16 @@
return privText.Str();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::setValidChars
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::setValidChars( const string & validchars )
{
validChars = NCstring( validchars );
YComboBox::setValidChars( validchars );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::validKey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCComboBox::validKey( wint_t key ) const
{
// private: NCstring validChars;
@@ -385,14 +277,8 @@
return( vwch.find( (wchar_t)key ) != wstring::npos );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::wRecoded()
{
if ( modified ) {
@@ -403,14 +289,8 @@
wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::wRedraw()
{
if ( !win )
@@ -424,14 +304,8 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::tUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCComboBox::tUpdate()
{
if ( !win )
@@ -518,14 +392,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCComboBox::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -648,14 +516,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::listPopup
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCComboBox::listPopup()
{
int idx = -1;
@@ -672,15 +534,10 @@
return idx;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCComboBox::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : cleares the table and the lists holding
+
+
+// cleares the table and the lists holding
// the values
-//
void NCComboBox::deleteAllItems() {
YComboBox::deleteAllItems();
deflist.clear();
Modified: trunk/ncurses/src/NCComboBox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCComboBox.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCComboBox.h (original)
+++ trunk/ncurses/src/NCComboBox.h Mon Apr 7 18:37:44 2008
@@ -31,12 +31,7 @@
class NCComboBox;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCComboBox
-//
-// DESCRIPTION :
-//
+
class NCComboBox : public YComboBox, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCComboBox & OBJ );
@@ -136,6 +131,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCComboBox_h
Modified: trunk/ncurses/src/NCDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCDialog.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCDialog.cc (original)
+++ trunk/ncurses/src/NCDialog.cc Mon Apr 7 18:37:44 2008
@@ -52,14 +52,8 @@
return getenv( "Y2yuiDebug()" ) != NULL;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::NCDialog
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCDialog::NCDialog( YDialogType dialogType,
YDialogColorMode colorMode )
: YDialog ( dialogType, colorMode )
@@ -75,14 +69,8 @@
_init();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::NCDialog
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCDialog::NCDialog( YDialogType dialogType, const wpos at, const bool boxed )
: YDialog ( dialogType, YDialogNormalColor )
, pan ( 0 )
@@ -97,14 +85,9 @@
_init();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::_init
-// METHOD TYPE : void
-//
-// DESCRIPTION : Constructor helper
-//
+
+
+// Constructor helper
void NCDialog::_init()
{
NCurses::RememberDlg( this );
@@ -129,12 +112,8 @@
yuiDebug() << "+++ " << this << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::_init_size
-// METHOD TYPE : void
-//
+
+
void NCDialog::_init_size()
{
defsze.H = NCurses::lines();
@@ -163,14 +142,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::~NCDialog
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCDialog::~NCDialog()
{
NCurses::ForgetDlg( this );
@@ -217,14 +190,8 @@
return csze.H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
@@ -233,14 +200,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::initDialog
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::initDialog()
{
yuiMilestone() << "initDialog()" << endl;
@@ -257,14 +218,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::showDialog
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::showDialog()
{
yuiDebug() << "sd+ " << this << endl;
@@ -288,14 +243,8 @@
yuiDebug() << "sd- " << this << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::closeDialog
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::closeDialog()
{
yuiDebug() << "cd+ " << this << endl;
@@ -308,14 +257,8 @@
yuiDebug() << "cd+ " << this << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::activate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::activate( const bool newactive )
{
if ( active != newactive || ( pan && pan->hidden()) ) {
@@ -348,27 +291,15 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wMoveTo
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wMoveTo( const wpos & newpos )
{
yuiDebug() << DLOC << this << newpos << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wCreate( const wrect & newrect )
{
if ( win )
@@ -459,14 +390,8 @@
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wRedraw()
{
if ( pan ) {
@@ -509,14 +434,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wRecoded()
{
if ( pan ) {
@@ -529,27 +448,15 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::startMultipleChanges
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::startMultipleChanges()
{
++inMultiDraw_i;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::doneMultipleChanges
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::doneMultipleChanges()
{
if ( inMultiDraw_i > 1 ) {
@@ -561,14 +468,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wUpdate( bool forced_br )
{
if ( !pan )
@@ -579,14 +480,8 @@
NCWidget::wUpdate( forced_br );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::grabActive
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::grabActive( NCWidget * nactive )
{
if ( wActive && wActive != static_cast( this ) )
@@ -596,14 +491,8 @@
const_cast( wActive ) = nactive;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::grabNotify
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::grabNotify( NCWidget * mgrab )
{
if ( wActive && wActive == mgrab ) {
@@ -614,27 +503,15 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wantFocus
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCDialog::wantFocus( NCWidget & ngrab )
{
return Activate( ngrab );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::wDelete()
{
if ( pan ) {
@@ -644,14 +521,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::GetNormal
-// METHOD TYPE : NCWidget *
-//
-// DESCRIPTION :
-//
+
+
NCWidget & NCDialog::GetNormal( NCWidget & startwith, SeekDir Direction )
{
NCWidget * c = (startwith.*Direction)( true )->Value();
@@ -669,40 +540,22 @@
return *c;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::GetNextNormal
-// METHOD TYPE : NCWidget &
-//
-// DESCRIPTION :
-//
+
+
NCWidget & NCDialog::GetNextNormal( NCWidget & startwith )
{
return GetNormal( startwith, &tnode::Next );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::GetPrevNormal
-// METHOD TYPE : NCWidget *
-//
-// DESCRIPTION :
-//
+
+
NCWidget & NCDialog::GetPrevNormal( NCWidget & startwith )
{
return GetNormal( startwith, &tnode::Prev );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::Activate
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCDialog::Activate( NCWidget & nactive )
{
if ( nactive.GetState() == NC::WSactive )
@@ -721,14 +574,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::Activate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::Activate( SeekDir Direction )
{
if ( !wActive )
@@ -743,27 +590,15 @@
Activate( GetNormal( *wActive, Direction ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::Activate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::Activate()
{
Activate( 0 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::Deactivate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::Deactivate()
{
if ( wActive->GetState() == NC::WSactive ) {
@@ -771,40 +606,22 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::ActivateNext
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::ActivateNext()
{
Activate( &tnode::Next );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::ActivatePrev
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::ActivatePrev()
{
Activate( &tnode::Prev );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::ActivateByKey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCDialog::ActivateByKey( int key )
{
NCWidget * buddy = 0;
@@ -844,14 +661,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getinput
-// METHOD TYPE : wint_t
-//
-// DESCRIPTION :
-//
+
+
wint_t NCDialog::getinput()
{
wint_t got = WEOF;
@@ -915,14 +726,8 @@
return got;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getch
-// METHOD TYPE : wint_t
-//
-// DESCRIPTION :
-//
+
+
wint_t NCDialog::getch( int timeout_millisec )
{
wint_t got = WEOF;
@@ -986,14 +791,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::idleInput
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCDialog::idleInput()
{
if ( !pan ) {
@@ -1014,14 +813,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::pollInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::pollInput()
{
yuiDebug() << "poll+ " << this << endl;
@@ -1051,14 +844,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::userInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::userInput( int timeout_millisec )
{
yuiDebug() << "user+ " << this << endl;
@@ -1112,16 +899,11 @@
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::processInput
-// METHOD TYPE : void
-//
-// DESCRIPTION : timeout -1 -> wait for input
+
+
+// timeout -1 -> wait for input
// timeout 0 -> immediate return
// else max wait timeout milliseconds
-//
void NCDialog::processInput( int timeout_millisec )
{
yuiDebug() << "process+ " << this << " active " << wActive
@@ -1341,14 +1123,8 @@
yuiDebug() << "process- " << this << " active " << wActive << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getInputEvent
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::getInputEvent( wint_t ch )
{
NCursesEvent ret = NCursesEvent::none;
@@ -1362,27 +1138,15 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::wHandleInput( wint_t ch )
{
return wActive->wHandleInput( ch );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getHotkeyEvent
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::getHotkeyEvent( wint_t key )
{
// NCWidget *const oActive = wActive;
@@ -1403,14 +1167,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::wHandleHotkey
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDialog::wHandleHotkey( wint_t key )
{
if ( key >= 0 && ActivateByKey( key ) )
@@ -1435,16 +1193,11 @@
return STREAM << "(NoNCDialog)";
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::describeFunctionKeys
-// METHOD TYPE : std::map
-//
-// DESCRIPTION : Get all PushButtons and MenuButtons with `opt(`key_Fn)
+
+
+// Get all PushButtons and MenuButtons with `opt(`key_Fn)
// and create a map, for example: $[ 1: Help, 2: Info,... ]
// NCurses::SetStatusLine will process it
-//
std::map NCDialog::describeFunctionKeys( )
{
std::map fkeys;
@@ -1484,12 +1237,8 @@
return STREAM << '}';
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getInvisible
-// METHOD TYPE : bool
-//
+
+
bool NCDialog::getInvisible()
{
if ( !pan || pan->hidden() )
@@ -1501,12 +1250,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::getVisible
-// METHOD TYPE : bool
-//
+
+
bool NCDialog::getVisible()
{
if ( !pan || !pan->hidden() )
@@ -1524,12 +1269,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDialog::resizeEvent
-// METHOD TYPE : void
-//
+
+
void NCDialog::resizeEvent()
{
_init_size();
Modified: trunk/ncurses/src/NCDialog.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCDialog.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCDialog.h (original)
+++ trunk/ncurses/src/NCDialog.h Mon Apr 7 18:37:44 2008
@@ -29,12 +29,7 @@
class NCDialog;
class NCPopupInfo;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCDialog
-//
-// DESCRIPTION :
-//
+
class NCDialog : public YDialog, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCDialog & OBJ );
@@ -222,6 +217,5 @@
void resizeEvent();
};
-///////////////////////////////////////////////////////////////////
#endif // NCDialog_h
Modified: trunk/ncurses/src/NCEmpty.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCEmpty.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCEmpty.cc (original)
+++ trunk/ncurses/src/NCEmpty.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCEmpty.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCEmpty::NCEmpty
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCEmpty::NCEmpty( YWidget * parent )
: YEmpty( parent )
, NCWidget( parent )
@@ -38,27 +32,15 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCEmpty::~NCEmpty
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCEmpty::~NCEmpty()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCEmpty::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCEmpty::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
Modified: trunk/ncurses/src/NCEmpty.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCEmpty.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCEmpty.h (original)
+++ trunk/ncurses/src/NCEmpty.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCEmpty;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCEmpty
-//
-// DESCRIPTION :
-//
+
class NCEmpty : public YEmpty, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCEmpty & OBJ );
@@ -64,6 +59,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCEmpty_h
Modified: trunk/ncurses/src/NCFileSelection.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCFileSelection.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCFileSelection.cc (original)
+++ trunk/ncurses/src/NCFileSelection.cc Mon Apr 7 18:37:44 2008
@@ -32,14 +32,8 @@
Textdomain "ncurses"
*/
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileInfo::NCFileInfo
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFileInfo::NCFileInfo( string fileName,
struct stat64 * statInfo,
bool link )
@@ -118,14 +112,8 @@
_perm += "-";
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileInfo::NCFileInfo
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFileInfo::NCFileInfo( )
{
_name = "";
@@ -141,14 +129,8 @@
_mtime = (time_t)0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelectionTag::NCFileSelectionTag
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFileSelectionTag::NCFileSelectionTag( const NCFileInfo & info )
: NCTableCol( NCstring( " " ), SEPARATOR )
, fileInfo( info )
@@ -156,14 +138,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelectionTag::DrawAt
-// METHOD TYPE : virtual DrawAt
-//
-// DESCRIPTION :
-//
+
+
void NCFileSelectionTag::DrawAt( NCursesWindow & w, const wrect at,
NCTableStyle & tableStyle,
NCTableLine::STATE linestate,
@@ -175,14 +151,8 @@
w.addch( at.Pos.L, at.Pos.C +1, fileInfo._tag.c_str()[1] );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::NCFileSelection
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFileSelection::NCFileSelection( YWidget * parent,
YTableHeader * tableHeader,
NCFileSelectionType type,
@@ -223,14 +193,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::~NCFileSelection
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCFileSelection::~NCFileSelection()
{
yuiDebug() << endl;
@@ -238,12 +202,8 @@
-//////////////////////////////////////////////////////////////////
-//
// getCurrentLine()
-//
// returns the currently selected line
-//
string NCFileSelection::getCurrentLine( )
{
int index = getCurrentItem();
@@ -259,14 +219,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::setCurrentDir
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFileSelection::setCurrentDir()
{
string selected = getCurrentLine();
@@ -296,14 +250,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::addLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFileSelection::addLine( const vector<string> & elements,
const NCFileInfo & info )
{
@@ -319,24 +267,14 @@
myPad()->Append( Items );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFileSelection::deleteAllItems()
{
return NCTable::deleteAllItems();
}
-///////////////////////////////////////////////////////////////////
-//
// createListEntry
-//
-//
bool NCFileTable::createListEntry ( const NCFileInfo & fileInfo )
{
vector<string> data;
@@ -372,11 +310,7 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
// createListEntry
-//
-//
bool NCDirectoryTable::createListEntry ( const NCFileInfo & fileInfo )
{
vector<string> data;
@@ -409,14 +343,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::getFileInfo
-// METHOD TYPE : NCFileInfo
-//
-// DESCRIPTION :
-//
+
+
NCFileInfo NCFileSelection::getFileInfo( int index )
{
// get the tag
@@ -427,14 +355,8 @@
return cc->getFileInfo();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelectionTag::getTag
-// METHOD TYPE : NCFileSelectionTag
-//
-// DESCRIPTION :
-//
+
+
NCFileSelectionTag * NCFileSelection::getTag( const int & index )
{
// get the table line
@@ -449,16 +371,9 @@
}
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileTable::NCFileTable
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFileTable::NCFileTable( YWidget * parent,
YTableHeader * tableHeader,
NCFileSelectionType type,
@@ -486,12 +401,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
// fillHeader
-//
// Fillup the column headers of the file table
-//
void NCFileTable::fillHeader( )
{
vector<string> header;
@@ -530,14 +441,8 @@
setHeader( header );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileTable::filterMatch
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCFileTable::filterMatch( const string & fileEntry )
{
if ( pattern.empty() )
@@ -554,14 +459,8 @@
return match;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileSelection::handleKeyEvents
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCFileSelection::handleKeyEvents( wint_t key )
{
NCursesEvent ret = NCursesEvent::none;
@@ -583,14 +482,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileTable::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCFileTable::wHandleInput( wint_t key )
{
NCursesEvent ret = handleKeyEvents( key );
@@ -624,14 +517,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFileTable:fillList
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCFileTable::fillList ( )
{
struct stat64 statInfo;
@@ -709,16 +596,9 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDirectoryTable::NCDirectoryTable
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCDirectoryTable::NCDirectoryTable( YWidget * parent,
YTableHeader * tableHeader,
NCFileSelectionType type,
@@ -728,12 +608,8 @@
//fillHeader();
}
-///////////////////////////////////////////////////////////////////
-//
// fillHeader
-//
// Fillup the column headers of the table
-//
void NCDirectoryTable::fillHeader( )
{
vector<string> header;
@@ -767,14 +643,8 @@
setHeader( header );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDirectoryTable:fillList
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCDirectoryTable::fillList ( )
{
struct stat64 statInfo;
@@ -845,14 +715,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCDirectory::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCDirectoryTable::wHandleInput( wint_t key )
{
NCursesEvent ret = handleKeyEvents( key );
Modified: trunk/ncurses/src/NCFileSelection.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCFileSelection.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCFileSelection.h (original)
+++ trunk/ncurses/src/NCFileSelection.h Mon Apr 7 18:37:44 2008
@@ -282,6 +282,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCFileSelection_h
Modified: trunk/ncurses/src/NCFrame.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCFrame.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCFrame.cc (original)
+++ trunk/ncurses/src/NCFrame.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCFrame.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::NCFrame
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCFrame::NCFrame( YWidget * parent, const string & nlabel )
: YFrame( parent, nlabel )
, NCWidget( parent )
@@ -43,27 +37,15 @@
hotlabel = &label;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::~NCFrame
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCFrame::~NCFrame()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCFrame::nicesize( YUIDimension dim )
{
defsze = wsze( firstChild()->preferredWidth(),
@@ -94,14 +76,8 @@
return defsze.H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFrame::setSize( int newwidth, int newheight )
{
wsze csze( newheight, newwidth );
@@ -110,14 +86,8 @@
firstChild()->setSize( csze.W, csze.H );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFrame::setLabel( const string & nlabel )
{
YFrame::setLabel( nlabel );
@@ -134,14 +104,8 @@
YFrame::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::setEnabling
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
//void NCFrame::setEnabling( bool do_bv )
//{
// enabled = do_bv; // in YWidget
@@ -153,14 +117,8 @@
// }
//}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::gotBuddy
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCFrame::gotBuddy()
{
if ( !label.hasHotkey() )
@@ -175,14 +133,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCFrame::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCFrame::wRedraw()
{
if ( !win )
Modified: trunk/ncurses/src/NCFrame.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCFrame.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCFrame.h (original)
+++ trunk/ncurses/src/NCFrame.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCFrame;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCFrame
-//
-// DESCRIPTION :
-//
+
class NCFrame : public YFrame, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCFrame & OBJ );
@@ -74,6 +69,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCFrame_h
Modified: trunk/ncurses/src/NCImage.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCImage.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCImage.cc (original)
+++ trunk/ncurses/src/NCImage.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCImage.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCImage::NCImage
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCImage::NCImage( YWidget * parent, string defaulttext, bool animated )
: YImage( parent, defaulttext, animated )
, NCWidget( parent )
@@ -41,27 +35,15 @@
skipNoDimWin = true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCImage::~NCImage
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCImage::~NCImage()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCImage::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCImage::nicesize( YUIDimension dim )
{
return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H;
@@ -83,14 +65,8 @@
YImage::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCImage::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCImage::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
Modified: trunk/ncurses/src/NCImage.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCImage.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCImage.h (original)
+++ trunk/ncurses/src/NCImage.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCImage;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCImage
-//
-// DESCRIPTION :
-//
+
class NCImage : public YImage, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCImage & OBJ );
@@ -67,6 +62,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCImage_h
Modified: trunk/ncurses/src/NCInputField.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCInputField.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCInputField.cc (original)
+++ trunk/ncurses/src/NCInputField.cc Mon Apr 7 18:37:44 2008
@@ -31,14 +31,8 @@
#define DBG_CLASS "_NCInputField_"
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::NCInputField
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCInputField::NCInputField( YWidget * parent,
const string & nlabel,
bool passwordMode,
@@ -69,14 +63,8 @@
//setText( ntext );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::~NCInputField
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCInputField::~NCInputField()
{
delete lwin;
@@ -84,67 +72,37 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCInputField::preferredWidth()
{
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCInputField::preferredHeight()
{
return wGetDefsze().H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YInputField::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setDefsze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setDefsze()
{
unsigned defwidth = maxFldLength ? maxFldLength : 5;
@@ -153,14 +111,8 @@
defsze = wsze( label.height() + 1, defwidth );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -189,14 +141,8 @@
fldlength=trect.Sze.W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::wDelete()
{
delete lwin;
@@ -206,14 +152,8 @@
NCWidget::wDelete();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -223,14 +163,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setValue( const std::string & ntext )
{
buffer = NCstring( ntext ).str();
@@ -242,14 +176,8 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::value
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
string NCInputField::value( )
{
NCstring text ( buffer );
@@ -257,28 +185,16 @@
return text.Str();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::setValidChars
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::setValidChars( const string & validchars )
{
validChars = NCstring( validchars );
YInputField::setValidChars( validchars );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::validKey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCInputField::validKey( wint_t key ) const
{
// private: NCstring validChars;
@@ -293,14 +209,8 @@
return( vwch.find( (wchar_t)key ) != wstring::npos );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::wRedraw()
{
if ( !win )
@@ -314,40 +224,22 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::bufferFull
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
inline bool NCInputField::bufferFull() const
{
return( maxInputLength && buffer.length() == maxInputLength );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::maxCursor
-// METHOD TYPE : unsigned
-//
-// DESCRIPTION :
-//
+
+
inline unsigned NCInputField::maxCursor() const
{
return( bufferFull() ? buffer.length() - 1 : buffer.length() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::tUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCInputField::tUpdate()
{
if ( !win )
@@ -432,14 +324,8 @@
Update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCInputField::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCInputField::wHandleInput( wint_t key )
{
NCursesEvent ret = NCursesEvent::none;
Modified: trunk/ncurses/src/NCInputField.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCInputField.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCInputField.h (original)
+++ trunk/ncurses/src/NCInputField.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCInputField;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCInputField
-//
-// DESCRIPTION :
-//
+
class NCInputField : public YInputField, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCInputField & OBJ );
@@ -134,6 +129,5 @@
void setCurPos( unsigned pos ) { curpos = pos; }
};
-///////////////////////////////////////////////////////////////////
#endif // NCInputField_h
Modified: trunk/ncurses/src/NCIntField.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCIntField.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCIntField.cc (original)
+++ trunk/ncurses/src/NCIntField.cc Mon Apr 7 18:37:44 2008
@@ -28,20 +28,12 @@
using stdutil::numstring;
-///////////////////////////////////////////////////////////////////
const unsigned NCIntField::taglen = 2; // "^v"
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::NCIntField
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCIntField::NCIntField( YWidget * parent,
const string & nlabel,
int minV, int maxV,
@@ -66,14 +58,8 @@
setValue( initialV );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::~NCIntField
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCIntField::~NCIntField()
{
delete lwin;
@@ -81,67 +67,37 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCIntField::preferredWidth()
{
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCIntField::preferredHeight()
{
return wGetDefsze().H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YIntField::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::setDefsze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::setDefsze()
{
unsigned cols = vlen + taglen;
@@ -149,14 +105,8 @@
label.width() < cols ? cols : label.width() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -184,14 +134,8 @@
vstart = ( vlen + 2 < (unsigned)trect.Sze.W ) ? label.width() - vlen - 2 : 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::wDelete()
{
delete lwin;
@@ -202,14 +146,8 @@
vstart = 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -219,14 +157,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::setValueInternal( int newValue )
{
// checking newValue is done by YIntField
@@ -235,14 +167,8 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::Increment
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCIntField::Increment( const bool bigstep )
{
unsigned dist = maxValue() - cvalue;
@@ -258,14 +184,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::Decrement
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCIntField::Decrement( const bool bigstep )
{
unsigned dist = cvalue - minValue();
@@ -282,14 +202,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::wRedraw()
{
if ( !win )
@@ -303,14 +217,8 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::tUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCIntField::tUpdate()
{
if ( !win )
@@ -327,14 +235,8 @@
(cvalue != maxValue() ? ACS_UARROW : ' ' ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCIntField::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -407,14 +309,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCIntField::enterPopup
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCIntField::enterPopup( wchar_t first )
{
wstring wch( &first );
Modified: trunk/ncurses/src/NCIntField.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCIntField.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCIntField.h (original)
+++ trunk/ncurses/src/NCIntField.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCIntField;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCIntField
-//
-// DESCRIPTION :
-//
+
class NCIntField : public YIntField, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCIntField & OBJ );
@@ -102,6 +97,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCIntField_h
Modified: trunk/ncurses/src/NCLabel.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLabel.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLabel.cc (original)
+++ trunk/ncurses/src/NCLabel.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCLabel.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::NCLabel
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCLabel::NCLabel( YWidget * parent, const string & nlabel,
bool isHeading, bool isOutputField )
: YLabel( parent, nlabel, isHeading, isOutputField )
@@ -42,27 +36,15 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::~NCLabel
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCLabel::~NCLabel()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCLabel::nicesize( YUIDimension dim )
{
return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H;
@@ -84,27 +66,15 @@
YLabel::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLabel::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::setText
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLabel::setText( const string & nlabel )
{
label = NCstring( nlabel );
@@ -114,14 +84,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLabel::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLabel::wRedraw()
{
if ( !win )
Modified: trunk/ncurses/src/NCLabel.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLabel.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLabel.h (original)
+++ trunk/ncurses/src/NCLabel.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCLabel;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCLabel
-//
-// DESCRIPTION :
-//
+
class NCLabel : public YLabel, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCLabel & OBJ );
@@ -76,6 +71,5 @@
virtual int preferredHeight();
};
-///////////////////////////////////////////////////////////////////
#endif // NCLabel_h
Modified: trunk/ncurses/src/NCLayoutBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLayoutBox.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLayoutBox.cc (original)
+++ trunk/ncurses/src/NCLayoutBox.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCLayoutBox.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLayoutBox::NCLayoutBox
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCLayoutBox::NCLayoutBox( YWidget * parent,
YUIDimension dimension )
: YLayoutBox( parent, dimension )
@@ -39,27 +33,15 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLayoutBox::~NCLayoutBox
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCLayoutBox::~NCLayoutBox()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLayoutBox::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLayoutBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
@@ -72,14 +54,8 @@
YLayoutBox::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLayoutBox::moveChild
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLayoutBox::moveChild( YWidget * child, int newx, int newy )
{
NCWidget * cw = dynamic_cast(child);
Modified: trunk/ncurses/src/NCLayoutBox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLayoutBox.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLayoutBox.h (original)
+++ trunk/ncurses/src/NCLayoutBox.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCLayoutBox;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCLayoutBox
-//
-// DESCRIPTION :
-//
+
class NCLayoutBox : public YLayoutBox, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCLayoutBox & OBJ );
@@ -70,6 +65,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCLayoutBox_h
Modified: trunk/ncurses/src/NCLogView.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLogView.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLogView.cc (original)
+++ trunk/ncurses/src/NCLogView.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCLogView.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::NCLogView
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCLogView::NCLogView( YWidget * parent,
const string & nlabel,
int visibleLines,
@@ -41,14 +35,8 @@
setLabel( nlabel );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::~NCLogView
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCLogView::~NCLogView()
{
yuiDebug() << endl;
@@ -71,41 +59,23 @@
YLogView::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::setLabel( const string & nlabel )
{
YLogView::setLabel( nlabel );
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::displayLogText
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::displayLogText( const string & ntext )
{
DelPad();
@@ -113,14 +83,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::wRedraw()
{
if ( !win )
@@ -135,42 +99,24 @@
myPad()->ScrlTo( wpos( text.Lines(), 0 ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::wRecoded()
{
DelPad();
wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCLogView::wHandleInput( wint_t key )
{
handleInput( key );
return NCursesEvent::none;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION :
-//
+
+
NCPad * NCLogView::CreatePad()
{
wsze psze( defPadSze() );
@@ -179,14 +125,8 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCLogView::DrawPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCLogView::DrawPad()
{
// maximal value for lines is 32000!
Modified: trunk/ncurses/src/NCLogView.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCLogView.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCLogView.h (original)
+++ trunk/ncurses/src/NCLogView.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCLogView;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCLogView
-//
-// DESCRIPTION :
-//
+
class NCLogView : public YLogView, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCLogView & OBJ );
@@ -86,6 +81,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCLogView_h
Modified: trunk/ncurses/src/NCMenuButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMenuButton.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMenuButton.cc (original)
+++ trunk/ncurses/src/NCMenuButton.cc Mon Apr 7 18:37:44 2008
@@ -23,14 +23,8 @@
#include "NCMenuButton.h"
#include "NCPopupMenu.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::NCMenuButton
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCMenuButton::NCMenuButton( YWidget * parent,
string nlabel )
: YMenuButton( parent, nlabel )
@@ -41,14 +35,8 @@
hotlabel = &label;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::~NCMenuButton
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCMenuButton::~NCMenuButton()
{
yuiDebug() << endl;
@@ -70,27 +58,15 @@
YMenuButton::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMenuButton::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCMenuButton::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -105,14 +81,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMenuButton::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -122,14 +92,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMenuButton::wRedraw()
{
if ( !win )
@@ -161,27 +125,15 @@
}
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::rebuildMenuTree
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMenuButton::rebuildMenuTree()
{
// NOP
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMenuButton::postMenu
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCMenuButton::postMenu()
{
wpos at( ScreenPos() + wpos( win->height(), 0 ) );
Modified: trunk/ncurses/src/NCMenuButton.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMenuButton.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMenuButton.h (original)
+++ trunk/ncurses/src/NCMenuButton.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCMenuButton;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCMenuButton
-//
-// DESCRIPTION :
-//
+
class NCMenuButton : public YMenuButton, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCMenuButton & OBJ );
@@ -86,6 +81,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCMenuButton_h
Modified: trunk/ncurses/src/NCMultiLineEdit.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMultiLineEdit.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMultiLineEdit.cc (original)
+++ trunk/ncurses/src/NCMultiLineEdit.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCMultiLineEdit.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::NCMultiLineEdit
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCMultiLineEdit::NCMultiLineEdit( YWidget * parent, const string & nlabel )
: YMultiLineEdit( parent, nlabel )
, NCPadWidget( parent )
@@ -40,96 +34,54 @@
//setText( initialText );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::~NCMultiLineEdit
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCMultiLineEdit::~NCMultiLineEdit()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCMultiLineEdit::preferredWidth()
{
defsze.W = ( 5 > labelWidth() ? 5 : labelWidth() ) + 2;
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCMultiLineEdit::preferredHeight()
{
return wGetDefsze().H;
//return YMultiLineEdit::defaultVisibleLines();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YMultiLineEdit::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::setLabel( const string & nlabel )
{
YMultiLineEdit::setLabel( nlabel );
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::setValue( const string & ntext )
{
DelPad();
@@ -137,14 +89,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::value
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
string NCMultiLineEdit::value()
{
if ( myPad() ) {
@@ -154,14 +100,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::wRedraw()
{
if ( !win )
@@ -170,14 +110,8 @@
NCPadWidget::wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCMultiLineEdit::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -187,14 +121,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION :
-//
+
+
NCPad * NCMultiLineEdit::CreatePad()
{
wsze psze( defPadSze() );
@@ -204,14 +132,8 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiLineEdit::DrawPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiLineEdit::DrawPad()
{
myPad()->setText( ctext );
Modified: trunk/ncurses/src/NCMultiLineEdit.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMultiLineEdit.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMultiLineEdit.h (original)
+++ trunk/ncurses/src/NCMultiLineEdit.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCMultiLineEdit;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCMultiLineEdit
-//
-// DESCRIPTION :
-//
+
class NCMultiLineEdit : public YMultiLineEdit, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCMultiLineEdit & OBJ );
@@ -96,6 +91,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCMultiLineEdit_h
Modified: trunk/ncurses/src/NCMultiSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMultiSelectionBox.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMultiSelectionBox.cc (original)
+++ trunk/ncurses/src/NCMultiSelectionBox.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCMultiSelectionBox.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::NCMultiSelectionBox
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCMultiSelectionBox::NCMultiSelectionBox( YWidget * parent,
const string & nlabel )
: YMultiSelectionBox( parent, nlabel )
@@ -40,80 +34,49 @@
setLabel( nlabel );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::~NCMultiSelectionBox
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCMultiSelectionBox::~NCMultiSelectionBox()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::preferredWidth
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set preferred width
-//
+
+
+// Set preferred width
int NCMultiSelectionBox::preferredWidth()
{
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::preferredHeight
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set preferred height
-//
+
+
+// Set preferred height
int NCMultiSelectionBox::preferredHeight()
{
return wGetDefsze().H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set widget state (enabled/disabled)
-//
+
+
+// Set widget state (enabled/disabled)
void NCMultiSelectionBox::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YMultiSelectionBox::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION : nc
-//
+
+
+// nc
void NCMultiSelectionBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::currentItem
-// METHOD TYPE : YItem *
-//
-// DESCRIPTION : Return pointer to current MsB item
-//
+
+
+// Return pointer to current MsB item
YItem * NCMultiSelectionBox::currentItem()
{
if ( !myPad()->Lines() )
@@ -124,14 +87,9 @@
return itemAt( index );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::setCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Highlight current item
-//
+
+
+// Highlight current item
void NCMultiSelectionBox::setCurrentItem( YItem * item )
{
myPad()->ScrlLine( item->index() );
@@ -152,15 +110,10 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::tagCell
-// METHOD TYPE : NCTableTag *
-//
-// DESCRIPTION : Return pointer to current line tag
+
+
+// Return pointer to current line tag
// (holds state and yitem pointer)
-//
NCTableTag * NCMultiSelectionBox::tagCell( int index )
{
NCTableLine * cl = myPad()->ModifyLine( index );
@@ -169,14 +122,9 @@
return static_cast(cl->GetCol( 0 ));
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::tagCell
-// METHOD TYPE : const NCTableTag *
-//
-// DESCRIPTION : dtto
-//
+
+
+// dtto
const NCTableTag * NCMultiSelectionBox::tagCell( int index ) const
{
const NCTableLine * cl = myPad()->GetLine( index );
@@ -185,14 +133,9 @@
return static_cast(cl->GetCol( 0 ));
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : Clear the MsB
-//
+
+
+// Clear the MsB
void NCMultiSelectionBox::deleteAllItems()
{
YMultiSelectionBox::deleteAllItems();
@@ -200,28 +143,18 @@
DrawPad();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::isItemSelected
-// METHOD TYPE : bool
-//
-// DESCRIPTION : Return item status (selected/deselected)
-//
+
+
+// Return item status (selected/deselected)
bool NCMultiSelectionBox::isItemSelected( YItem *item )
{
return item->selected();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::selectItem
-// METHOD TYPE : bool
-//
-// DESCRIPTION : Mark item as selected
-//
+
+
+// Mark item as selected
void NCMultiSelectionBox::selectItem( YItem *yitem, bool selected )
{
YMultiSelectionBox::selectItem ( yitem, selected );
@@ -236,14 +169,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::selectItem
-// METHOD TYPE : bool
-//
-// DESCRIPTION : Mark all items as deselected
-//
+
+
+// Mark all items as deselected
void NCMultiSelectionBox::deselectAllItems()
{
YMultiSelectionBox::deselectAllItems();
@@ -256,15 +184,10 @@
DrawPad();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::toggleCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Toggle item from selected -> deselected
+
+
+// Toggle item from selected -> deselected
// and vice versa
-//
void NCMultiSelectionBox::toggleCurrentItem()
{
YItem *it = currentItem();
@@ -272,28 +195,18 @@
}
-////////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION : nc
-//
+
+
+// nc
void NCMultiSelectionBox::setLabel( const string & nlabel )
{
YMultiSelectionBox::setLabel( nlabel );
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION : Create empty MsB pad
-//
+
+
+// Create empty MsB pad
NCPad * NCMultiSelectionBox::CreatePad()
{
wsze psze( defPadSze() );
@@ -303,28 +216,17 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCMultiSelectionBox::wRecoded()
{
NCPadWidget::wRecoded();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION : Handle input :)
+
+
+// Handle input :)
// (those keys that are not caught by NCPad)
-//
NCursesEvent NCMultiSelectionBox::wHandleInput( wint_t key )
{
NCursesEvent ret;
Modified: trunk/ncurses/src/NCMultiSelectionBox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCMultiSelectionBox.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCMultiSelectionBox.h (original)
+++ trunk/ncurses/src/NCMultiSelectionBox.h Mon Apr 7 18:37:44 2008
@@ -29,12 +29,7 @@
class NCTableTag;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableTag
-//
-// DESCRIPTION :
-//
+
class NCTableTag : public NCTableCol {
private:
@@ -73,12 +68,7 @@
};
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCMultiSelectionBox
-//
-// DESCRIPTION :
-//
+
class NCMultiSelectionBox : public YMultiSelectionBox, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCMultiSelectionBox & OBJ );
@@ -158,6 +148,5 @@
void clearItems() { return myPad()->ClearTable(); }
};
-///////////////////////////////////////////////////////////////////
#endif // NCMultiSelectionBox_h
Modified: trunk/ncurses/src/NCPackageSelectorPluginStub.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPackageSelectorPluginStub.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPackageSelectorPluginStub.cc (original)
+++ trunk/ncurses/src/NCPackageSelectorPluginStub.cc Mon Apr 7 18:37:44 2008
@@ -55,45 +55,30 @@
// NOP
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPackageSelectorPluginStub::createPackageSelector
-// METHOD TYPE : YWidget
-//
-// DESCRIPTION : Create NCPackageSelectorStart which reads the layout
+
+
+// Create NCPackageSelectorStart which reads the layout
// term of the package selection dialog, creates the widget
// tree and creates the NCPackageSelector.
-//
YPackageSelector * NCPackageSelectorPluginStub::createPackageSelector( YWidget * parent,
long modeFlags )
{
return impl->createPackageSelector( parent, modeFlags );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPackageSelectorPluign::createPkgSpecial
-// METHOD TYPE : YWidget
-//
-// DESCRIPTION : creates special widgets used for the package selection
+
+
+// creates special widgets used for the package selection
// dialog (which do not have a corresponding widget in qt-ui)
-//
YWidget * NCPackageSelectorPluginStub::createPkgSpecial( YWidget *parent, const string &subwidget )
{
return impl->createPkgSpecial( parent, subwidget );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPackageSelectorPLugin::runPkgSelection
-// METHOD TYPE : YEvent *
-//
-// DESCRIPTION : Implementation of UI builtin RunPkgSelection() which
+
+
+// Implementation of UI builtin RunPkgSelection() which
// has to be called after OpenDialog( `PackageSelector() ).
-//
YEvent * NCPackageSelectorPluginStub::runPkgSelection( YDialog * dialog,
YWidget * selector )
{
Modified: trunk/ncurses/src/NCPad.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPad.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPad.cc (original)
+++ trunk/ncurses/src/NCPad.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCPad.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::Destwin
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPad::Destwin( NCursesWindow * dwin )
{
if ( dwin != destwin ) {
@@ -52,14 +46,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::resize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPad::resize( wsze nsze )
{
SetPadSize( nsze ); // might be enlarged by NCPadWidget if redirected
@@ -74,28 +62,16 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::updateScrollHint
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPad::updateScrollHint()
{
NCScrollHint::VSet( srect.Sze.H + maxspos.L, srect.Sze.H, srect.Pos.L );
NCScrollHint::HSet( srect.Sze.W + maxspos.C, srect.Sze.W, srect.Pos.C );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::update
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCPad::update()
{
if ( destwin ) {
@@ -117,41 +93,23 @@
return OK;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::setpos
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCPad::setpos( const wpos & newpos )
{
srect.Pos = newpos.between( 0, maxspos );
return update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPad::wRecoded()
{
yuiDebug() << "NCPad::wRecoded" << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPad::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPad::handleInput( wint_t key )
{
bool handled = true;
Modified: trunk/ncurses/src/NCPad.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPad.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPad.h (original)
+++ trunk/ncurses/src/NCPad.h Mon Apr 7 18:37:44 2008
@@ -24,12 +24,7 @@
#include "NCurses.h"
#include "NCWidget.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCSchrollCB
-//
-// DESCRIPTION :
-//
+
class NCSchrollCB {
public:
@@ -46,12 +41,7 @@
virtual void AdjustPadSize( wsze & minsze ) {}
};
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCSchrollHint
-//
-// DESCRIPTION :
-//
+
class NCScrollHint : protected NCSchrollCB {
private:
@@ -89,12 +79,7 @@
virtual void SendHead() {}
};
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPad
-//
-// DESCRIPTION :
-//
+
class NCPad : public NCursesPad, public NCScrollHint {
protected:
@@ -179,6 +164,5 @@
virtual bool handleInput( wint_t key );
};
-///////////////////////////////////////////////////////////////////
#endif // NCPad_h
Modified: trunk/ncurses/src/NCPadWidget.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPadWidget.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPadWidget.cc (original)
+++ trunk/ncurses/src/NCPadWidget.cc Mon Apr 7 18:37:44 2008
@@ -206,14 +206,8 @@
};
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::NCPadWidget
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPadWidget::NCPadWidget( NCWidget * myparent )
: NCWidget( myparent )
, padwin( 0 )
@@ -244,14 +238,8 @@
defsze = wsze( 3, 10 ) + 2;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::~NCPadWidget
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPadWidget::~NCPadWidget()
{
delete pad;
@@ -260,15 +248,10 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION : assert (padwin != 0) if (win != 0)
+
+
+// assert (padwin != 0) if (win != 0)
// (padwin must be subwin or ==win)
-//
void NCPadWidget::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -294,14 +277,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::wDelete()
{
if ( pad ) {
@@ -320,14 +297,8 @@
NCWidget::wDelete();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::InitPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::InitPad()
{
if ( pad )
@@ -338,28 +309,16 @@
DrawPad();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::AdjustPadSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::AdjustPadSize( wsze & minsze )
{
minPadSze = minsze;
minsze = wsze::max( minsze, defPadSze() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::AdjustPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::AdjustPad( wsze nsze )
{
if ( !pad )
@@ -367,28 +326,16 @@
pad->resize( nsze );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::DelPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::DelPad()
{
delete pad;
pad = 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::setLabel( const NClabel & nlabel )
{
label = nlabel;
@@ -396,14 +343,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::wRedraw()
{
if ( !win )
@@ -428,14 +369,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::wRecoded()
{
if ( pad )
@@ -443,14 +378,8 @@
wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::H/VScroll
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::HScroll( unsigned total, unsigned visible, unsigned start )
{
hsb->set( total, visible, start );
@@ -461,14 +390,9 @@
vsb->set( total, visible, start );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::ScrollHead.
-// METHOD TYPE : void
-//
+
+
// DESCRIPTION :
-//
void NCPadWidget::ScrollHead( NCursesWindow & w, unsigned ccol )
{
if ( hasHeadline && win ) {
@@ -476,14 +400,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION :
-//
+
+
NCPad * NCPadWidget::CreatePad()
{
wsze psze( defPadSze() );
@@ -493,14 +411,8 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::DrawPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPadWidget::DrawPad()
{
if ( pad && !inMultidraw() ) {
@@ -509,14 +421,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPadWidget::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPadWidget::handleInput( wint_t key )
{
return pad->handleInput( key );
Modified: trunk/ncurses/src/NCPadWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPadWidget.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPadWidget.h (original)
+++ trunk/ncurses/src/NCPadWidget.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCPadWidget;
class NCScrollbar;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPadWidget
-//
-// DESCRIPTION :
-//
+
class NCPadWidget : public NCWidget, protected NCSchrollCB {
friend std::ostream & operator<<( std::ostream & STREAM, const NCPadWidget & OBJ );
@@ -116,6 +111,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCPadWidget_h
Modified: trunk/ncurses/src/NCPopup.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopup.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopup.cc (original)
+++ trunk/ncurses/src/NCPopup.cc Mon Apr 7 18:37:44 2008
@@ -22,40 +22,22 @@
#include "NCPopup.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::NCPopup
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopup::NCPopup( const wpos at, const bool boxed )
: NCDialog( YPopupDialog, at, boxed )
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::~NCPopup
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopup::~NCPopup()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::popupDialog
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopup::popupDialog()
{
initDialog();
@@ -66,27 +48,15 @@
activate ( false );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::popdownDialog
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopup::popdownDialog()
{
closeDialog();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCPopup::wHandleInput( wint_t ch )
{
if ( ch == 27 ) // ESC
Modified: trunk/ncurses/src/NCPopup.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopup.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopup.h (original)
+++ trunk/ncurses/src/NCPopup.h Mon Apr 7 18:37:44 2008
@@ -23,12 +23,7 @@
#include "NCDialog.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopup
-//
-// DESCRIPTION :
-//
+
class NCPopup : public NCDialog {
NCPopup & operator=( const NCPopup & );
Modified: trunk/ncurses/src/NCPopupInfo.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupInfo.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupInfo.cc (original)
+++ trunk/ncurses/src/NCPopupInfo.cc Mon Apr 7 18:37:44 2008
@@ -33,14 +33,8 @@
const string idCancel( "cancel" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::NCPopupInfo
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupInfo::NCPopupInfo( const wpos at,
const string & headline,
const string & text,
@@ -57,26 +51,14 @@
createLayout( headline, text, okButtonLabel, cancelButtonLabel );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::~NCPopupInfo
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupInfo::~NCPopupInfo()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::createLayout
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopupInfo::createLayout( const string & headline,
const string & text,
string okButtonLabel,
@@ -118,14 +100,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::showInfoPopup
-// METHOD TYPE : NCursesEvent &
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent & NCPopupInfo::showInfoPopup( )
{
postevent = NCursesEvent();
@@ -165,14 +141,9 @@
return ( dim == YD_HORIZ ? horDim : vertDim );
}
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION : returns preferred horizontal size
-//
+
+
+// returns preferred horizontal size
int NCPopupInfo::preferredWidth()
{
int horDim = hDim;
@@ -183,14 +154,9 @@
return horDim;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION : returns preferred vertical size
-//
+
+
+// returns preferred vertical size
int NCPopupInfo::preferredHeight()
{
int vertDim = vDim;
@@ -200,14 +166,8 @@
return vertDim;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopup::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCPopupInfo::wHandleInput( wint_t ch )
{
if ( ch == 27 ) // ESC
@@ -219,14 +179,8 @@
return NCDialog::wHandleInput( ch );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupInfo::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPopupInfo::postAgain()
{
if ( ! postevent.widget )
Modified: trunk/ncurses/src/NCPopupInfo.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupInfo.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupInfo.h (original)
+++ trunk/ncurses/src/NCPopupInfo.h Mon Apr 7 18:37:44 2008
@@ -38,12 +38,7 @@
*/
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopupInfo
-//
-// DESCRIPTION :
-//
+
class NCPopupInfo : public NCPopup {
NCPopupInfo & operator=( const NCPopupInfo & );
@@ -95,7 +90,6 @@
void setNiceSize( int horiz, int vert ) { hDim = horiz; vDim = vert; }
};
-///////////////////////////////////////////////////////////////////
#endif // NCPopupInfo_h
Modified: trunk/ncurses/src/NCPopupList.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupList.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupList.cc (original)
+++ trunk/ncurses/src/NCPopupList.cc Mon Apr 7 18:37:44 2008
@@ -23,14 +23,8 @@
#include "YTableItem.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupList::NCPopupList
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupList::NCPopupList( const wpos at,
const string & label,
const list<string> & deflist,
@@ -40,14 +34,8 @@
createEntries( deflist, index);
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupList::~NCPopupList
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupList::~NCPopupList()
{
@@ -65,14 +53,8 @@
setCurrentItem( index );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupList::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPopupList::postAgain()
{
return NCPopupTable::postAgain();
Modified: trunk/ncurses/src/NCPopupList.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupList.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupList.h (original)
+++ trunk/ncurses/src/NCPopupList.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
#include "NCPopupTable.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopupList
-//
-// DESCRIPTION :
-//
+
class NCPopupList : public NCPopupTable {
NCPopupList & operator=( const NCPopupList & );
@@ -53,7 +48,6 @@
void createEntries( const list<string> & deflist, int index );
};
-///////////////////////////////////////////////////////////////////
#endif // NCPopupList_h
Modified: trunk/ncurses/src/NCPopupMenu.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupMenu.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupMenu.cc (original)
+++ trunk/ncurses/src/NCPopupMenu.cc Mon Apr 7 18:37:44 2008
@@ -24,14 +24,8 @@
#include "NCTable.h"
#include "YMenuButton.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupMenu::NCPopupMenu
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupMenu::NCPopupMenu( const wpos at, YItemIterator begin, YItemIterator end )
: NCPopupTable( at )
, itemsMap()
@@ -56,27 +50,15 @@
stripHotkeys();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupMenu::~NCPopupMenu
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupMenu::~NCPopupMenu()
{
itemsMap.clear();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupMenu::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCPopupMenu::wHandleInput( wint_t ch )
{
NCursesEvent ret;
@@ -103,14 +85,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupMenu::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPopupMenu::postAgain()
{
// dont mess up postevent.detail here
Modified: trunk/ncurses/src/NCPopupMenu.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupMenu.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupMenu.h (original)
+++ trunk/ncurses/src/NCPopupMenu.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
#include "NCPopupTable.h"
#include "NCMenuButton.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopupMenu
-//
-// DESCRIPTION :
-//
+
class NCPopupMenu : public NCPopupTable {
NCPopupMenu & operator=( const NCPopupMenu & );
@@ -57,7 +52,6 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCPopupMenu_h
Modified: trunk/ncurses/src/NCPopupTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupTable.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupTable.cc (original)
+++ trunk/ncurses/src/NCPopupTable.cc Mon Apr 7 18:37:44 2008
@@ -24,40 +24,22 @@
#include "NCTable.h"
#include "YMenuButton.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::NCPopupTable
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupTable::NCPopupTable( const wpos at )
: NCPopup( at, false )
, sellist( 0 )
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::~NCPopupTable
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupTable::~NCPopupTable()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::createList
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopupTable::createList( vector<string> & row )
{
if ( sellist )
@@ -76,14 +58,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopupTable::addItem( YItem *yitem )
{
if ( !yitem )
@@ -92,14 +68,8 @@
sellist->addItem( yitem );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::setCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPopupTable::setCurrentItem( int index )
{
if ( !sellist )
@@ -108,14 +78,8 @@
sellist->setCurrentItem( index );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCPopupTable::getCurrentItem() const
{
if ( !sellist )
@@ -132,14 +96,8 @@
return sellist->getCurrentItemPointer( );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::wHandleHotkey
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCPopupTable::wHandleHotkey( wint_t key )
{
if ( key >= 0 && sellist->setItemByKey( key ) )
@@ -148,14 +106,8 @@
return NCursesEvent::none;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTable::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPopupTable::postAgain()
{
if ( sellist ) {
Modified: trunk/ncurses/src/NCPopupTable.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupTable.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupTable.h (original)
+++ trunk/ncurses/src/NCPopupTable.h Mon Apr 7 18:37:44 2008
@@ -31,12 +31,7 @@
class NCTable;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopupTable
-//
-// DESCRIPTION :
-//
+
class NCPopupTable : public NCPopup {
NCPopupTable & operator=( const NCPopupTable & );
@@ -69,7 +64,6 @@
void stripHotkeys();
};
-///////////////////////////////////////////////////////////////////
#endif // NCPopupTable_h
Modified: trunk/ncurses/src/NCPopupTextEntry.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupTextEntry.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupTextEntry.cc (original)
+++ trunk/ncurses/src/NCPopupTextEntry.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCPopupTextEntry.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTextEntry::NCPopupTextEntry
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupTextEntry::NCPopupTextEntry( const wpos at,
const string & label,
const string & text,
@@ -52,26 +46,14 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTextEntry::~NCPopupTextEntry
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPopupTextEntry::~NCPopupTextEntry()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPopupTextEntry::postAgain
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCPopupTextEntry::postAgain()
{
if ( postevent == NCursesEvent::button )
Modified: trunk/ncurses/src/NCPopupTextEntry.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPopupTextEntry.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPopupTextEntry.h (original)
+++ trunk/ncurses/src/NCPopupTextEntry.h Mon Apr 7 18:37:44 2008
@@ -25,12 +25,7 @@
#include "NCInputField.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPopupTextEntry
-//
-// DESCRIPTION :
-//
+
class NCPopupTextEntry : public NCPopup {
NCPopupTextEntry & operator=( const NCPopupTextEntry & );
@@ -57,7 +52,6 @@
string value() { return wtext->value(); }
};
-///////////////////////////////////////////////////////////////////
#endif // NCPopupTextEntry_h
Modified: trunk/ncurses/src/NCProgressBar.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCProgressBar.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCProgressBar.cc (original)
+++ trunk/ncurses/src/NCProgressBar.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCProgressBar.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::NCProgressBar
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCProgressBar::NCProgressBar( YWidget * parent,
const string & nlabel,
int maxValue )
@@ -51,14 +45,8 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::~NCProgressBar
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCProgressBar::~NCProgressBar()
{
delete lwin;
@@ -66,14 +54,8 @@
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
+
+
long NCProgressBar::nicesize( YUIDimension dim )
{
return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H;
@@ -95,41 +77,23 @@
YProgressBar::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::setDefsze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::setDefsze()
{
defsze = wsze( label.height() + 1,
label.width() < 5 ? 5 : label.width() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::wCreate( const wrect & newrect )
{
NCWidget::wCreate( newrect );
@@ -156,14 +120,8 @@
'r' );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::wDelete()
{
delete lwin;
@@ -173,14 +131,8 @@
NCWidget::wDelete();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -189,14 +141,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::setValue( int newValue )
{
cval = newValue;
@@ -208,14 +154,8 @@
YProgressBar::setValue( newValue );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::wRedraw()
{
if ( !win )
@@ -229,14 +169,8 @@
tUpdate();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCProgressBar::tUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCProgressBar::tUpdate()
{
if ( !win )
Modified: trunk/ncurses/src/NCProgressBar.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCProgressBar.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCProgressBar.h (original)
+++ trunk/ncurses/src/NCProgressBar.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCProgressBar;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCProgressBar
-//
-// DESCRIPTION :
-//
+
class NCProgressBar : public YProgressBar, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCProgressBar & OBJ );
@@ -87,6 +82,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCProgressBar_h
Modified: trunk/ncurses/src/NCPushButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPushButton.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPushButton.cc (original)
+++ trunk/ncurses/src/NCPushButton.cc Mon Apr 7 18:37:44 2008
@@ -24,14 +24,8 @@
#include "NCurses.h"
#include "NCPushButton.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::NCPushButton
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCPushButton::NCPushButton( YWidget * parent, const string & nlabel )
: YPushButton( parent, nlabel )
, NCWidget( parent )
@@ -42,81 +36,45 @@
hotlabel = &label;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::~NCPushButton
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCPushButton::~NCPushButton()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCPushButton::preferredWidth()
{
wsze defsize = wGetDefsze();
return wGetDefsze().W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCPushButton::preferredHeight()
{
return wGetDefsze().H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPushButton::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
YPushButton::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPushButton::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCPushButton::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -129,14 +87,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPushButton::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -147,14 +99,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCPushButton::wRedraw()
{
if ( !win )
Modified: trunk/ncurses/src/NCPushButton.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCPushButton.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCPushButton.h (original)
+++ trunk/ncurses/src/NCPushButton.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCPushButton;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPushButton
-//
-// DESCRIPTION :
-//
+
class NCPushButton : public YPushButton, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCPushButton & OBJ );
@@ -78,6 +73,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCPushButton_h
Modified: trunk/ncurses/src/NCRadioButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRadioButton.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRadioButton.cc (original)
+++ trunk/ncurses/src/NCRadioButton.cc Mon Apr 7 18:37:44 2008
@@ -23,14 +23,8 @@
#include "NCRadioButton.h"
#include "NCRadioButtonGroup.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::NCRadioButton
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCRadioButton::NCRadioButton( YWidget * parent,
const string & nlabel,
bool check )
@@ -44,14 +38,8 @@
setValue( check );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::~NCRadioButton
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCRadioButton::~NCRadioButton()
{
yuiDebug() << endl;
@@ -73,27 +61,15 @@
YRadioButton::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButton::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButton::setLabel( const string & nlabel )
{
label = NCstring( nlabel );
@@ -103,14 +79,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButton::setValue( bool newval )
{
if ( newval != checked ) {
@@ -122,14 +92,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButton::wRedraw()
{
if ( !win )
@@ -143,14 +107,8 @@
win->printw( 0, 1, "%c", (checked ? 'x' : ' ') );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButton::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCRadioButton::wHandleInput( wint_t key )
{
NCursesEvent ret;
Modified: trunk/ncurses/src/NCRadioButton.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRadioButton.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRadioButton.h (original)
+++ trunk/ncurses/src/NCRadioButton.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCRadioButton;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCRadioButton
-//
-// DESCRIPTION :
-//
+
class NCRadioButton : public YRadioButton, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCRadioButton & OBJ );
@@ -86,6 +81,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCRadioButton_h
Modified: trunk/ncurses/src/NCRadioButtonGroup.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRadioButtonGroup.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRadioButtonGroup.cc (original)
+++ trunk/ncurses/src/NCRadioButtonGroup.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCRadioButtonGroup.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::NCRadioButtonGroup
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCRadioButtonGroup::NCRadioButtonGroup( YWidget * parent )
: YRadioButtonGroup( parent )
, NCWidget( parent )
@@ -39,67 +33,37 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::~NCRadioButtonGroup
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCRadioButtonGroup::~NCRadioButtonGroup()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButtonGroup::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
YRadioButtonGroup::setSize( newwidth, newheight );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::addRadioButton
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButtonGroup::addRadioButton( YRadioButton *button )
{
YRadioButtonGroup::addRadioButton( button );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::removeRadioButton
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButtonGroup::removeRadioButton( YRadioButton *button )
{
YRadioButtonGroup::removeRadioButton( button );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::focusNextButton
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButtonGroup::focusNextButton( )
{
int n = 0;
@@ -125,14 +89,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRadioButtonGroup::focusPrevButton
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRadioButtonGroup::focusPrevButton()
{
int n = 0;
Modified: trunk/ncurses/src/NCRadioButtonGroup.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRadioButtonGroup.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRadioButtonGroup.h (original)
+++ trunk/ncurses/src/NCRadioButtonGroup.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCRadioButtonGroup;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCRadioButtonGroup
-//
-// DESCRIPTION :
-//
+
class NCRadioButtonGroup : public YRadioButtonGroup, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCRadioButtonGroup & OBJ );
@@ -72,6 +67,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // NCRadioButtonGroup_h
Modified: trunk/ncurses/src/NCReplacePoint.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCReplacePoint.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCReplacePoint.cc (original)
+++ trunk/ncurses/src/NCReplacePoint.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCReplacePoint.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCReplacePoint::NCReplacePoint
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCReplacePoint::NCReplacePoint( YWidget * parent )
: YReplacePoint( parent )
, NCWidget( parent )
@@ -38,27 +32,15 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCReplacePoint::~NCReplacePoint
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCReplacePoint::~NCReplacePoint()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCReplacePoint::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCReplacePoint::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
Modified: trunk/ncurses/src/NCReplacePoint.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCReplacePoint.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCReplacePoint.h (original)
+++ trunk/ncurses/src/NCReplacePoint.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCReplacePoint;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCReplacePoint
-//
-// DESCRIPTION :
-//
+
class NCReplacePoint : public YReplacePoint, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCReplacePoint & OBJ );
@@ -65,6 +60,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCReplacePoint_h
Modified: trunk/ncurses/src/NCRichText.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRichText.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRichText.cc (original)
+++ trunk/ncurses/src/NCRichText.cc Mon Apr 7 18:37:44 2008
@@ -32,25 +32,17 @@
using stdutil::form;
-///////////////////////////////////////////////////////////////////
const unsigned NCRichText::listindent = 4;
const wstring NCRichText::listleveltags( L"@*+o#-%$&" );//
const bool NCRichText::showLinkTarget = false;
-///////////////////////////////////////////////////////////////////
std::map NCRichText::_charentity;
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::entityLookup
-// METHOD TYPE : const char *
-//
-// DESCRIPTION :
-//
+
+
const wstring NCRichText::entityLookup( const std::wstring & val_r )
{
//strip leading '#', if any
@@ -104,15 +96,10 @@
#undef REP
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::filterEntities
-// METHOD TYPE : const wstring
-//
-// DESCRIPTION : Filter out the known &...; entities, return
+
+
+// Filter out the known &...; entities, return
// the text with entities replaced
-//
const wstring NCRichText::filterEntities( const std::wstring & text )
{
wstring txt = text;
@@ -138,16 +125,9 @@
return txt;
}
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::Anchor::draw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::Anchor::draw( NCPad & pad, const chtype attr, int color )
{
unsigned l = sline;
@@ -162,14 +142,8 @@
pad.chgat( ecol - c, attr, color );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::NCRichText
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCRichText::NCRichText( YWidget * parent, const string & ntext,
bool plainTextMode )
: YRichText( parent, ntext, plainTextMode )
@@ -184,14 +158,8 @@
setValue( ntext );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::~NCRichText
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCRichText::~NCRichText()
{
yuiDebug() << endl;
@@ -213,41 +181,23 @@
YRichText::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::setLabel( const string & nlabel )
{
// not implemented: YRichText::setLabel( nlabel );
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::setValue
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::setValue( const string & ntext )
{
DelPad();
@@ -256,14 +206,8 @@
Redraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::wRedraw()
{
if ( !win )
@@ -281,28 +225,16 @@
return;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::wRecoded()
{
DelPad();
wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCRichText::wHandleInput( wint_t key )
{
NCursesEvent ret;
@@ -326,14 +258,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION :
-//
+
+
NCPad * NCRichText::CreatePad()
{
wsze psze( defPadSze() );
@@ -342,14 +268,8 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::DrawPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::DrawPad()
{
yuiDebug()
@@ -368,14 +288,8 @@
yuiDebug() << "Done" << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::DrawPlainPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::DrawPlainPad()
{
NCtext ftext( text );
@@ -390,14 +304,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadPlainTXT
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::PadPlainTXT( const wchar_t * osch, const unsigned olen )
{
wstring wtxt( osch, olen );
@@ -464,14 +372,8 @@
} while ( *wch && wstr != L"</pre>" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::DrawHTMLPad
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::DrawHTMLPad()
{
yuiDebug() << "Start:" << endl;
@@ -551,14 +453,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadNL
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
inline void NCRichText::PadNL()
{
cc = cindent;
@@ -569,28 +465,16 @@
atbol = true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadBOL
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
inline void NCRichText::PadBOL()
{
if ( !atbol )
PadNL();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadWS
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
inline void NCRichText::PadWS( const bool tab )
{
if ( atbol )
@@ -607,14 +491,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadTXT
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
inline void NCRichText::PadTXT( const wchar_t * osch, const unsigned olen )
{
wstring txt( osch, olen );
@@ -642,14 +520,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::textWidth
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
size_t NCRichText::textWidth( wstring wstr )
{
size_t len = 0;
@@ -662,14 +534,9 @@
return len;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadSetAttr
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set character attributes (e.g. color, font face...)
-//
+
+
+// Set character attributes (e.g. color, font face...)
inline void NCRichText::PadSetAttr()
{
const NCstyle::StRichtext & style( wStyle().richtext );
@@ -694,14 +561,8 @@
myPad()->bkgdset( nbg );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadSetLevel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::PadSetLevel()
{
cindent = listindent * liststack.size();
@@ -714,14 +575,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadChangeLevel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::PadChangeLevel( bool down, int tag )
{
if ( down ) {
@@ -733,14 +588,8 @@
PadSetLevel();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::openAnchor
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::openAnchor( wstring args )
{
canchor.open( cl, cc );
@@ -789,14 +638,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::closeAnchor
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::closeAnchor()
{
canchor.close( cl, cc );
@@ -805,14 +648,9 @@
canchor = Anchor();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::PadTOKEN
-// METHOD TYPE : bool
-//
-// DESCRIPTION : expect "<[/]value>"
-//
+
+
+// expect "<[/]value>"
bool NCRichText::PadTOKEN( const wchar_t * sch, const wchar_t *& ech )
{
// "<[/]value>"
@@ -1004,14 +842,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::arm
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::arm( unsigned i )
{
if ( !myPad() ) {
@@ -1046,28 +878,16 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::HScroll
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::HScroll( unsigned total, unsigned visible, unsigned start )
{
NCPadWidget::HScroll( total, visible, start );
// no hyperlink handling needed, because Ritchtext does not HScroll
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::VScroll
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCRichText::VScroll( unsigned total, unsigned visible, unsigned start )
{
NCPadWidget::VScroll( total, visible, start );
@@ -1095,14 +915,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCRichText::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCRichText::handleInput( wint_t key )
{
if ( plainText || anchors.empty() ) {
Modified: trunk/ncurses/src/NCRichText.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCRichText.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCRichText.h (original)
+++ trunk/ncurses/src/NCRichText.h Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
class NCRichText;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCRichText
-//
-// DESCRIPTION :
-//
+
class NCRichText : public YRichText, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCRichText & OBJ );
@@ -228,6 +223,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCRichText_h
Modified: trunk/ncurses/src/NCSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSelectionBox.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSelectionBox.cc (original)
+++ trunk/ncurses/src/NCSelectionBox.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCSelectionBox.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::NCSelectionBox
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCSelectionBox::NCSelectionBox( YWidget * parent, const string & nlabel )
: YSelectionBox( parent, nlabel )
, NCPadWidget( parent )
@@ -39,14 +33,8 @@
setLabel( nlabel );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::~NCSelectionBox
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCSelectionBox::~NCSelectionBox()
{
yuiDebug() << endl;
@@ -64,14 +52,8 @@
return sze.H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
@@ -83,14 +65,8 @@
YSelectionBox::setEnabled( do_bv );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCSelectionBox::getCurrentItem()
{
if ( !myPad()->Lines() )
@@ -99,14 +75,8 @@
return myPad()->CurPos().L;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::getLine
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
string NCSelectionBox::getLine( const int & index )
{
NCTableLine * line = const_cast(myPad()->GetLine(index));
@@ -130,27 +100,15 @@
return val;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::setCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::setCurrentItem( int index )
{
myPad()->ScrlLine( index );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::selectItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::selectItem( YItem *item, bool selected )
{
YSelectionBox::selectItem( item, selected );
@@ -176,14 +134,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::addItem( YItem * item )
{
vector Items( 1U, 0 );
@@ -204,28 +156,16 @@
YSelectionWidget::addItem( description, selected );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::setLabel( const string & nlabel )
{
YSelectionBox::setLabel( nlabel );
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION :
-//
+
+
NCPad * NCSelectionBox::CreatePad()
{
wsze psze( defPadSze() );
@@ -235,27 +175,15 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSelectionBox::wRecoded()
{
NCPadWidget::wRecoded();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCSelectionBox::wHandleInput( wint_t key )
{
NCursesEvent ret = NCursesEvent::none;
@@ -300,15 +228,10 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSelectionBox::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : cleares the table and the lists holding
+
+
+// cleares the table and the lists holding
// the values
-//
void NCSelectionBox::deleteAllItems() {
YSelectionBox::deleteAllItems();
clearTable();
Modified: trunk/ncurses/src/NCSelectionBox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSelectionBox.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSelectionBox.h (original)
+++ trunk/ncurses/src/NCSelectionBox.h Mon Apr 7 18:37:44 2008
@@ -27,12 +27,7 @@
class NCSelectionBox;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCSelectionBox
-//
-// DESCRIPTION :
-//
+
class NCSelectionBox : public YSelectionBox, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCSelectionBox & OBJ );
@@ -102,6 +97,5 @@
void deleteAllItems();
};
-///////////////////////////////////////////////////////////////////
#endif // NCSelectionBox_h
Modified: trunk/ncurses/src/NCSpacing.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSpacing.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSpacing.cc (original)
+++ trunk/ncurses/src/NCSpacing.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCSpacing.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSpacing::NCSpacing
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCSpacing::NCSpacing( YWidget * parent,
YUIDimension dim,
bool stretchable,
@@ -64,27 +58,15 @@
skipNoDimWin = true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSpacing::~NCSpacing
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCSpacing::~NCSpacing()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSpacing::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSpacing::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
Modified: trunk/ncurses/src/NCSpacing.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSpacing.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSpacing.h (original)
+++ trunk/ncurses/src/NCSpacing.h Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
class NCSpacing;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCSpacing
-//
-// DESCRIPTION :
-//
+
class NCSpacing : public YSpacing, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCSpacing & OBJ );
@@ -70,6 +65,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCSpacing_h
Modified: trunk/ncurses/src/NCSquash.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSquash.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSquash.cc (original)
+++ trunk/ncurses/src/NCSquash.cc Mon Apr 7 18:37:44 2008
@@ -22,14 +22,8 @@
#include "NCurses.h"
#include "NCSquash.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSquash::NCSquash
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCSquash::NCSquash( YWidget * parent,
bool hsquash, bool vsquash )
: YSquash( parent, hsquash, vsquash )
@@ -39,27 +33,15 @@
wstate = NC::WSdumb;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSquash::~NCSquash
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCSquash::~NCSquash()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCSquash::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCSquash::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
Modified: trunk/ncurses/src/NCSquash.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCSquash.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCSquash.h (original)
+++ trunk/ncurses/src/NCSquash.h Mon Apr 7 18:37:44 2008
@@ -26,12 +26,7 @@
class NCSquash;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCSquash
-//
-// DESCRIPTION :
-//
+
class NCSquash : public YSquash, public NCWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCSquash & OBJ );
@@ -65,6 +60,5 @@
virtual void setEnabled( bool do_bv );
};
-///////////////////////////////////////////////////////////////////
#endif // NCSquash_h
Modified: trunk/ncurses/src/NCStyleDef.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCStyleDef.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCStyleDef.cc (original)
+++ trunk/ncurses/src/NCStyleDef.cc Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
#include "NCurses.h"
#include "NCstyle.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCStyleDef
-//
-// DESCRIPTION :
-//
+
class NCStyleDef {
public:
@@ -664,18 +659,11 @@
void showHelp();
};
-///////////////////////////////////////////////////////////////////
NCStyleDef * NCStyleDef::NCStyleDef_p = 0;
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::doshowset
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::doshowset( SetType a, bool reset )
{
vector<Aset> aset;
@@ -787,14 +775,8 @@
wChattr.set( aset, reset );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::pbox
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::pbox( bool on )
{
p.bkgdset( A_NORMAL );
@@ -807,14 +789,8 @@
p.bkgdset( A_NORMAL );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::movePad
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCStyleDef::movePad( int key )
{
pbox( true );
@@ -878,14 +854,8 @@
return in;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::changeStyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::changeStyle()
{
fakestyle( wStyle.cset );
@@ -953,14 +923,9 @@
fakestyle( NCstyle::MaxStyleSet );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::queryChar
-// METHOD TYPE : chtype
-//
-// DESCRIPTION : query popup for ACS chars
-//
+
+
+// query popup for ACS chars
chtype NCStyleDef::queryChar( int column, chtype selbg )
{
vector<queryCharEnt> men;
@@ -1053,11 +1018,7 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
// NCStyleDef::showex
-//
-///////////////////////////////////////////////////////////////////
#define BGSET(a) W.bkgdset( st.a )
@@ -1148,14 +1109,8 @@
listex( W, L, C+1, l );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::showex
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::showex( ExMode mode )
{
static NCursesPanel W( 14, NCurses::cols(), 0, 0 );
@@ -1229,14 +1184,8 @@
W.refresh();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::saveStyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::saveStyle()
{
string fname( "NCstyle."+NCstyle_C.styleName+".h" );
@@ -1336,14 +1285,8 @@
p.refresh();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCStyleDef::restoreStyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCStyleDef::restoreStyle()
{
string fname( "NCstyle."+NCstyle_C.styleName+".h" );
@@ -1574,7 +1517,6 @@
p.refresh();
}
-///////////////////////////////////////////////////////////////////
/******************************************************************
**
Modified: trunk/ncurses/src/NCTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTable.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTable.cc (original)
+++ trunk/ncurses/src/NCTable.cc Mon Apr 7 18:37:44 2008
@@ -30,14 +30,8 @@
#define DBG_CLASS "_NCTable_"
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::NCTable
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCTable::NCTable( YWidget * parent, YTableHeader *tableHeader )
: YTable( parent, tableHeader )
, NCPadWidget( parent )
@@ -62,29 +56,18 @@
hasHeadline = myPad()->SetHeadline( _header );
}
-/////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::~NCTable
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTable::~NCTable()
{
yuiDebug() << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::cellChanged
-// METHOD TYPE : void
-//
-// DESCRIPTION : Change individual cell of a table line (to newtext)
+
+
+// Change individual cell of a table line (to newtext)
// provided for backwards compatibility
-//
void NCTable::cellChanged( int index, int colnum, const string & newtext )
{
@@ -103,14 +86,9 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::cellChanged
-// METHOD TYPE : void
-//
-// DESCRIPTION : Change individual cell of a table line (to newtext)
-//
+
+
+// Change individual cell of a table line (to newtext)
void NCTable::cellChanged( const YTableCell *cell )
{
@@ -119,14 +97,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setHeader
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set table header all at once
-//
+
+
+// Set table header all at once
void NCTable::setHeader( vector<string> head )
{
@@ -143,16 +116,11 @@
YTable::setTableHeader( th );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setAlignment
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set alignment of i-th table column (left, right,
+
+
+// Set alignment of i-th table column (left, right,
// center). Create temp. header consisting of single
// letter - setHeader will append the rest
-//
void NCTable::setAlignment ( int col, YAlignmentType al )
{
@@ -169,15 +137,10 @@
_header[ col ] = NCstring( s );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Append item (as pointed to by 'yitem') to a table
+
+
+// Append item (as pointed to by 'yitem') to a table
// (create new table line consisting of individual cells)
-//
void NCTable::addItem( YItem *yitem )
{
@@ -213,14 +176,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : Clear the table (in terms of YTable and visually)
-//
+
+
+// Clear the table (in terms of YTable and visually)
void NCTable::deleteAllItems()
{
@@ -229,14 +187,9 @@
YTable::deleteAllItems();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION : Return index of currently selected table item
-//
+
+
+// Return index of currently selected table item
int NCTable::getCurrentItem()
{
@@ -247,14 +200,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::getCurrentItemPointer
-// METHOD TYPE : YItem *
-//
-// DESCRIPTION : Return origin pointer of currently selected table item
-//
+
+
+// Return origin pointer of currently selected table item
YItem * NCTable::getCurrentItemPointer()
{
@@ -265,28 +213,18 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Highlight item at 'index'
-//
+
+
+// Highlight item at 'index'
void NCTable::setCurrentItem( int index )
{
myPad()->ScrlLine( index );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::selectItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Mark table item (as pointed to by 'yitem') as selected
-//
+
+
+// Mark table item (as pointed to by 'yitem') as selected
void NCTable::selectItem( YItem *yitem, bool selected )
{
@@ -314,14 +252,9 @@
DrawPad();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::selectCurrentItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Mark currently highlighted table item as selected
-//
+
+
+// Mark currently highlighted table item as selected
void NCTable::selectCurrentItem()
{
@@ -330,14 +263,9 @@
selectItem( cline->origItem(), true );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::deselectAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : Mark all items as deselected
-//
+
+
+// Mark all items as deselected
void NCTable::deselectAllItems()
{
@@ -346,14 +274,9 @@
DrawPad();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION : return preferred size
-//
+
+
+// return preferred size
int NCTable::preferredWidth()
{
@@ -361,14 +284,9 @@
return sze.W;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION : return preferred size
-//
+
+
+// return preferred size
int NCTable::preferredHeight()
{
@@ -376,28 +294,17 @@
return sze.H;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set new size of the widget
-//
+
+
+// Set new size of the widget
void NCTable::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setLabel
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTable::setLabel( const string & nlabel )
{
@@ -405,14 +312,9 @@
NCPadWidget::setLabel( NCstring( nlabel ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set widget state (enabled vs. disabled)
-//
+
+
+// Set widget state (enabled vs. disabled)
void NCTable::setEnabled( bool do_bv )
{
@@ -421,14 +323,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::setItemByKey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTable::setItemByKey( int key )
{
return myPad()->setItemByKey( key );
@@ -436,14 +332,9 @@
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION : Create new NCTablePad, set its background
-//
+
+
+// Create new NCTablePad, set its background
NCPad * NCTable::CreatePad()
{
wsze psze( defPadSze() );
@@ -453,16 +344,11 @@
return npad;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTable::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION : Handle 'special' keys i.e those not handled
+
+
+// Handle 'special' keys i.e those not handled
// by parent NCPad class (space, return). Set
// items to selected, if appropriate
-//
NCursesEvent NCTable::wHandleInput( wint_t key )
{
NCursesEvent ret;
Modified: trunk/ncurses/src/NCTable.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTable.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTable.h (original)
+++ trunk/ncurses/src/NCTable.h Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
class NCTable;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTable
-//
-// DESCRIPTION :
-//
+
class NCTable : public YTable, public NCPadWidget {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTable & OBJ );
@@ -123,6 +118,5 @@
void stripHotkeys() { myPad()->stripHotkeys(); }
};
-///////////////////////////////////////////////////////////////////
#endif // NCTable_h
Modified: trunk/ncurses/src/NCTableItem.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTableItem.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTableItem.cc (original)
+++ trunk/ncurses/src/NCTableItem.cc Mon Apr 7 18:37:44 2008
@@ -26,46 +26,24 @@
using stdutil::form;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableCol
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableCol::NCTableCol
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
+
+
NCTableCol::NCTableCol( const NCstring & l, const STYLE & st )
: label( l )
, style( st )
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableCol::~NCTableCol
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTableCol::~NCTableCol()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableCol::setBkgd
-// METHOD TYPE : chtype
-//
-// DESCRIPTION :
-//
+
+
chtype NCTableCol::setBkgd( NCursesWindow & w,
NCTableStyle & tableStyle,
NCTableLine::STATE linestate,
@@ -80,14 +58,8 @@
return bkgdstyle;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableCol::DrawAt
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableCol::DrawAt( NCursesWindow & w, const wrect at,
NCTableStyle & tableStyle,
NCTableLine::STATE linestate,
@@ -113,20 +85,10 @@
return STREAM << OBJ.label;
}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableLine
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::NCTableLine
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
+
+
NCTableLine::NCTableLine( unsigned cols, int idx, const unsigned s )
: Items( cols, (NCTableCol*)0 )
, state ( s )
@@ -148,41 +110,23 @@
yitem = it;
yitem->setData (this) ;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::~NCTableLine
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTableLine::~NCTableLine()
{
ClearLine();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::assertCol
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::assertCol( unsigned idx )
{
if ( idx >= Cols() )
SetCols( idx + 1 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::SetCols
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::SetCols( unsigned idx )
{
if ( idx == Cols() )
@@ -205,28 +149,16 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::SetCols
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::SetCols( vector & nItems )
{
SetCols( 0 );
Items = nItems;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::AddCol
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::AddCol( unsigned idx, NCTableCol * item )
{
assertCol( idx );
@@ -234,14 +166,8 @@
Items[idx] = item;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::DelCol
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::DelCol( unsigned idx )
{
if ( idx < Cols() ) {
@@ -250,14 +176,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::GetCol
-// METHOD TYPE : NCTableCol *
-//
-// DESCRIPTION :
-//
+
+
NCTableCol * NCTableLine::GetCol( unsigned idx )
{
if ( idx < Cols() )
@@ -265,14 +185,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::UpdateFormat
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::UpdateFormat( NCTableStyle & tableStyle )
{
tableStyle.AssertMinCols( Cols() );
@@ -283,14 +197,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::DrawAt
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::DrawAt( NCursesWindow & w, const wrect at,
NCTableStyle & tableStyle,
bool active ) const
@@ -312,14 +220,8 @@
DrawItems( w, at, tableStyle, active );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableLine::DrawItems
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTableLine::DrawItems( NCursesWindow & w, const wrect at,
NCTableStyle & tableStyle,
bool active ) const
@@ -388,20 +290,10 @@
return STREAM;
}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableHead
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableHead::DrawAt
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
+
+
void NCTableHead::DrawAt( NCursesWindow & w, const wrect at,
NCTableStyle & tableStyle,
bool active ) const
@@ -417,20 +309,10 @@
DrawItems( w, at, tableStyle, active );
}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableStyle
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableStyle::NCTableStyle
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
+
+
NCTableStyle::NCTableStyle( const NCWidget & p )
: headline( 0 )
, colWidth( 0 )
@@ -442,14 +324,8 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableStyle::SetStyleFrom
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTableStyle::SetStyleFrom( const vector<NCstring> & head )
{
unsigned ncols = head.size();
@@ -495,14 +371,8 @@
return hascontent;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableStyle::highlightBG
-// METHOD TYPE : chtype
-//
-// DESCRIPTION :
-//
+
+
chtype NCTableStyle::highlightBG( const NCTableLine::STATE lstate,
const NCTableCol::STYLE cstyle,
const NCTableCol::STYLE dstyle ) const
@@ -517,14 +387,8 @@
return getBG( lstate, dstyle );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTableStyle::getBG
-// METHOD TYPE : chtype
-//
-// DESCRIPTION :
-//
+
+
chtype NCTableStyle::getBG( const NCTableLine::STATE lstate,
const NCTableCol::STYLE cstyle ) const
{
Modified: trunk/ncurses/src/NCTableItem.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTableItem.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTableItem.h (original)
+++ trunk/ncurses/src/NCTableItem.h Mon Apr 7 18:37:44 2008
@@ -31,12 +31,7 @@
class NCTableStyle;
class NCTableCol;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableLine
-//
-// DESCRIPTION :
-//
+
class NCTableLine {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTableLine & OBJ );
@@ -123,14 +118,8 @@
void stripHotkeys();
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableCol
-//
-// DESCRIPTION :
-//
+
class NCTableCol {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTableCol & OBJ );
@@ -181,14 +170,8 @@
unsigned char hotkey() const { return label.hotkey(); }
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableHead
-//
-// DESCRIPTION :
-//
+
class NCTableHead : public NCTableLine {
public:
@@ -204,14 +187,8 @@
bool active ) const;
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTableStyle
-//
-// DESCRIPTION :
-//
+
class NCTableStyle {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTableStyle & OBJ );
@@ -296,6 +273,5 @@
}
};
-///////////////////////////////////////////////////////////////////
#endif // NCTableItem_h
Modified: trunk/ncurses/src/NCTablePad.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTablePad.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTablePad.cc (original)
+++ trunk/ncurses/src/NCTablePad.cc Mon Apr 7 18:37:44 2008
@@ -29,14 +29,8 @@
#define DBG_CLASS "_NCTablePad_"
#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::NCTablePad
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCTablePad::NCTablePad( int lines, int cols, const NCWidget & p )
: NCPad( lines, cols, p )
, Headpad ( 1, 1 )
@@ -49,41 +43,23 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::~NCTablePad
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTablePad::~NCTablePad()
{
ClearTable();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::assertLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::assertLine( unsigned idx )
{
if ( idx >= Lines() )
SetLines( idx + 1 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::SetLines
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::SetLines( unsigned idx )
{
if ( idx == Lines() )
@@ -106,14 +82,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::SetLines
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::SetLines( vector & nItems )
{
SetLines( 0 );
@@ -126,14 +96,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::AddLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::AddLine( unsigned idx, NCTableLine * item )
{
assertLine( idx );
@@ -143,14 +107,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::DelLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::DelLine( unsigned idx )
{
if ( idx < Lines() ) {
@@ -159,14 +117,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::GetLine
-// METHOD TYPE : const NCTableLine *
-//
-// DESCRIPTION :
-//
+
+
const NCTableLine * NCTablePad::GetLine( unsigned idx ) const
{
if ( idx < Lines() )
@@ -174,14 +126,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::ModifyLine
-// METHOD TYPE : NCTableLine *
-//
-// DESCRIPTION :
-//
+
+
NCTableLine * NCTablePad::ModifyLine( unsigned idx )
{
if ( idx < Lines() ) {
@@ -191,14 +137,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::SetHeadline
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTablePad::SetHeadline( const vector<NCstring> & head )
{
bool hascontent = ItemStyle.SetStyleFrom( head );
@@ -207,42 +147,24 @@
return hascontent;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::wRecoded()
{
DirtyFormat();
update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::CurPos
-// METHOD TYPE : wpos
-//
-// DESCRIPTION :
-//
+
+
wpos NCTablePad::CurPos() const
{
citem.C = srect.Pos.C;
return citem;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::UpdateFormat
-// METHOD TYPE : wsze
-//
-// DESCRIPTION :
-//
+
+
wsze NCTablePad::UpdateFormat()
{
yuiDebug() << endl;
@@ -257,14 +179,8 @@
return wsze( Lines(), ItemStyle.TableWidth() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::DoRedraw
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTablePad::DoRedraw()
{
if ( !Destwin() ) {
@@ -295,14 +211,8 @@
return update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::setpos
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTablePad::setpos( const wpos & newpos )
{
if ( !Lines() ) {
@@ -345,27 +255,15 @@
return update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::updateScrollHint
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTablePad::updateScrollHint()
{
NCPad::updateScrollHint();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::setItemByKey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTablePad::setItemByKey( int key )
{
if ( HotCol() >= Cols() )
@@ -404,14 +302,8 @@
update ();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTablePad::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTablePad::handleInput( wint_t key )
{
return NCPad::handleInput( key );
Modified: trunk/ncurses/src/NCTablePad.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTablePad.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTablePad.h (original)
+++ trunk/ncurses/src/NCTablePad.h Mon Apr 7 18:37:44 2008
@@ -31,12 +31,7 @@
class NCTableLine;
class NCTableCol;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTablePad
-//
-// DESCRIPTION :
-//
+
class NCTablePad : public NCPad {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTablePad & OBJ );
@@ -127,6 +122,5 @@
void stripHotkeys();
};
-///////////////////////////////////////////////////////////////////
#endif // NCTablePad_h
Modified: trunk/ncurses/src/NCTextPad.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTextPad.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTextPad.cc (original)
+++ trunk/ncurses/src/NCTextPad.cc Mon Apr 7 18:37:44 2008
@@ -23,14 +23,8 @@
#include
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::NCTextPad
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCTextPad::NCTextPad( int l, int c, const NCWidget & p )
: NCPad( l, c, p )
, lines( 1U, 0 )
@@ -41,26 +35,14 @@
bkgd( p.widgetStyle().data );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::~NCTextPad
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTextPad::~NCTextPad()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::resize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::resize( wsze nsze )
{
SetPadSize( nsze ); // might be enlarged by NCPadWidget if redirected
@@ -75,14 +57,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::assertSze
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::assertSze( wsze minsze )
{
if ( minsze.W > width()
@@ -90,55 +66,31 @@
resize( minsze );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::assertWidth
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::assertWidth( unsigned minw )
{
if ( minw >= (unsigned)width() ) // == for the '\n'
resize( wsze( height(), minw + 10 ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::assertHeight
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::assertHeight( unsigned minh )
{
if ( minh > (unsigned)height() )
resize( wsze( minh + 10, width() ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::CurPos
-// METHOD TYPE : wpos
-//
-// DESCRIPTION :
-//
+
+
wpos NCTextPad::CurPos() const
{
return curs;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::cursor
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::cursor( bool on )
{
if ( on != curson ) {
@@ -152,14 +104,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::setpos
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTextPad::setpos()
{
bkgd( parw.widgetStyle().data );
@@ -167,14 +113,8 @@
return setpos( CurPos() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::setpos
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTextPad::setpos( const wpos & newpos )
{
wpos npos( newpos.between( 0, wpos( maxy(), maxx() ) ) );
@@ -204,14 +144,8 @@
return NCPad::setpos( padpos );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTextPad::handleInput( wint_t key )
{
bool handled = true;
@@ -330,14 +264,8 @@
return handled;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::insert
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTextPad::insert( wint_t key )
{
if ( key == 10 ) {
@@ -363,14 +291,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::openLine
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTextPad::openLine()
{
assertHeight( lines.size() + 1 );
@@ -407,14 +329,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::delch
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTextPad::delch( bool previous )
{
if ( previous ) {
@@ -451,14 +367,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::setText
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTextPad::setText( const NCtext & ntext )
{
bkgd( parw.widgetStyle().data );
@@ -501,14 +411,8 @@
setpos( curs );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTextPad::getText
-// METHOD TYPE : NCtext
-//
-// DESCRIPTION :
-//
+
+
wstring NCTextPad::getText() const
{
// just for inch(x,y) call, which isn't const due to
Modified: trunk/ncurses/src/NCTextPad.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTextPad.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTextPad.h (original)
+++ trunk/ncurses/src/NCTextPad.h Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
#include "NCtext.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTextPad
-//
-// DESCRIPTION :
-//
+
class NCTextPad : public NCPad {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTextPad & OBJ );
@@ -88,6 +83,5 @@
void setInputMaxLength( int nr );
};
-///////////////////////////////////////////////////////////////////
#endif // NCTextPad_h
Modified: trunk/ncurses/src/NCTree.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTree.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTree.cc (original)
+++ trunk/ncurses/src/NCTree.cc Mon Apr 7 18:37:44 2008
@@ -215,7 +215,6 @@
-///////////////////////////////////////////////////////////////////
@@ -235,14 +234,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::getTreeLine
-// METHOD TYPE : const NCTreeLine *
-//
-// DESCRIPTION : Return pointer to tree line at given index
-//
+
+
+// Return pointer to tree line at given index
inline const NCTreeLine * NCTree::getTreeLine( unsigned idx ) const
{
if ( myPad() )
@@ -252,14 +246,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::modifyTreeLine
-// METHOD TYPE : NCTreeLine *
-//
-// DESCRIPTION : Modify tree line at given index
-//
+
+
+// Modify tree line at given index
inline NCTreeLine * NCTree::modifyTreeLine( unsigned idx )
{
if ( myPad() ) {
@@ -269,14 +258,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::preferredWidth
-// METHOD TYPE : int
-//
-// DESCRIPTION : Set preferred width
-//
+
+
+// Set preferred width
int NCTree::preferredWidth()
{
wsze sze = wsze::max( defsze, wsze( 0, labelWidth()+2 ) );
@@ -284,14 +268,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::preferredHeight
-// METHOD TYPE : int
-//
-// DESCRIPTION : Set preferred height
-//
+
+
+// Set preferred height
int NCTree::preferredHeight()
{
wsze sze = wsze::max( defsze, wsze( 0, labelWidth()+2 ) );
@@ -299,14 +278,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION : Enable/disable widget
-//
+
+
+// Enable/disable widget
void NCTree::setEnabled( bool do_bv )
{
NCWidget::setEnabled( do_bv );
@@ -314,29 +288,18 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::setSize
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTree::setSize( int newwidth, int newheight )
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION : Return YTreeItem pointer for a current line
+
+
+// Return YTreeItem pointer for a current line
// (under the cursor)
-//
YTreeItem * NCTree::getCurrentItem() const
{
YTreeItem * yitem = 0;
@@ -354,14 +317,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::selectItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set current item (under the cursor) to selected
-//
+
+
+// Set current item (under the cursor) to selected
void NCTree::selectItem( YItem *item, bool selected )
{
if ( !myPad() )
@@ -389,15 +347,10 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::selectItem
-// METHOD TYPE : void
-//
-// DESCRIPTION : Set current item (at given index) to selected
+
+
+// Set current item (at given index) to selected
// (overloaded for convenience)
-//
void NCTree::selectItem( int index )
{
YItem * item = YTree::itemAt( index );
@@ -427,14 +380,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::CreatePad
-// METHOD TYPE : NCPad *
-//
-// DESCRIPTION : Creates empty pad
-//
+
+
+// Creates empty pad
NCPad * NCTree::CreatePad()
{
wsze psze( defPadSze() );
@@ -444,11 +392,8 @@
}
-///////////////////////////////////////////////////////////////////
-//
// Creates tree lines and appends them to TreePad
// (called recursively for each child of an item)
-//
void NCTree::CreateTreeLines( NCTreeLine * parentLine, NCTreePad * pad, YItem * item )
{
//static index counter
@@ -471,14 +416,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::DrawPad
-// METHOD TYPE : void
-//
-// DESCRIPTION : Fills TreePad with lines (uses CreateTreeLines to create them)
-//
+
+
+// Fills TreePad with lines (uses CreateTreeLines to create them)
void NCTree::DrawPad()
{
if ( !myPad() )
@@ -531,15 +471,10 @@
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTree::deleteAllItems
-// METHOD TYPE : void
-//
-// DESCRIPTION : clears the table and the lists holding
+
+
+// clears the table and the lists holding
// the values
-//
void NCTree::deleteAllItems()
{
YTree::deleteAllItems();
Modified: trunk/ncurses/src/NCTreePad.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTreePad.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTreePad.cc (original)
+++ trunk/ncurses/src/NCTreePad.cc Mon Apr 7 18:37:44 2008
@@ -21,14 +21,8 @@
#include
#include "NCTreePad.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::NCTreePad
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCTreePad::NCTreePad( int lines, int cols, const NCWidget & p )
: NCPad( lines, cols, p )
, Headpad ( 1, 1 )
@@ -42,41 +36,23 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::~NCTreePad
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCTreePad::~NCTreePad()
{
ClearTable();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::assertLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::assertLine( unsigned idx )
{
if ( idx >= Lines() )
SetLines( idx + 1 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::SetLines
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::SetLines( unsigned idx )
{
if ( idx == Lines() )
@@ -98,14 +74,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::SetLines
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::SetLines( vector & nItems )
{
SetLines( 0 );
@@ -118,14 +88,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::AddLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::AddLine( unsigned idx, NCTableLine * item )
{
assertLine( idx );
@@ -135,14 +99,8 @@
DirtyFormat();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::DelLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::DelLine( unsigned idx )
{
if ( idx < Lines() ) {
@@ -151,14 +109,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::GetCurrentLine
-// METHOD TYPE : const NCTableLine *
-//
-// DESCRIPTION :
-//
+
+
const NCTableLine * NCTreePad::GetCurrentLine() const
{
if ( citem.L >= 0 && (unsigned)citem.L < visLines() )
@@ -166,14 +118,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::ModifyLine
-// METHOD TYPE : NCTableLine *
-//
-// DESCRIPTION :
-//
+
+
NCTableLine * NCTreePad::ModifyLine( unsigned idx )
{
if ( idx < Lines() ) {
@@ -183,14 +129,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::GetLine
-// METHOD TYPE : const NCTableLine *
-//
-// DESCRIPTION :
-//
+
+
const NCTableLine * NCTreePad::GetLine( unsigned idx ) const
{
if ( idx < Lines() )
@@ -198,14 +138,8 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::SetHeadline
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTreePad::SetHeadline( const vector<NCstring> & head )
{
bool hascontent = ItemStyle.SetStyleFrom( head );
@@ -214,14 +148,8 @@
return hascontent;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::Destwin
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::Destwin( NCursesWindow * dwin )
{
NCPad::Destwin( dwin );
@@ -230,42 +158,24 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::wRecoded()
{
DirtyFormat();
update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::CurPos
-// METHOD TYPE : wpos
-//
-// DESCRIPTION :
-//
+
+
wpos NCTreePad::CurPos() const
{
citem.C = srect.Pos.C;
return citem;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::ShowItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::ShowItem( const NCTableLine * item )
{
if ( !item )
@@ -282,14 +192,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::UpdateFormat
-// METHOD TYPE : wsze
-//
-// DESCRIPTION :
-//
+
+
wsze NCTreePad::UpdateFormat()
{
dirty = true;
@@ -308,14 +212,8 @@
return wsze( visLines(), ItemStyle.TableWidth() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::DoRedraw
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTreePad::DoRedraw()
{
if ( !Destwin() ) {
@@ -345,14 +243,8 @@
return update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::setpos
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCTreePad::setpos( const wpos & newpos )
{
if ( !visLines() ) {
@@ -406,27 +298,15 @@
return update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::updateScrollHint
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCTreePad::updateScrollHint()
{
NCPad::updateScrollHint();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCTreePad::handleInput
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCTreePad::handleInput( wint_t key )
{
bool handled = true;
Modified: trunk/ncurses/src/NCTreePad.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTreePad.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCTreePad.h (original)
+++ trunk/ncurses/src/NCTreePad.h Mon Apr 7 18:37:44 2008
@@ -31,12 +31,7 @@
class NCTableLine;
class NCTableCol;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCTreePad
-//
-// DESCRIPTION :
-//
+
class NCTreePad : public NCPad {
friend std::ostream & operator<<( std::ostream & STREAM, const NCTreePad & OBJ );
@@ -112,6 +107,5 @@
void ShowItem( const NCTableLine * item );
};
-///////////////////////////////////////////////////////////////////
#endif // NCTreePad_h
Modified: trunk/ncurses/src/NCWidget.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCWidget.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCWidget.cc (original)
+++ trunk/ncurses/src/NCWidget.cc Mon Apr 7 18:37:44 2008
@@ -30,14 +30,8 @@
#define DBG_CLASS "_NCWidget_"
//#endif
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::NCWidget
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCWidget::NCWidget( YWidget * parent )
: tnode( this )
, magic( YWIDGET_MAGIC )
@@ -78,14 +72,8 @@
yuiDebug() << "CCC " << this << " parent " << myparent << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::~NCWidget
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCWidget::~NCWidget()
{
yuiDebug() << "DD+ " << this << endl;
@@ -100,73 +88,38 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::PreDisconnect
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::PreDisconnect()
{
grabRelease( 0 );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::PostDisconnect
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::PostDisconnect()
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::PreReparent
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::PreReparent()
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::PostReparent
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::PostReparent()
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::grabFocus
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCWidget::grabFocus()
{
return Top().Value()->wantFocus( *this );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wUpdate
-// METHOD TYPE : void
-//
-// DESCRIPTION : Actualy perform sreen update.
-//
+
+
+// Actualy perform sreen update.
void NCWidget::wUpdate( bool forced_br )
{
if ( !win )
@@ -176,14 +129,9 @@
NCurses::Update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::Update
-// METHOD TYPE : void
-//
-// DESCRIPTION : Redirect Update request to topmost widget
-//
+
+
+// Redirect Update request to topmost widget
void NCWidget::Update()
{
if ( noUpdates )
@@ -195,14 +143,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::ParentWin
-// METHOD TYPE : NCursesWindow *
-//
-// DESCRIPTION :
-//
+
+
NCursesWindow * NCWidget::ParentWin()
{
if ( !Parent() )
@@ -213,14 +155,8 @@
return Parent()->Value()->win;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wMoveChildTo
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wMoveChildTo( NCWidget & child, const wpos & newpos )
{
yuiDebug() << "mc+ " << DLOC << child << " -> " << newpos << " in " << this << endl;
@@ -237,14 +173,8 @@
yuiDebug() << "mc- " << DLOC << child << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wRelocate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wRelocate( const wrect & newrect )
{
yuiDebug() << "rl+ " << this << " -> " << newrect << endl;
@@ -267,14 +197,8 @@
yuiDebug() << "rl- " << this << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wMoveTo
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wMoveTo( const wpos & newpos )
{
if ( !win ) {
@@ -306,14 +230,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wCreate
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wCreate( const wrect & newrect )
{
if ( win )
@@ -381,14 +299,8 @@
yuiDebug() << "cw- " << this << ' ' << inparent << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wDelete
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wDelete()
{
if ( win ) {
@@ -404,14 +316,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::ScreenPos
-// METHOD TYPE : wpos
-//
-// DESCRIPTION :
-//
+
+
wpos NCWidget::ScreenPos() const
{
if ( !win )
@@ -422,14 +328,8 @@
return wsze( win->begy(), win->begx() );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::SetState
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::SetState( const NC::WState newstate, const bool force )
{
if ( newstate != wstate || force ) {
@@ -442,14 +342,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::setEnabled
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::setEnabled( bool do_bv )
{
yuiDebug() << DLOC << this << ' ' << do_bv << ' ' << wstate << endl;
@@ -483,14 +377,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::Redraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::Redraw( const bool sub )
{
if ( !win ) {
@@ -511,26 +399,14 @@
Update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wRedraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wRedraw()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::Recoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::Recoded()
{
if ( !win ) {
@@ -546,27 +422,15 @@
Update();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wRecoded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::wRecoded()
{
wRedraw();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::HasHotkey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCWidget::HasHotkey( int key ) const
{
if ( key < 0 || UCHAR_MAX < key )
@@ -577,13 +441,8 @@
return( tolower( key ) == tolower( hotlabel->hotkey() ) );
}
-///////////////////////////////////////////////////////////////////
-//
-// METHOD NAME : NCWidget::HasFunctionHotkey
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCWidget::HasFunctionHotkey( int key ) const
{
const YWidget * w = dynamic_cast( this );
@@ -602,27 +461,15 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wHandleHotkey
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCWidget::wHandleHotkey( wint_t /*key*/ )
{
return wHandleInput( KEY_HOTKEY );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::wHandleInput
-// METHOD TYPE : NCursesEvent
-//
-// DESCRIPTION :
-//
+
+
NCursesEvent NCWidget::wHandleInput( wint_t /*key*/ )
{
return NCursesEvent::none;
@@ -663,14 +510,8 @@
return STREAM << "( invalid NCWidget)";
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCWidget::DumpOn
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCWidget::DumpOn( ostream & str, string prfx ) const
{
str
Modified: trunk/ncurses/src/NCWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCWidget.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCWidget.h (original)
+++ trunk/ncurses/src/NCWidget.h Mon Apr 7 18:37:44 2008
@@ -32,12 +32,7 @@
#define YWIDGET_MAGIC 42
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCWidget
-//
-// DESCRIPTION :
-//
+
class NCWidget : public tnode, protected NCursesError {
friend std::ostream & operator<<( std::ostream & STREAM, const NCWidget & OBJ );
@@ -170,11 +165,9 @@
void DumpOn( std::ostream & str, string prfx ) const;
};
-///////////////////////////////////////////////////////////////////
#include "NCstring.h"
#include "NCtext.h"
-///////////////////////////////////////////////////////////////////
#endif // NCWidget_h
Modified: trunk/ncurses/src/NCWidgetFactory.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCWidgetFactory.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCWidgetFactory.cc (original)
+++ trunk/ncurses/src/NCWidgetFactory.cc Mon Apr 7 18:37:44 2008
@@ -85,7 +85,7 @@
{
NCLabel * label = new NCLabel( parent, text, isHeading, isOutputField );
YUI_CHECK_NEW( label );
-
+
return label;
}
@@ -122,7 +122,7 @@
// 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 );
@@ -137,7 +137,7 @@
NCComboBox * comboBox = new NCComboBox( parent, label, editable );
YUI_CHECK_NEW( comboBox );
- return comboBox;
+ return comboBox;
}
@@ -148,7 +148,7 @@
NCSelectionBox * selectionBox = new NCSelectionBox( parent, label );
YUI_CHECK_NEW( selectionBox );
- return selectionBox;
+ return selectionBox;
}
@@ -158,7 +158,7 @@
{
NCTree * tree = new NCTree( parent, label );
YUI_CHECK_NEW( tree );
-
+
return tree;
}
@@ -180,7 +180,7 @@
{
NCProgressBar * progressBar = new NCProgressBar( parent, label, maxValue );
YUI_CHECK_NEW( progressBar );
-
+
return progressBar;
}
@@ -233,7 +233,7 @@
{
NCMultiLineEdit * multiLineEdit = new NCMultiLineEdit( parent, label );
YUI_CHECK_NEW( multiLineEdit );
-
+
return multiLineEdit;
}
@@ -267,7 +267,7 @@
{
NCSpacing * spacing = new NCSpacing( parent, dim, stretchable, size );
YUI_CHECK_NEW( spacing );
-
+
return spacing;
}
@@ -298,7 +298,7 @@
{
NCAlignment * alignment = new NCAlignment( parent, horAlignment, vertAlignment );
YUI_CHECK_NEW( alignment );
-
+
return alignment;
}
@@ -319,7 +319,7 @@
{
NCFrame * frame = new NCFrame( parent, label );
YUI_CHECK_NEW( frame );
-
+
return frame;
}
@@ -330,7 +330,7 @@
{
NCCheckBoxFrame * checkBoxFrame = new NCCheckBoxFrame( parent, label, checked );
YUI_CHECK_NEW( checkBoxFrame );
-
+
return checkBoxFrame;
}
@@ -341,7 +341,7 @@
{
NCRadioButtonGroup * radioButtonGroup = new NCRadioButtonGroup( parent );
YUI_CHECK_NEW( radioButtonGroup );
-
+
return radioButtonGroup;
}
@@ -352,7 +352,7 @@
{
NCReplacePoint * replacePoint = new NCReplacePoint( parent );
YUI_CHECK_NEW( replacePoint );
-
+
return replacePoint;
}
@@ -365,14 +365,7 @@
return image;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : createPackageSelector
-// METHOD TYPE : YPackageSelector *
-//
-// DESCRIPTION : Calls NCPackageSelectorPlugin::createPackageSelector
-//
+
YPackageSelector *
NCWidgetFactory::createPackageSelector( YWidget * parent, long modeFlags )
{
@@ -387,26 +380,21 @@
return 0;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : createPkgSpecial
-// METHOD TYPE : YWidget
-// DESCRIPTION : creates special widgets used for the package selection
-// dialog (which do not have a corresponding widget in qt-ui)
-//
+
+// Creates special widgets used for the package selection
+// dialog (which do not have a corresponding widget in qt-ui)
YWidget *
NCWidgetFactory::createPkgSpecial( YWidget * parent, const string & subwidget )
{
YWidget * w = 0;
-
+
NCPackageSelectorPluginStub * plugin = YNCursesUI::ui()->packageSelectorPlugin();
if ( plugin )
{
w = plugin->createPkgSpecial( parent, subwidget );
}
-
+
return w;
}
Modified: trunk/ncurses/src/NCattribute.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCattribute.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCattribute.cc (original)
+++ trunk/ncurses/src/NCattribute.cc Mon Apr 7 18:37:44 2008
@@ -27,14 +27,9 @@
#include "NCattribute.h"
#include "stringutil.h"
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCattribute::_init
-// METHOD TYPE : void
-//
-// DESCRIPTION : BW defaults
-//
+
+
+// BW defaults
void NCattribute::_init()
{
vector<chtype> & attribs( attribset[ATTRDEF] );
@@ -74,11 +69,7 @@
attribset[i] = attribs;
}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCattribute
-//
-///////////////////////////////////////////////////////////////////
+
static short dfg = -1;
static short dbg = -1;
@@ -173,14 +164,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCattrcolor::scanLine
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCattrcolor::scanLine( vector<chtype> & attribs, const string & line )
{
vector<string> field;
@@ -254,14 +239,8 @@
#undef IF
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCattrcolor::scanFile
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCattrcolor::scanFile( vector<chtype> & attribs )
{
#if 0
@@ -285,14 +264,8 @@
return false;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCattrcolor::defInitSet
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCattrcolor::defInitSet( vector<chtype> & attribs, short f, short b )
{
//
@@ -345,14 +318,9 @@
scanLine( attribs, "NCARTcyan CYA WHT" );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCattrcolor::_init
-// METHOD TYPE : void
-//
-// DESCRIPTION : Color defaults
-//
+
+
+// Color defaults
void NCattrcolor::_init()
{
defInitSet( attribset[ATTRDEF], COLOR_BLACK, COLOR_WHITE );
Modified: trunk/ncurses/src/NCattribute.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCattribute.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCattribute.h (original)
+++ trunk/ncurses/src/NCattribute.h Mon Apr 7 18:37:44 2008
@@ -29,12 +29,7 @@
#include "ncursesw.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCattribute
-//
-// DESCRIPTION :
-//
+
class NCattribute {
NCattribute & operator=( const NCattribute & );
@@ -121,14 +116,8 @@
}
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCattrcolor
-//
-// DESCRIPTION :
-//
+
class NCattrcolor : public NCattribute {
protected:
@@ -148,6 +137,5 @@
virtual ~NCattrcolor() {}
};
-///////////////////////////////////////////////////////////////////
#endif // NCattribute_h
Modified: trunk/ncurses/src/NCstring.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstring.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCstring.cc (original)
+++ trunk/ncurses/src/NCstring.cc Mon Apr 7 18:37:44 2008
@@ -26,7 +26,6 @@
#include
#include "NCstring.h"
-//////////////////////////////////////////////////////////////////
// The default encoding is UTF-8. For real terminals this may be
// changed with setConsoleFont().
@@ -34,17 +33,10 @@
string NCstring::termEncoding( "UTF-8" );
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::NCstring
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstring:: NCstring()
: hotk ( 0 )
, hotp ( wstring::npos )
@@ -53,14 +45,8 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::NCstring
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstring::NCstring( const NCstring & nstr )
: hotk ( nstr.hotk )
, hotp ( nstr.hotp )
@@ -68,14 +54,8 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::NCstring
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstring::NCstring( const wstring & widestr )
: hotk ( 0 )
, hotp ( wstring::npos )
@@ -83,14 +63,8 @@
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::NCstring
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstring::NCstring( const string & str )
: hotk ( 0 )
, hotp ( wstring::npos )
@@ -103,14 +77,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::NCstring
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstring::NCstring( const char * cstr )
: hotk ( 0 )
, hotp ( wstring::npos )
@@ -123,27 +91,15 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::operator<<
-// METHOD TYPE : ostream &
-//
-// DESCRIPTION :
-//
+
+
ostream & operator<<( ostream & STREAM, const NCstring & OBJ )
{
return STREAM << OBJ.Str() ;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::operator=
-// METHOD TYPE : NCstring &
-//
-// DESCRIPTION :
-//
+
+
NCstring & NCstring::operator=( const NCstring & nstr )
{
if ( &nstr != this ) {
@@ -154,14 +110,8 @@
return *this;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::operator+=
-// METHOD TYPE : NCstring &
-//
-// DESCRIPTION :
-//
+
+
NCstring & NCstring::operator+=( const NCstring & nstr )
{
wstr.append (nstr.wstr);
@@ -171,14 +121,8 @@
static iconv_t fromwchar_cd = (iconv_t)(-1);
static string to_name = "";
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::RecodeWchar
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCstring::RecodeFromWchar( const wstring & in, const string & to_encoding, string* out)
{
iconv_t cd = (iconv_t)(-1);
@@ -262,14 +206,8 @@
static iconv_t towchar_cd = (iconv_t)(-1);
static string from_name = "";
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::RecodeToWchar
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCstring::RecodeToWchar (const string& in, const string &from_encoding, wstring* out)
{
iconv_t cd = (iconv_t)(-1);
@@ -350,14 +288,8 @@
return true;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::Str
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
string NCstring::Str() const
{
string utf8str;
@@ -366,14 +298,8 @@
return utf8str;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::getHotkey
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCstring::getHotkey( ) const
{
@@ -391,14 +317,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstring::setTerminalEncoding
-// METHOD TYPE : bool
-//
-// DESCRIPTION :
-//
+
+
bool NCstring::setTerminalEncoding( const string & encoding )
{
if ( termEncoding != encoding )
Modified: trunk/ncurses/src/NCstring.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstring.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCstring.h (original)
+++ trunk/ncurses/src/NCstring.h Mon Apr 7 18:37:44 2008
@@ -29,12 +29,7 @@
using namespace std;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCstring
-//
-// DESCRIPTION :
-//
+
class NCstring {
friend std::ostream & operator<<( std::ostream & STREAM, const NCstring & OBJ );
@@ -91,6 +86,5 @@
void getHotkey() const;
};
-///////////////////////////////////////////////////////////////////
#endif // NCstring_h
Modified: trunk/ncurses/src/NCstyle.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstyle.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCstyle.cc (original)
+++ trunk/ncurses/src/NCstyle.cc Mon Apr 7 18:37:44 2008
@@ -37,28 +37,19 @@
int NCattribute::_colors = ::COLORS;
int NCattribute::_pairs = ::COLOR_PAIRS;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCstyle::Style
-//
-///////////////////////////////////////////////////////////////////
+
unsigned NCstyle::Style::sanitycheck() {
return MaxSTglobal;
}
NCattrset NCstyle::Style::attrGlobal( sanitycheck() );
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::Style::initDialog
-// METHOD TYPE : StDialog
-//
-// DESCRIPTION : Initialize subclass StDialog in Style constructor
+
+
+// Initialize subclass StDialog in Style constructor
// (esp. copy constructor). Default copy constructor
// is not appropriate, because StDialog contains
// references to subclass NCattrset.
-//
NCstyle::StDialog NCstyle::Style::initDialog()
{
return StDialog( StBase( attr(DialogTitle),
@@ -138,57 +129,29 @@
);
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::Style::Style
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstyle::Style::Style()
: NCattrset( MaxSTlocal )
, StDialog( initDialog() )
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::Style::Style
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstyle::Style::Style( const Style & rhs )
: NCattrset( rhs )
, StDialog( initDialog() )
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::Style::~Style
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCstyle::Style::~Style()
{}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCstyle
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::dumpName
-// METHOD TYPE : string
-//
-// DESCRIPTION :
-//
+
+
+
+
#define PRT(t) case NCstyle::t: return #t;
string NCstyle::dumpName( NCstyle::StyleSet a ) {
@@ -292,14 +255,8 @@
}
#undef PRT
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::NCstyle
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCstyle::NCstyle( string term_t )
: styleName( "linux" )
, term ( term_t )
@@ -339,26 +296,14 @@
else NCstyleInit_linux( styleSet );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::~NCstyle
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCstyle::~NCstyle()
{
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::nextSyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCstyle::nextStyle()
{
if (!NCattribute::colors() ) return;
@@ -385,27 +330,15 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::changeSyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCstyle::changeSyle()
{
NCDefineStyle( *this );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCstyle::fakestyle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCstyle::fakestyle( StyleSet f )
{
fakestyle_e = f;
Modified: trunk/ncurses/src/NCstyle.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstyle.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCstyle.h (original)
+++ trunk/ncurses/src/NCstyle.h Mon Apr 7 18:37:44 2008
@@ -29,12 +29,7 @@
#include "NCtypes.h"
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCattribute
-//
-// DESCRIPTION :
-//
+
struct NCattribute {
//
// available colors and color pairs
@@ -120,14 +115,8 @@
}
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCattrset
-//
-// DESCRIPTION :
-//
+
class NCattrset {
private:
@@ -170,14 +159,8 @@
void setBg( unsigned a, short c ) { NCattribute::setBg( attr[a], c ); }
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCstyle
-//
-// DESCRIPTION :
-//
+
class NCstyle {
friend class NCStyleDef;
@@ -511,6 +494,5 @@
static string dumpName( STlocal a );
};
-///////////////////////////////////////////////////////////////////
#endif // NCstyle_h
Modified: trunk/ncurses/src/NCtext.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCtext.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCtext.cc (original)
+++ trunk/ncurses/src/NCtext.cc Mon Apr 7 18:37:44 2008
@@ -25,57 +25,31 @@
#include // wcwidth
#include
-///////////////////////////////////////////////////////////////////
const NCstring NCtext::emptyStr;
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::NCtext
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCtext::NCtext( const NCstring & nstr )
{
lset( nstr );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::NCtext
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCtext::NCtext( const NCstring & nstr, size_t columns )
{
lbrset( nstr, columns );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::~NCtext
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCtext::~NCtext()
{}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::lset
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCtext::lset( const NCstring & ntext )
{
// FIXME: rewrite this function so one understands it
@@ -111,14 +85,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::lbrset
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCtext::lbrset( const NCstring & ntext, size_t columns )
{
mtext.clear();
@@ -161,40 +129,22 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::Lines
-// METHOD TYPE : unsigned
-//
-// DESCRIPTION :
-//
+
+
unsigned NCtext::Lines() const
{
return mtext.size();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::append
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCtext::append( const NCstring &line )
{
mtext.push_back( line );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::Columns
-// METHOD TYPE : unsigned
-//
-// DESCRIPTION :
-//
+
+
size_t NCtext::Columns() const
{
size_t llen = 0; // longest line
@@ -217,14 +167,8 @@
return llen;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCtext::operator[]
-// METHOD TYPE : const NCstring &
-//
-// DESCRIPTION :
-//
+
+
const NCstring & NCtext::operator[]( wstring::size_type idx ) const
{
if ( idx >= Lines() )
@@ -248,20 +192,10 @@
return STREAM << "[Text:" << OBJ.Lines() << ',' << OBJ.Columns() << ']';
}
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NClabel
-//
-///////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NClabel::stripHotkey
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
+
+
void NClabel::stripHotkey()
{
hotline = wstring::npos;
@@ -275,14 +209,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NClabel::drawAt
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NClabel::drawAt( NCursesWindow & w, chtype style, chtype hotstyle,
const wrect & dim,
const NC::ADJUST adjust,
Modified: trunk/ncurses/src/NCtext.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCtext.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCtext.h (original)
+++ trunk/ncurses/src/NCtext.h Mon Apr 7 18:37:44 2008
@@ -28,12 +28,7 @@
#include "NCWidget.h"
class NCursesWindow;
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCtext
-//
-// DESCRIPTION :
-//
+
class NCtext {
friend std::ostream & operator<<( std::ostream & STREAM, const NCtext & OBJ );
@@ -73,14 +68,8 @@
const_iterator end() const { return mtext.end(); }
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NClabel
-//
-// DESCRIPTION :
-//
+
class NClabel : protected NCtext {
friend std::ostream & operator<<( std::ostream & STREAM, const NClabel & OBJ );
@@ -172,6 +161,5 @@
std::wstring::size_type hotpos() const { return hasHotkey() ? operator[]( hotline ).hotpos() : wstring::npos; }
};
-///////////////////////////////////////////////////////////////////
#endif // NCtext_h
Modified: trunk/ncurses/src/NCurses.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCurses.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCurses.cc (original)
+++ trunk/ncurses/src/NCurses.cc Mon Apr 7 18:37:44 2008
@@ -57,14 +57,8 @@
const NCursesEvent NCursesEvent::ValueChanged ( NCursesEvent::button, YEvent::ValueChanged );
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCursesError::NCursesError
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
#define CONVERR(n,p) \
va_list ap; \
va_list ap1; \
@@ -140,14 +134,8 @@
return STREAM << "Ev::unknown";
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::NCurses
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
+
+
NCurses::NCurses()
: theTerm ( 0 )
, title_w ( 0 )
@@ -160,14 +148,8 @@
envTerm = term;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::~NCurses
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
+
+
NCurses::~NCurses()
{
yuiMilestone() << "Shutdown NCurses..." << endl;
@@ -187,14 +169,8 @@
yuiMilestone() << "NCurses down" << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::init
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
WINDOW * NCurses::ripped_w_top = 0;
WINDOW * NCurses::ripped_w_bottom = 0;
@@ -323,14 +299,8 @@
yuiMilestone() << "NCurses ready" << endl;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::setup_screen
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::setup_screen()
{
::cbreak();
@@ -345,14 +315,8 @@
::define_key( "\030\t", KEY_BTAB );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::init_title
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::init_title()
{
::wbkgd( title_w, style()(NCstyle::AppTitle) );
@@ -361,14 +325,8 @@
::wnoutrefresh( status_w );
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::init_screen
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::init_screen()
{
bool redefine = false;
@@ -431,27 +389,15 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::style
-// METHOD TYPE : const NCstyle &
-//
-// DESCRIPTION :
-//
+
+
const NCstyle & NCurses::style()
{
return *myself->styleset;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::Update
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::Update()
{
if ( myself && myself->initialized() ) {
@@ -460,14 +406,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::Refresh
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::Refresh()
{
if ( myself && myself->initialized() ) {
@@ -480,14 +420,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::Redraw
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::Redraw()
{
if ( myself && myself->initialized() ) {
@@ -509,14 +443,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::SetTitle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::SetTitle( const string & str )
{
if ( myself && myself->title_w ) {
@@ -580,14 +508,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::drawTitle
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::drawTitle()
{
if ( myself && myself->title_w ) {
@@ -595,12 +517,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::RememberDlg
-// METHOD TYPE : void
-//
+
+
void NCurses::RememberDlg( NCDialog * dlg_r )
{
if ( dlg_r ) {
@@ -608,12 +526,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::ForgetDlg
-// METHOD TYPE : void
-//
+
+
void NCurses::ForgetDlg( NCDialog * dlg_r )
{
if ( dlg_r ) {
@@ -621,12 +535,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::RedirectToLog
-// METHOD TYPE : void
-//
+
+
void NCurses::RedirectToLog()
{
string log = "/dev/null"; // this used to be get_log_filename()
@@ -646,14 +556,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::ResizeEvent
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::ResizeEvent()
{
if ( myself && myself->initialized() ) {
@@ -699,14 +603,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCurses::ScreenShot
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void NCurses::ScreenShot( const string & name )
{
if ( !myself )
Modified: trunk/ncurses/src/NCurses.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCurses.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/NCurses.h (original)
+++ trunk/ncurses/src/NCurses.h Mon Apr 7 18:37:44 2008
@@ -41,7 +41,6 @@
class NCWidget;
class NCDialog;
-///////////////////////////////////////////////////////////////////
class NCursesError {
@@ -63,9 +62,7 @@
extern std::ostream & operator<<( std::ostream & STREAM, const NCursesError & OBJ );
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
class NCursesEvent {
@@ -128,14 +125,8 @@
extern std::ostream & operator<<( std::ostream & STREAM, const NCursesEvent & OBJ );
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCurses
-//
-// DESCRIPTION :
-//
+
class NCurses {
friend std::ostream & operator<<( std::ostream & STREAM, const NCurses & OBJ );
@@ -211,7 +202,6 @@
static set _knownDlgs;
};
-///////////////////////////////////////////////////////////////////
#define CTRL(x) ((x) & 0x1f)
#define KEY_TAB 011
@@ -220,6 +210,5 @@
#define KEY_SPACE 040
#define KEY_HOTKEY KEY_MAX+1
-///////////////////////////////////////////////////////////////////
#endif // NCurses_h
Modified: trunk/ncurses/src/YNCursesUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/YNCursesUI.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/YNCursesUI.cc (original)
+++ trunk/ncurses/src/YNCursesUI.cc Mon Apr 7 18:37:44 2008
@@ -134,14 +134,8 @@
return app;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : YNCursesUI::idleLoop
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
+
+
void YNCursesUI::idleLoop( int fd_ycp )
{
@@ -182,28 +176,18 @@
} while ( !FD_ISSET( fd_ycp, &fdset ) );
}
-///////////////////////////////////////////////////////////////////
#define ONCREATE yuiDebug() << endl
//#define ONCREATE
-///////////////////////////////////////////////////////////////////
-//
// package selection
-//
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : YNCursesUI::packageSelectorPlugin()
-// METHOD TYPE : NCPackageSelectorPlugin
-//
-// DESCRIPTION : Create the package selector plugin
-//
+
+
+// Create the package selector plugin
NCPackageSelectorPluginStub * YNCursesUI::packageSelectorPlugin()
{
static NCPackageSelectorPluginStub * plugin = 0;
@@ -222,15 +206,10 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : YNCursesUI::runPkgSelection
-// METHOD TYPE : YEvent *
-//
-// DESCRIPTION : Implementation of UI builtin RunPkgSelection() which
+
+
+// Implementation of UI builtin RunPkgSelection() which
// has to be called after OpenDialog( `PackageSelector() ).
-//
YEvent * YNCursesUI::runPkgSelection( YWidget * selector )
{
YEvent * event = 0;
@@ -340,14 +319,9 @@
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : YNCursesUI::setConsoleFont
-//
-// DESCRIPTION : UI::setConsoleFont() is called in Console.ycp.
+
+// UI::setConsoleFont() is called in Console.ycp.
// The terminal encoding must be set correctly.
-//
/**
* This doesn't belong here, but it is so utterly entangled with member
* variables that are not exported at all (sic!) that it's not really feasible
Modified: trunk/ncurses/src/ncursesp.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/ncursesp.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/ncursesp.cc (original)
+++ trunk/ncurses/src/ncursesp.cc Mon Apr 7 18:37:44 2008
@@ -145,12 +145,8 @@
}
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCursesPanel::transparent
-// METHOD TYPE : int
-//
+
+
int NCursesPanel::transparent( int y, int x )
{
if ( hidden()
Modified: trunk/ncurses/src/ncursesw.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/ncursesw.cc?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/ncursesw.cc (original)
+++ trunk/ncurses/src/ncursesw.cc Mon Apr 7 18:37:44 2008
@@ -457,7 +457,6 @@
// ---------------------------------------------------------------------
// Color stuff
-//
int NCursesWindow::colorInitialized = COLORS_NOT_INITIALIZED;
void
@@ -563,14 +562,8 @@
alloced = TRUE;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCursesWindow::box
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCursesWindow::box( const wrect & dim )
{
wrect box_area ( dim.intersectRelTo( area() ) );
@@ -589,14 +582,9 @@
return OK;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCursesWindow::mvsubwin
-// METHOD TYPE : int
-//
-// DESCRIPTION : move subwin tree inside parent
-//
+
+
+// move subwin tree inside parent
int NCursesWindow::mvsubwin( NCursesWindow * sub, int begin_y, int begin_x )
{
int ret = ERR;
@@ -611,14 +599,8 @@
return ret;
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCursesWindow::resize
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
+
+
int NCursesWindow::resize( int lines, int columns )
{
if ( lines <= 0 )
Modified: trunk/ncurses/src/position.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/position.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/position.h (original)
+++ trunk/ncurses/src/position.h Mon Apr 7 18:37:44 2008
@@ -22,10 +22,7 @@
#include <iosfwd>
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : wpair
-//
+
class wpair {
friend std::ostream & operator<<( std::ostream & STREAM, const wpair & OBJ );
@@ -82,14 +79,9 @@
};
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : wpos
-//
-// DESCRIPTION : screen position in (line,col)
-//
+
+// screen position in (line,col)
class wpos : public wpair {
public:
@@ -120,14 +112,9 @@
extern std::ostream & operator<<( std::ostream & STREAM, const wpos & OBJ );
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : wsze
-//
-// DESCRIPTION : screen dimension in (height,width)
-//
+
+// screen dimension in (height,width)
class wsze : public wpair {
public:
@@ -156,14 +143,9 @@
extern std::ostream & operator<<( std::ostream & STREAM, const wsze & OBJ );
-///////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : wrect
-//
-// DESCRIPTION : rectangle {wpos,wsze}
-//
+
+// rectangle {wpos,wsze}
class wrect {
public:
@@ -228,6 +210,5 @@
extern std::ostream & operator<<( std::ostream & STREAM, const wrect & OBJ );
-///////////////////////////////////////////////////////////////////
#endif // wpair_h
Modified: trunk/ncurses/src/tnode.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/tnode.h?rev=46197&r1=46196&r2=46197&view=diff
==============================================================================
--- trunk/ncurses/src/tnode.h (original)
+++ trunk/ncurses/src/tnode.h Mon Apr 7 18:37:44 2008
@@ -21,12 +21,7 @@
#include <iosfwd>
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : tnode
-//
-// DESCRIPTION :
-//
+
template <class n_value>
class tnode {
@@ -279,6 +274,5 @@
};
-///////////////////////////////////////////////////////////////////
#endif // tnode_h
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org