|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
CodeEditor::CodeEditor(TQWidget *parent, const char *name)
|
|
|
|
|
: TQWidget(parent, name)
|
|
|
|
|
{
|
|
|
|
|
TQVBoxLayout *tqlayout = 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()) );
|
|
|
|
|
|
|
|
|
|
tqlayout->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 ) ;
|
|
|
|
|
tqlayout->addWidget( m_statusBar ) ;
|
|
|
|
|
layout->addWidget( m_statusBar ) ;
|
|
|
|
|
m_statusBar->insertItem( "", 0, 0, true ) ;
|
|
|
|
|
|
|
|
|
|
slotCursorPositionChanged() ;
|
|
|
|
|