KDevelop API Documentation

qeditor_arghint.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2002 by Roberto Raggi <roberto@kdevelop.org>
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    version 2, License 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., 59 Temple Place - Suite 330,
00016    Boston, MA 02111-1307, USA.
00017 */
00018 
00019 #ifndef QEDITOR_ARGHINT_H
00020 #define QEDITOR_ARGHINT_H
00021 
00022 #include <qframe.h>
00023 #include <qmap.h>
00024 
00025 class QEditorView;
00026 class QEditorArgHintData;
00027 
00028 class QEditorArgHint: public QFrame
00029 {
00030     Q_OBJECT
00031 public:
00032     QEditorArgHint( QEditorView* =0, const char* =0 );
00033     virtual ~QEditorArgHint();
00034 
00035     virtual void setCurrentFunction( int );
00036     virtual int currentFunction() const { return m_currentFunction; }
00037 
00038     void setArgMarkInfos( const QString&, const QString& );
00039 
00040     virtual void addFunction( int, const QString& );
00041     QString functionAt( int id ) const { return m_functionMap[ id ]; }
00042 
00043     virtual void show();
00044     virtual void adjustSize();
00045     virtual bool eventFilter( QObject*, QEvent* );
00046 
00047 signals:
00048     void argHintHidden();
00049 
00050 public slots:
00051     virtual void reset( int, int );
00052     virtual void cursorPositionChanged( QEditorView*, int, int );
00053 
00054 private slots:
00055     void slotDone();
00056 
00057 private:
00058     QMap<int, QString> m_functionMap;
00059     int m_currentFunction;
00060     QString m_wrapping;
00061     QString m_delimiter;
00062     bool m_markCurrentFunction;
00063     int m_currentLine;
00064     int m_currentCol;
00065     QEditorArgHintData* d;
00066 };
00067 
00068 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:42 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003