dockviewbase.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef _KATE_DOCKVIEW_BASE_H_ 00020 #define _KATE_DOCKVIEW_BASE_H_ 00021 00022 #include <tqvbox.h> 00023 00028 namespace Kate 00029 { 00030 00053 class DockViewBase : public TQVBox { 00054 Q_OBJECT 00055 public: 00059 DockViewBase( TQWidget *parent=0, const char *name=0 ); 00060 00065 DockViewBase( const TQString &prefix, const TQString &title, TQWidget *parent=0, const char *name=0 ); 00066 00067 ~DockViewBase(); 00068 00072 void setTitlePrefix( const TQString &prefix ); 00073 00077 TQString titlePrefix() const; 00078 00082 void setTitle( const TQString &title ); 00083 00087 void setTitle( const TQString &prefix, const TQString &title ); 00088 00092 TQString title() const; 00093 00094 private: 00096 void init( const TQString &, const TQString &); 00097 class DockViewBasePrivate *d; 00098 }; 00099 00100 } 00101 00102 #endif // _KATE_DOCKVIEW_BASE_H_