• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • utils
messageview.cpp
1 /* This file is part of the KDE project
2  Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "messageview.h"
20 #include "messageview.moc"
21 
22 #include <tqtextbrowser.h>
23 
24 Kate::MessageView::MessageView( TQWidget *parent, const char *name )
25  : Kate::DockViewBase( parent, name )
26 {
27  m_view = new TQTextBrowser( this );
28  // m_view->setFormat( Qt::richText ); // should be!!
29  connect( m_view, TQT_SIGNAL( linkClicked( const TQString & ) ),
30  TQT_SIGNAL( linkClicked( const TQString & ) ) );
31 }
32 
33 Kate::MessageView::~MessageView()
34 {
35 }
36 
37 void Kate::MessageView::addMessage( const TQString &msg )
38 {
39  m_view->append( msg );
40  m_view->scrollToBottom();
41 }
42 
43 void Kate::MessageView::clear()
44 {
45  m_view->clear();
46 }

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.