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

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • completion
katecompletiontree.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries and the Kate part.
2  *
3  * Copyright (C) 2006 Hamish Rodda <rodda@kde.org>
4  * Copyright (C) 2007-2008 David Nolden <david.nolden.kdevelop@art-master.de>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef KATECOMPLETIONTREE_H
23 #define KATECOMPLETIONTREE_H
24 
25 #include "expandingtree/expandingtree.h"
26 
27 class KateCompletionWidget;
28 class KateCompletionModel;
29 
30 class QTimer;
31 
32 class KateCompletionTree : public ExpandingTree
33 {
34  Q_OBJECT
35 
36  public:
37  explicit KateCompletionTree(KateCompletionWidget* parent);
38 
39  KateCompletionWidget* widget() const;
40  KateCompletionModel* kateModel() const;
41 
42  void resizeColumns(bool firstShow = false, bool forceResize = false);
43 
44  // Navigation
45  bool nextCompletion();
46  bool previousCompletion();
47  bool pageDown();
48  bool pageUp();
49  void top();
50  void bottom();
51 
52  void scheduleUpdate();
53 
54  void setScrollingEnabled(bool);
55 
57  int columnTextViewportPosition ( int column ) const;
58 
59  private slots:
60  void resizeColumnsSlot();
61 
62  protected:
63  virtual void currentChanged ( const QModelIndex & current, const QModelIndex & previous );
64  virtual void scrollContentsBy(int dx, int dy);
65  virtual QStyleOptionViewItem viewOptions() const;
66  private:
67  bool m_scrollingEnabled;
68  QTimer* m_resizeTimer;
69 };
70 
71 #endif
KateCompletionTree::widget
KateCompletionWidget * widget() const
Definition: katecompletiontree.cpp:103
QModelIndex
KateCompletionTree::setScrollingEnabled
void setScrollingEnabled(bool)
Definition: katecompletiontree.cpp:73
ExpandingTree
Definition: expandingtree.h:28
KateCompletionTree::currentChanged
virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: katecompletiontree.cpp:68
KateCompletionModel
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition: katecompletionmodel.h:48
KateCompletionTree::top
void top()
Definition: katecompletiontree.cpp:374
KateCompletionWidget
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
QTimer
expandingtree.h
QStyleOptionViewItem
KateCompletionTree::viewOptions
virtual QStyleOptionViewItem viewOptions() const
Definition: katecompletiontree.cpp:283
KateCompletionTree::kateModel
KateCompletionModel * kateModel() const
Definition: katecompletiontree.cpp:292
KateCompletionTree::bottom
void bottom()
Definition: katecompletiontree.cpp:391
KateCompletionTree::pageUp
bool pageUp()
Definition: katecompletiontree.cpp:360
KateCompletionTree::resizeColumns
void resizeColumns(bool firstShow=false, bool forceResize=false)
Definition: katecompletiontree.cpp:114
KateCompletionTree::scrollContentsBy
virtual void scrollContentsBy(int dx, int dy)
Not available as a signal in this way.
Definition: katecompletiontree.cpp:77
KateCompletionTree::scheduleUpdate
void scheduleUpdate()
Definition: katecompletiontree.cpp:386
KateCompletionTree::nextCompletion
bool nextCompletion()
Definition: katecompletiontree.cpp:297
KateCompletionTree::KateCompletionTree
KateCompletionTree(KateCompletionWidget *parent)
Definition: katecompletiontree.cpp:39
KateCompletionTree::columnTextViewportPosition
int columnTextViewportPosition(int column) const
Returns the approximated viewport position of the text in the given column, skipping an eventual icon...
Definition: katecompletiontree.cpp:86
KateCompletionTree::previousCompletion
bool previousCompletion()
Definition: katecompletiontree.cpp:320
KateCompletionTree
Definition: katecompletiontree.h:32
QObject::parent
QObject * parent() const
KateCompletionTree::pageDown
bool pageDown()
Definition: katecompletiontree.cpp:344
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal