• 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
kateargumenthinttree.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) 2007 David Nolden <david.nolden.kdevelop@art-master.de>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef KATEARGUMENTHINTTREE_H
22 #define KATEARGUMENTHINTTREE_H
23 
24 #include "expandingtree/expandingtree.h"
25 
26 class KateCompletionWidget;
27 class KateArgumentHintModel;
28 class QRect;
29 
30 class KateArgumentHintTree : public ExpandingTree {
31  Q_OBJECT
32  public:
33  KateArgumentHintTree( KateCompletionWidget* parent );
34 
35  // Navigation
36  bool nextCompletion();
37  bool previousCompletion();
38  bool pageDown();
39  bool pageUp();
40  void top();
41  void bottom();
42 
43  //Returns the total size of all columns
44  int resizeColumns();
45 
46  void clearCompletion();
47  public slots:
48  void updateGeometry();
49  void updateGeometry(QRect rect);
50  protected:
51  virtual void paintEvent ( QPaintEvent * event );
52  virtual void rowsInserted ( const QModelIndex & parent, int start, int end );
53  virtual void dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
54  virtual void currentChanged ( const QModelIndex & current, const QModelIndex & previous );
55  private:
56  uint rowHeight(const QModelIndex& index) const;
57  KateArgumentHintModel* model() const;
58  virtual int sizeHintForColumn ( int column ) const;
59 
60  KateCompletionWidget* m_parent;
61 };
62 
63 #endif
QModelIndex
KateArgumentHintTree::pageDown
bool pageDown()
Definition: kateargumenthinttree.cpp:242
KateArgumentHintTree::rowsInserted
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
Definition: kateargumenthinttree.cpp:80
KateArgumentHintModel
Definition: kateargumenthintmodel.h:30
KateArgumentHintTree::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: kateargumenthinttree.cpp:64
ExpandingTree
Definition: expandingtree.h:28
KateArgumentHintTree::pageUp
bool pageUp()
Definition: kateargumenthinttree.cpp:257
KateArgumentHintTree::clearCompletion
void clearCompletion()
Definition: kateargumenthinttree.cpp:56
KateArgumentHintTree
Definition: kateargumenthinttree.h:30
QRect
KateCompletionWidget
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
KateArgumentHintTree::dataChanged
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: kateargumenthinttree.cpp:69
KateArgumentHintTree::KateArgumentHintTree
KateArgumentHintTree(KateCompletionWidget *parent)
Definition: kateargumenthinttree.cpp:36
expandingtree.h
KateArgumentHintTree::updateGeometry
void updateGeometry()
Definition: kateargumenthinttree.cpp:190
KateArgumentHintTree::bottom
void bottom()
Definition: kateargumenthinttree.cpp:283
KateArgumentHintTree::previousCompletion
bool previousCompletion()
Definition: kateargumenthinttree.cpp:218
QWidget::rect
QRect rect() const
KateArgumentHintTree::top
void top()
Definition: kateargumenthinttree.cpp:271
QAbstractItemView::event
virtual bool event(QEvent *event)
KateArgumentHintTree::currentChanged
virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: kateargumenthinttree.cpp:74
QPaintEvent
KateArgumentHintTree::resizeColumns
int resizeColumns()
Definition: kateargumenthinttree.cpp:180
KateArgumentHintTree::nextCompletion
bool nextCompletion()
Definition: kateargumenthinttree.cpp:194
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 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