KDevelop API Documentation

GDBDebugger::VarItem Class Reference

#include <variablewidget.h>

Inheritance diagram for GDBDebugger::VarItem:

GDBDebugger::TrimmableItem KListViewItem QListViewItem List of all members.

Public Member Functions

 VarItem (TrimmableItem *parent, const QString &varName, DataType dataType)
virtual ~VarItem ()
QString varPath () const
QString fullName () const
DataType getDataType () const
void updateValue (char *data)
void updateType (char *data)
void setCache (const QCString &value)
QCString getCache ()
void setOpen (bool open)
void setText (int column, const QString &text)
void handleDoubleClicked (const QPoint &pos, int c)
QString tipText () const

Private Member Functions

void checkForRequests ()
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)

Private Attributes

QCString cache_
DataType dataType_
bool highlight_
QCString originalValueType_

Constructor & Destructor Documentation

GDBDebugger::VarItem::VarItem TrimmableItem parent,
const QString varName,
DataType  dataType
 

Definition at line 530 of file variablewidget.cpp.

References endl(), kdDebug(), setText(), and GDBDebugger::VarNameCol.

GDBDebugger::VarItem::~VarItem  )  [virtual]
 

Definition at line 549 of file variablewidget.cpp.


Member Function Documentation

void GDBDebugger::VarItem::checkForRequests  )  [private]
 

Todo:
  • hardcoded for now - these should get read from config

- This handling is not that good - but it works sufficiently well

Definition at line 715 of file variablewidget.cpp.

References cache_, fullName(), and GDBDebugger::TrimmableItem::waitingForData().

Referenced by setCache().

QString GDBDebugger::VarItem::fullName  )  const
 

Definition at line 578 of file variablewidget.cpp.

References GDBDebugger::TrimmableItem::getName(), and varPath().

Referenced by checkForRequests(), GDBDebugger::VariableTree::slotContextMenu(), and GDBDebugger::GDBController::slotVarItemConstructed().

QCString GDBDebugger::VarItem::getCache  )  [virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 708 of file variablewidget.cpp.

References cache_.

DataType GDBDebugger::VarItem::getDataType  )  const [virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 767 of file variablewidget.cpp.

References GDBDebugger::DataType, and dataType_.

Referenced by GDBDebugger::GDBController::slotExpandItem(), and varPath().

void GDBDebugger::VarItem::handleDoubleClicked const QPoint pos,
int  c
[virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 663 of file variablewidget.cpp.

References endl(), kdDebug(), GDBDebugger::ValueCol, and GDBDebugger::VarTypeCol.

void GDBDebugger::VarItem::paintCell QPainter p,
const QColorGroup cg,
int  column,
int  width,
int  align
[private, virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 775 of file variablewidget.cpp.

References highlight_, and GDBDebugger::ValueCol.

void GDBDebugger::VarItem::setCache const QCString value  )  [virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 675 of file variablewidget.cpp.

References cache_, checkForRequests(), GDBDebugger::TrimmableItem::setActive(), and setOpen().

void GDBDebugger::VarItem::setOpen bool  open  ) 
 

Definition at line 687 of file variablewidget.cpp.

References cache_, dataType_, GDBDebugger::TrimmableItem::trim(), GDBDebugger::typePointer, GDBDebugger::typeReference, and GDBDebugger::TrimmableItem::waitingForData().

Referenced by setCache().

void GDBDebugger::VarItem::setText int  column,
const QString text
 

Definition at line 593 of file variablewidget.cpp.

References dataType_, highlight_, GDBDebugger::TrimmableItem::isActive(), GDBDebugger::TrimmableItem::setActive(), text(), GDBDebugger::typePointer, GDBDebugger::ValueCol, and GDBDebugger::TrimmableItem::waitingForData().

Referenced by updateType(), and VarItem().

QString GDBDebugger::VarItem::tipText  )  const
 

Definition at line 791 of file variablewidget.cpp.

References text().

Referenced by GDBDebugger::VariableTree::maybeTip().

void GDBDebugger::VarItem::updateType char *  data  ) 
 

Definition at line 645 of file variablewidget.cpp.

References endl(), eq, kdDebug(), originalValueType_, setText(), and GDBDebugger::VarTypeCol.

Referenced by GDBDebugger::GDBController::parseWhatis().

void GDBDebugger::VarItem::updateValue char *  data  )  [virtual]
 

Reimplemented from GDBDebugger::TrimmableItem.

Definition at line 613 of file variablewidget.cpp.

References dataType_, GDBDebugger::TrimmableItem::getName(), GDBDebugger::TrimmableItem::setActive(), GDBDebugger::typeArray, GDBDebugger::typePointer, GDBDebugger::typeUnknown, and GDBDebugger::typeValue.

Referenced by GDBDebugger::GDBController::parseRequestedData().

QString GDBDebugger::VarItem::varPath  )  const
 

Definition at line 555 of file variablewidget.cpp.

References getDataType(), GDBDebugger::typeArray, and GDBDebugger::VarNameCol.

Referenced by fullName().


Member Data Documentation

QCString GDBDebugger::VarItem::cache_ [private]
 

Definition at line 207 of file variablewidget.h.

Referenced by checkForRequests(), getCache(), setCache(), and setOpen().

DataType GDBDebugger::VarItem::dataType_ [private]
 

Definition at line 208 of file variablewidget.h.

Referenced by getDataType(), setOpen(), setText(), and updateValue().

bool GDBDebugger::VarItem::highlight_ [private]
 

Definition at line 209 of file variablewidget.h.

Referenced by paintCell(), and setText().

QCString GDBDebugger::VarItem::originalValueType_ [private]
 

Definition at line 212 of file variablewidget.h.

Referenced by updateType().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003