KDevelop API Documentation

KComboView Class Reference

#include <kcomboview.h>

Inheritance diagram for KComboView:

Inheritance graph
[legend]
Collaboration diagram for KComboView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KComboView (bool rw, int defaultWidth=100, QWidget *parent=0, const char *name=0)
virtual void addItem (QListViewItem *it)
virtual void removeItem (QListViewItem *it)
virtual void renameItem (QListViewItem *it, const QString &newName)
virtual void setDefaultText (const QString &text)
virtual void clear ()
int defaultWidth ()

Private Attributes

KCompletion m_comp
int m_defaultWidth
QString m_defaultText

Constructor & Destructor Documentation

KComboView::KComboView (  bool  rw,
int  defaultWidth = 100,
QWidget *  parent = 0,
const char *  name = 0
) 
 

Definition at line 25 of file kcomboview.cpp.

References KLineEdit::completionBox(), m_comp, KLineEdit::setCompletionMode(), KLineEdit::setCompletionObject(), and QComboView::setLineEdit().


Member Function Documentation

void KComboView::addItem (  QListViewItem *  it  )  [virtual]
 

Definition at line 39 of file kcomboview.cpp.

References KCompletion::addItem(), and m_comp.

Referenced by ViewCombosOp::refreshClasses(), ViewCombosOp::refreshFunctions(), ViewCombosOp::refreshNamespaces(), and Navigator::refreshNavBars().

void KComboView::clear (  void   )  [virtual]
 

Removes all comboview items.

Reimplemented from QComboView.

Definition at line 62 of file kcomboview.cpp.

References QComboView::clear(), KCompletion::clear(), m_comp, m_defaultText, and QComboView::setCurrentText().

Referenced by ClassBrowserPart::refresh(), ViewCombosOp::refreshClasses(), ClassBrowserPart::refreshClasses(), ViewCombosOp::refreshFunctions(), ClassBrowserPart::refreshMethods(), ViewCombosOp::refreshNamespaces(), and Navigator::refreshNavBars().

int KComboView::defaultWidth (   ) 
 

Definition at line 70 of file kcomboview.cpp.

Referenced by KListViewAction::loadComboWidth().

void KComboView::removeItem (  QListViewItem *  it  )  [virtual]
 

Definition at line 44 of file kcomboview.cpp.

References QComboView::currentItem(), m_comp, m_defaultText, KCompletion::removeItem(), QComboView::setCurrentItem(), and QComboView::setCurrentText().

Referenced by Navigator::refreshNavBars().

void KComboView::renameItem (  QListViewItem *  it,
const QString &  newName
)  [virtual]
 

Definition at line 55 of file kcomboview.cpp.

References KCompletion::addItem(), m_comp, and KCompletion::removeItem().

void KComboView::setDefaultText (  const QString &  text  )  [virtual]
 

Definition at line 75 of file kcomboview.cpp.

References m_defaultText.

Referenced by ClassViewPart::setupActions().


Member Data Documentation

KCompletion KComboView::m_comp [private]
 

Definition at line 42 of file kcomboview.h.

Referenced by addItem(), clear(), KComboView(), removeItem(), and renameItem().

QString KComboView::m_defaultText [private]
 

Definition at line 44 of file kcomboview.h.

Referenced by clear(), removeItem(), and setDefaultText().

int KComboView::m_defaultWidth [private]
 

Definition at line 43 of file kcomboview.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:38:18 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003