@ -22,13 +22,13 @@
# include <tqmessagebox.h>
# include <kmessagebox.h>
# include < tq layout.h>
# include < layout.h>
# include <kfiledialog.h>
CodeEditor : : CodeEditor ( TQWidget * parent , const char * name )
: TQWidget ( parent , name )
{
TQVBoxLayout * tq layout = new TQVBoxLayout ( this ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this ) ;
KLibFactory * factory = KLibLoader : : self ( ) - > factory ( " libkatepart " ) ;
m_doc = ( Kate : : Document * ) factory - > create ( 0L , " kate " , " KTextEditor::Document " ) ;
@ -37,7 +37,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
connect ( m_view , TQT_SIGNAL ( cursorPositionChanged ( ) ) , this , TQT_SLOT ( slotCursorPositionChanged ( ) ) ) ;
tq layout- > addWidget ( m_view ) ;
layout- > addWidget ( m_view ) ;
m_exeLine = 0 ;
m_filename = " " ;
@ -56,7 +56,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
m_statusBar = new KStatusBar ( this ) ;
tq layout- > addWidget ( m_statusBar ) ;
layout- > addWidget ( m_statusBar ) ;
m_statusBar - > insertItem ( " " , 0 , 0 , true ) ;
slotCursorPositionChanged ( ) ;
@ -74,7 +74,7 @@ void CodeEditor::slotCursorPositionChanged()
{
unsigned int line , column ;
m_view - > cursorPosition ( & line , & column ) ;
m_statusBar - > changeItem ( TQString ( " Line: %1 Col: %2 " ) . tq arg( TQString : : number ( line + 1 ) ) . tq arg( TQString : : number ( column + 1 ) ) , 0 ) ;
m_statusBar - > changeItem ( TQString ( " Line: %1 Col: %2 " ) . arg( TQString : : number ( line + 1 ) ) . arg( TQString : : number ( column + 1 ) ) , 0 ) ;
}
void CodeEditor : : slotToggleBreakpoint ( )
@ -250,7 +250,7 @@ bool CodeEditor::askSave()
else
filename = " Untitled " ;
int choice = KMessageBox : : warningYesNoCancel ( this , TQString ( " The document \' %1 \' has been modified. \n Do you want to save it? " ) . tq arg( filename ) , " Save Document? " , KGuiItem ( " Save " ) , KGuiItem ( " Discard " ) ) ;
int choice = KMessageBox : : warningYesNoCancel ( this , TQString ( " The document \' %1 \' has been modified. \n Do you want to save it? " ) . arg( filename ) , " Save Document? " , KGuiItem ( " Save " ) , KGuiItem ( " Discard " ) ) ;
if ( choice = = KMessageBox : : Yes )
save ( ) ;