• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kate

katecompletiontree.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE libraries and the Kate part.
00002  *
00003  *  Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
00004  *  Copyright (C) 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Library General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Library General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Library General Public License
00017  *  along with this library; see the file COPYING.LIB.  If not, write to
00018  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  *  Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef KATECOMPLETIONTREE_H
00023 #define KATECOMPLETIONTREE_H
00024 
00025 #include "expandingtree/expandingtree.h"
00026 
00027 class KateCompletionWidget;
00028 class KateCompletionModel;
00029 
00030 class QTimer;
00031 
00032 class KateCompletionTree : public ExpandingTree
00033 {
00034   Q_OBJECT
00035 
00036   public:
00037     explicit KateCompletionTree(KateCompletionWidget* parent);
00038 
00039     KateCompletionWidget* widget() const;
00040     KateCompletionModel* kateModel() const;
00041 
00042     void resizeColumns(bool firstShow = false, bool forceResize = false);
00043 
00044     // Navigation
00045     bool nextCompletion();
00046     bool previousCompletion();
00047     bool pageDown();
00048     bool pageUp();
00049     void top();
00050     void bottom();
00051     
00052     void scheduleUpdate();
00053 
00054     void setScrollingEnabled(bool);
00055     
00057     int columnTextViewportPosition ( int column ) const;
00058     
00059   private slots:
00060     void resizeColumnsSlot();
00061 
00062   protected:
00063     virtual void currentChanged ( const QModelIndex & current, const QModelIndex & previous ); 
00064     virtual void scrollContentsBy(int dx, int dy);
00065     virtual QStyleOptionViewItem viewOptions() const;
00066   private:
00067     bool m_scrollingEnabled;
00068     QTimer* m_resizeTimer;
00069 };
00070 
00071 #endif

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal