void TInputLine::write( opstream& os ) { TView::write( os ); os << maxLen << curPos << firstPos << selStart << selEnd; os.writeString( data); }
void TProgressBar::write( opstream& os ) { TView::write( os ); os.writeString( bar ); os << backChar << total << progress << dispLen << curPercent << curWidth << numOffset << charValue; }
void TWindow::write( opstream& os ) { TGroup::write( os ); os << flags << zoomRect << number << palette; os << frame; os.writeString( title ); }
void TCalcDisplay::write( opstream& os ) { TView::write( os ); os.writeBytes(&status, sizeof(status)); os.writeString(number); os.writeByte(sign); os.writeByte(operate); os.writeBytes(&operand, sizeof(operand)); }
void tvFormStaticText::write( opstream& os ) { tvFormObj::write( os ); tvFormText::write( os ); os << (int)0x0100; os.writeString( text ); }
void TMenuView::writeMenu( opstream& os, TMenu *menu ) { uchar tok = 0xFF; for( TMenuItem *item = menu->items; item != 0; item = item->next ) { os << tok; os.writeString( item->name ); os << item->command << (int)(item->disabled) << item->keyCode << item->helpCtx; if( item->name != 0 ) { if( item->command == 0 ) writeMenu( os, item->subMenu ); else os.writeString( item->param ); } } tok = 0; os << tok; }
void TStatusLine::writeItems( opstream& os, TStatusItem *ts ) { int count = 0; for( TStatusItem *t = ts; t != 0; t = t->next ) count++; os << count; for( ; ts != 0; ts = ts->next ) { os.writeString( ts->text ); os << ts->keyCode << ts->command; } }
void THiddenConstField::write( opstream& os ) { os << stringLength; os << necessary; os.writeBytes( &devOptions, sizeof( devOptions ) ); os << infoLevel; if( infoLevel > 0 ) os << infoIndex; os.writeString( text ); }
void TOutline::writeNode(TNode *node, opstream &op) { uchar more = (node->next != 0) ? 1 : 0; uchar expand = (node->expanded) ? 1 : 0; op << more; op << expand; op << getNumChildren(node); op.writeString(node->text); if (node->childList != 0) writeNode(node->childList, op); if (node->next != 0) writeNode(node->next, op); }
void TStaticText::write( opstream& os ) { TView::write( os ); os.writeString( text ); }
void DynamicText::write( opstream& os ) { TView::write( os ); os.writeString( text ); os << (int)rightJustify; }
void TDirCollection::writeItem( void *obj, opstream& os ) { TDirEntry *item = (TDirEntry *)obj; os.writeString( item->text() ); os.writeString( item->dir() ); }
void TFileViewer::write(opstream& os) { TScroller::write(os); os.writeString(fileName); }
void TFileEditor::write( opstream& os ) { TEditor::write( os ); os.writeString( fileName ); os << selStart << selEnd << curPtr; }
void TButton::write( opstream& os ) { TView::write( os ); os.writeString( title ); os << command << flags << (int)amDefault; }
void TStringCollection::writeItem( void *obj, opstream& os ) { os.writeString( (const char *)obj ); }