kwrite-part (Roberto Raggi)

Roland Krause rokrau at yahoo.com
Thu Feb 7 19:55:05 UTC 2002


Harry, 
would you have time to apply this, I promised Roberto to do this on IRC
but I dont have the time and a current gideon version. 

Roland


> ATTACHMENT part 3.3 message/rfc822 
> From: Roberto Raggi <raggi at cli.di.unipi.it>
> To: kdevelop-devel at kdevelop.org
> Subject: kwrite-part 
> Date: Thu, 7 Feb 2002 01:58:35 +0100
> Reply-to: kdevelop-devel at kdevelop.org
> 
> hi!
> this is a small patch that allows to compile kwrite part..
> 
> ciao robe> ? kwrite-part.patch
> Index: edit_iface_impl.cpp
> ===================================================================
> RCS file: /home/kde/kdevelop/parts/kwrite-part/edit_iface_impl.cpp,v
> retrieving revision 1.10
> diff -r1.10 edit_iface_impl.cpp
> 26,28c26,31
> <   m_edit->document()->setText(text);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> >     if( doc ){
> >         doc->setText(text);
> >         doc->setModified(true);
> >         doc->updateViews();
> >     }
> 34,36c37,42
> <   m_edit->document()->insertLine(text);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> >     if( doc ){
> >         doc->insertLine(text);
> >         doc->setModified(true);
> >         doc->updateViews();
> >     }
> 42,45c48,54
> <   m_edit->document()->insertLine(text, line);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> <   return true;
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> >     if( doc ){
> >         doc->insertLine(text, line);
> >         doc->setModified(true);
> >         doc->updateViews();
> >     }
> >     return true;
> 51,54c60,66
> <   m_edit->document()->insertAt(text, line, col);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> <   return true;
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> >     if( doc ){
> >         doc->insertAt(text, line, col);
> >         doc->setModified(true);
> >         doc->updateViews();
> >     }
> >     return true;
> 60,63c72,78
> <   m_edit->document()->removeLine(line);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> <   return true;
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> >     if( doc ){
> >         doc->removeLine(line);
> >         doc->setModified(true);
> >         doc->updateViews();
> >     }
> >     return true;
> 68a84,85
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> > 
> 70c87
> <     QString lineStr = m_edit->document()->textLine(line);
> ---
> >     QString lineStr = doc->textLine(line);
> 72,74c89,91
> <     spaces.fill(' ',((KWriteDoc*)m_edit->document())->tabWidth());
> <     return lineStr.replace(QRegExp("\t"),spaces);		 
> <     
> ---
> >     spaces.fill(' ', doc->tabWidth());
> >     return lineStr.replace(QRegExp("\t"),spaces);
> > 
> 77c94
> <     return m_edit->document()->textLine(line);
> ---
> >     return doc->textLine(line);
> 84c101,103
> <   if (line >= m_edit->document()->numLines())
> ---
> >     KWriteDoc* doc = dynamic_cast<KWriteDoc*>( m_edit->document()
> );
> > 
> >   if (line >= doc->numLines())
> 87,90c106,109
> <   m_edit->document()->removeLine(line);
> <   m_edit->document()->insertLine(text, line);
> <   m_edit->document()->setModified(true);
> <   ((KWriteDoc*)m_edit->document())->updateViews();
> ---
> >   doc->removeLine(line);
> >   doc->insertLine(text, line);
> >   doc->setModified(true);
> >   doc->updateViews();
> 



__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com




More information about the KDevelop-devel mailing list