Permalink
Browse files

fix typos in comments

  • Loading branch information...
mlandres committed Jun 27, 2012
1 parent 10a77b2 commit 3d0cb77fbeb031cadc6d8e8d240baa7f75391c42
View
@@ -97,7 +97,7 @@ void NCAskForExistingDirectory::createLayout( const std::string & iniDir,
tableHeader->addColumn( " ", YAlignBegin );
tableHeader->addColumn( _( "Directory Name" ), YAlignBegin );
// add the std::list of directories
// add the list of directories
dirList = new NCDirectoryTable( split,
tableHeader,
NCFileTable::T_Overview,
@@ -203,7 +203,7 @@ bool NCAskForExistingDirectory::postAgain( )
if ( postevent.reason == YEvent::Activated )
{
// fill the directory std::list
// fill the directory list
dirList->fillList();
}
}
View
@@ -49,7 +49,7 @@ class NCAskForExistingDirectory : public NCPopup
NCPushButton * okButton;
NCPushButton * cancelButton;
NCComboBox * dirName;
NCDirectoryTable *dirList; // directory std::list
NCDirectoryTable *dirList; // directory list
NCCheckBox *detailed;
bool getCheckBoxValue( NCCheckBox * detailed );
View
@@ -142,7 +142,7 @@ void NCAskForFile::createLayout( const std::string & iniDir,
dirHeader->addColumn( " " );
dirHeader->addColumn( _( "Directory name" ) );
// add the std::list of directories
// add the list of directories
dirList = new NCDirectoryTable( hSplit1,
dirHeader,
NCFileSelection::T_Overview,
@@ -154,7 +154,7 @@ void NCAskForFile::createLayout( const std::string & iniDir,
fileHeader->addColumn( " " );
fileHeader->addColumn( _( "File name" ) );
// add the std::list of files
// add the list of files
fileList = new NCFileTable( hSplit1,
fileHeader,
NCFileSelection::T_Overview,
@@ -262,7 +262,7 @@ NCursesEvent NCAskForFile::wHandleInput( wint_t ch )
void NCAskForFile::updateFileList()
{
// std::set new start dir and show the file std::list
// set new start dir and show the file list
fileList->setStartDir( dirList->getCurrentDir() );
fileList->fillList( );
@@ -307,7 +307,7 @@ bool NCAskForFile::postAgain( )
if ( postevent.reason == YEvent::Activated )
{
// fill directory and file std::list
// fill directory and file list
dirList->fillList();
updateFileList();
}
View
@@ -51,7 +51,7 @@ class NCAskForFile : public NCPopup
NCPushButton * okButton;
NCPushButton * cancelButton;
NCComboBox * dirName; // the selected directory
NCDirectoryTable *dirList; // the directory std::list
NCDirectoryTable *dirList; // the directory list
NCCheckBox *detailed; // the 'Details' checkbox
bool getCheckBoxValue( NCCheckBox * detailed );
@@ -60,7 +60,7 @@ class NCAskForFile : public NCPopup
protected:
NCFileTable *fileList; // the file std::list
NCFileTable *fileList; // the file list
NCInputField *fileName;
virtual bool postAgain();
View
@@ -111,7 +111,7 @@ void NCCheckBoxFrame::setEnabled( bool do_bv )
if ( c->Value()->GetState() != NC::WSdumb )
{
c->Value()->setEnabled( do_bv );
// explicitely std::set the state (needed for first run - bug #268352)
// explicitely set the state (needed for first run - bug #268352)
c->Value()->SetState( do_bv ? NC::WSnormal : NC::WSdisabeled, true );
}
}
View
@@ -226,7 +226,7 @@ void NCComboBox::setText( const std::string & ntext )
fldstart = 0;
curpos = mayedit ? buffer.length() : 0;
// (Maybe) no need to std::set default size here, it has been
// (Maybe) no need to set default size here, it has been
// alread calculated as the items were added (see addItem() above)
// setDefsze();
View
@@ -81,7 +81,7 @@ NCDialog::NCDialog( YDialogType dialogType, const wpos at, const bool boxed )
void NCDialog::_init()
{
NCurses::RememberDlg( this );
// don't std::set text domain to ncurses - other text domains won't work (bnc #476245)
// don't set text domain to ncurses - other text domains won't work (bnc #476245)
// setTextdomain( "ncurses" );
_init_size();
wstate = NC::WSdumb;
View
@@ -207,7 +207,7 @@ void NCDumbTab::selectItem( YItem * item, bool selected )
void NCDumbTab::shortcutChanged()
{
// Any of the items might have its keyboard shortcut changed, but we don't
// know which one. So let's simply std::set all tab labels again.
// know which one. So let's simply set all tab labels again.
wRedraw();
}
View
@@ -63,7 +63,7 @@ NCFileInfo::NCFileInfo( std::string fileName,
_realName = tmpName;
}
_tag = " @"; // std::set tag
_tag = " @"; // set tag
}
else if ( S_ISREG( _mode )
&& ( _mode & S_IXUSR ) )
@@ -580,7 +580,7 @@ bool NCFileTable::fillList()
}
}
// sort the std::list and fill the table widget with file entries
// sort the list and fill the table widget with file entries
tmpList.sort( );
it = tmpList.begin();
@@ -613,11 +613,11 @@ bool NCFileTable::fillList()
++it;
}
drawList(); // draw the std::list
drawList(); // draw the list
if ( getNumLines() > 0 )
{
setCurrentItem( 0 ); // std::set focus to the first std::list entry
setCurrentItem( 0 ); // set focus to the first list entry
currentFile = getCurrentLine();
}
else
@@ -721,7 +721,7 @@ bool NCDirectoryTable::fillList()
}
}
// sort the std::list and fill the table widget with directory entries
// sort the list and fill the table widget with directory entries
tmpList.sort( );
it = tmpList.begin();
@@ -755,11 +755,11 @@ bool NCDirectoryTable::fillList()
++it;
}
drawList(); // draw the std::list
startDir = currentDir; // std::set start directory
drawList(); // draw the list
startDir = currentDir; // set start directory
if ( getNumLines() > 0 )
setCurrentItem( 0 ); // std::set focus to the first std::list entry
setCurrentItem( 0 ); // set focus to the first list entry
closedir( diskDir );
}
@@ -97,7 +97,7 @@ void NCMultiSelectionBox::addItem( YItem * item )
YMultiSelectionBox::addItem( item );
Items[0] = new NCTableTag( item, item->selected() );
// Do not std::set style to NCTableCol::PLAIN here, otherwise the current
// Do not set style to NCTableCol::PLAIN here, otherwise the current
//item will not be highlighted if the cursor is not over the widget
Items[1] = new NCTableCol( item->label() );
View
@@ -83,7 +83,7 @@ class NCScrollHint : protected NCSchrollCB
public:
// std::set redirect
// set redirect
void SendSchrollCB( NCSchrollCB * to ) { redirect = ( to ? to : this ); }
virtual void SendHead() {}
View
@@ -194,7 +194,7 @@ bool NCPopupInfo::postAgain()
postevent = NCursesEvent::cancel;
}
// else - nothing to do (postevent is already std::set)
// else - nothing to do (postevent is already set)
}
if ( postevent == NCursesEvent::button || postevent == NCursesEvent::cancel )
View
@@ -89,15 +89,15 @@ const std::wstring NCRichText::entityLookup( const std::wstring & val_r )
if ( it != _charentity.end() )
{
//known entity - already in the std::map
//known entity - already in the map
return it->second;
}
else
{
if ( !ascii.empty() )
{
//replace ascii code by character - e.g. #42 -> '*'
//and insert into std::map to remember it
//and insert into map to remember it
REP( val_r, ascii );
}
}
@@ -417,7 +417,7 @@ void NCRichText::AdjustPrePad( const wchar_t *osch )
size_t llen = 0; // longest line
size_t tmp_len = 0; // width of current line
std::list<NCstring>::const_iterator line; // iterator for std::list <NCstring> mtext
std::list<NCstring>::const_iterator line; // iterator for list <NCstring> mtext
std::wstring::const_iterator wstr_it; // iterator for std::wstring
do
@@ -950,7 +950,7 @@ bool NCRichText::PadTOKEN( const wchar_t * sch, const wchar_t *& ech )
case T_LEVEL:
PadChangeLevel( endtag, leveltag );
PadBOL();
// add new line after end of the std::list
// add new line after end of the list
// (only at the very end)
if ( endtag && !cindent )
PadNL();
@@ -1016,7 +1016,7 @@ bool NCRichText::PadTOKEN( const wchar_t * sch, const wchar_t *& ech )
tag = buf;
}
// outsent std::list tag:
// outsent list tag:
cc = ( tag.size() < cc ? cc - tag.size() : 0 );
myPad()->move( cl, cc );
View
@@ -68,7 +68,7 @@ class NCStyleDef
static void showex( ExMode mode );
// Advise NCstyle to fake attributes, i.e. always return the std::set we currently process
// Advise NCstyle to fake attributes, i.e. always return the set we currently process
static void fakestyle( NCstyle::StyleSet style )
{
NCStyleDef_p->NCstyle_C.fakestyle( style );
View
@@ -48,7 +48,7 @@ NCTable::NCTable( YWidget * parent, YTableHeader *tableHeader, bool multiSelecti
{
if ( hasColumn( col ) )
{
// std::set alignment first
// set alignment first
setAlignment( col, alignment( col ) );
// and then append header
_header[ col ] += NCstring( tableHeader->header( col ) ) ;
@@ -63,7 +63,7 @@ NCTable::NCTable( YWidget * parent, YTableHeader *tableHeader, bool multiSelecti
{
if ( hasColumn( col-1 ) )
{
// std::set alignment first
// set alignment first
setAlignment( col, alignment( col-1 ) );
// and then append header
_header[ col ] += NCstring( tableHeader->header( col-1 ) ) ;
@@ -198,7 +198,7 @@ void NCTable::addItem( YItem *yitem)
// Append item (as pointed to by 'yitem') to a table.
// This creates visual representation of new table line
// consisting of individual cells. Depending on the 2nd
// param, table is redrawn. If 'allAtOnce' is std::set to
// param, table is redrawn. If 'allAtOnce' is set to
// true, it is up to the caller to redraw the table.
void NCTable::addItem( YItem *yitem, bool allAtOnce )
{
@@ -456,7 +456,7 @@ bool NCTable::setItemByKey( int key )
// Create new NCTablePad, std::set its background
// Create new NCTablePad, set its background
NCPad * NCTable::CreatePad()
{
wsze psze( defPadSze() );
@@ -499,8 +499,8 @@ NCursesEvent NCTable::wHandleInput( wint_t key )
col.erase( 0, 1 );
YMenuItem *item = new YMenuItem( col ) ;
//need to std::set index explicitly, MenuItem inherits from TreeItem
//and these don't have indexes std::set
//need to set index explicitly, MenuItem inherits from TreeItem
//and these don't have indexes set
item->setIndex( i );
ic.push_back( item );
}
View
@@ -344,7 +344,7 @@ bool NCTablePad::setItemByKey( int key )
//
// setOrder() sorts the table according to given column by calling
// the sort startegy. Sorting in reverse order is only done
// if 'do_reverse' is std::set to 'true'.
// if 'do_reverse' is set to 'true'.
//
void NCTablePad::setOrder( int col, bool do_reverse )
{
View
@@ -479,7 +479,7 @@ NCPad * NCTree::CreatePad()
// (called recursively for each child of an item)
void NCTree::CreateTreeLines( NCTreeLine * parentLine, NCTreePad * pad, YItem * item )
{
//std::set item index explicitely, it is std::set to -1 by default
//set item index explicitely, it is set to -1 by default
//which makes selecting items painful
item->setIndex( idx++ );
View
@@ -167,7 +167,7 @@ bool NCstring::RecodeFromWchar( const std::wstring & in, const std::string & to_
}
}
cd = fromwchar_cd; // std::set iconv handle
cd = fromwchar_cd; // set iconv handle
size_t in_len = in.length() * sizeof( std::wstring::value_type ); // number of in bytes
char* in_ptr = ( char * )in.data();
@@ -259,7 +259,7 @@ bool NCstring::RecodeToWchar( const std::string& in, const std::string &from_enc
}
}
cd = towchar_cd; // std::set iconv handle
cd = towchar_cd; // set iconv handle
size_t in_len = in.length(); // number of bytes of input std::string
char* in_ptr = const_cast <char*>( in.c_str() );
@@ -285,7 +285,7 @@ bool NCstring::RecodeToWchar( const std::string& in, const std::string &from_enc
{
// EILSEQ 84 Illegal byte sequence.
// EINVAL 22 Invalid argument
// E2BIG 7 Argument std::list too long
// E2BIG 7 Argument list too long
yuiError() << "ERROR iconv: " << errno << std::endl;
complained = true;
}
View
@@ -86,7 +86,7 @@ inline void NCstyleInit_rxvt( std::vector<NCstyle::Style> & styleSet )
attrset->setAttr( NCstyle::ListActiveSelData, 7936 | A_BOLD );
attrset->setAttr( NCstyle::ListActiveSelHint, 6144 | A_BOLD );
attrset->setAttr( NCstyle::RichTextPlain, 1792 );
//Need to std::set foreground color explicitely, otherwise urxvt will display
//Need to set foreground color explicitely, otherwise urxvt will display
//black font on black background. This solution sucks, but cannot find
//any better (#336060)
attrset->setFg( NCstyle::RichTextPlain, 7 );
View
@@ -176,7 +176,7 @@ size_t NCtext::Columns() const
size_t llen = 0; // longest line
size_t tmp_len = 0; // width of current line
const_iterator line; // iterator for std::list <NCstring> mtext
const_iterator line; // iterator for list <NCstring> mtext
std::wstring::const_iterator wstr_it; // iterator for std::wstring
for ( line = mtext.begin(); line != mtext.end(); ++line )
View
@@ -362,7 +362,7 @@ void NCurses::init_screen()
// The 9.0 workaround for missing ACS chars (bug #30512) is not necessary
// any longer (a patch is provided for ncurses-5.4).
// Redefine ACS chars if Y2NCPSEUDO is std::set to "1" (just in case of ...)
// Redefine ACS chars if Y2NCPSEUDO is set to "1" (just in case of ...)
if ( value != NULL && strcmp( value, "1" ) == 0 )
{
Oops, something went wrong.

0 comments on commit 3d0cb77

Please sign in to comment.