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

kdevplatform/debugger

  • KDevelop
  • Variable
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KDevelop::Variable Class Referenceabstract

#include <variablecollection.h>

Inheritance diagram for KDevelop::Variable:
Inheritance graph
[legend]

Public Types

enum  format_t {
  Natural, Binary, Octal, Decimal,
  Hexadecimal
}
 

Public Slots

void die ()
 

Public Member Functions

 ~Variable () override
 
void appendChild (TreeItem *child, bool initial=false)
 
virtual void attachMaybe (QObject *callback=nullptr, const char *callbackMethod=nullptr)=0
 
virtual bool canSetFormat () const
 
void deleteChildren ()
 
QString expression () const
 
format_t format () const
 
virtual void formatChanged ()
 
bool inScope () const
 
bool isChanged () const
 
bool isExpanded () const
 
TreeModel * model ()
 
TreeItem * parent ()
 
void resetChanged ()
 
void setChanged (bool c)
 
void setFormat (format_t format)
 
void setHasMore (bool more)
 
void setHasMoreInitial (bool more)
 
void setInScope (bool v)
 
void setShowError (bool v)
 
void setTopLevel (bool v)
 
void setType (const QString &type)
 
void setValue (const QString &v)
 
bool showError ()
 
QString type () const
 
QString value () const
 
- Public Member Functions inherited from KDevelop::TreeItem
 ~TreeItem () override
 
void emitAllChildrenFetched ()
 
virtual void fetchMoreChildren ()=0
 
virtual void setColumn (int index, const QVariant &data)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Static Public Member Functions

static QString format2str (format_t format)
 
static format_t str2format (const QString &str)
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Member Functions

 Variable (TreeModel *model, TreeItem *parent, const QString &expression, const QString &display={})
 
bool topLevel () const
 
- Protected Member Functions inherited from KDevelop::TreeItem
 TreeItem (TreeModel *model, TreeItem *parent=nullptr)
 
void appendChild (TreeItem *child, bool initial=false)
 
TreeItem * child (int row)
 
int childCount () const
 
void clear ()
 
virtual void clicked ()
 
int columnCount () const
 
void deleteChildren ()
 
bool hasMore () const
 
virtual QVariant icon (int column) const
 
void insertChild (int position, TreeItem *child, bool initial=false)
 
bool isExpanded () const
 
TreeModel * model ()
 
TreeItem * parent ()
 
void removeChild (int index)
 
void removeSelf ()
 
void reportChange ()
 
void reportChange (int column)
 
int row () const
 
void setData (const QVector< QVariant > &data)
 
void setExpanded (bool b)
 
void setHasMore (bool more)
 
void setHasMoreInitial (bool more)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Signals inherited from KDevelop::TreeItem
void allChildrenFetched ()
 
void collapsed ()
 
void expanded ()
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Protected Attributes inherited from KDevelop::TreeItem
QVector< TreeItem * > childItems
 
TreeItem * ellipsis_
 
bool expanded_
 
QVector< QVariant > itemData
 
TreeModel * model_
 
bool more_
 
TreeItem * parentItem
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 48 of file variablecollection.h.

Member Enumeration Documentation

◆ format_t

enum KDevelop::Variable::format_t
Enumerator
Natural 
Binary 
Octal 
Decimal 
Hexadecimal 

Definition at line 59 of file variablecollection.h.

Constructor & Destructor Documentation

◆ Variable()

KDevelop::Variable::Variable ( TreeModel *  model,
TreeItem *  parent,
const QString &  expression,
const QString &  display = {} 
)
protected

Definition at line 67 of file variablecollection.cpp.

◆ ~Variable()

KDevelop::Variable::~Variable ( )
override

Definition at line 146 of file variablecollection.cpp.

Member Function Documentation

◆ appendChild()

void TreeItem::appendChild

Adds a new child and notifies the interested parties.


Clears the "hasMore" flag.

Definition at line 51 of file treeitem.cpp.

◆ attachMaybe()

virtual void KDevelop::Variable::attachMaybe ( QObject *  callback = nullptr,
const char *  callbackMethod = nullptr 
)
pure virtual

◆ canSetFormat()

virtual bool KDevelop::Variable::canSetFormat ( ) const
inlinevirtual

Definition at line 92 of file variablecollection.h.

◆ deleteChildren()

void TreeItem::deleteChildren

Definition at line 118 of file treeitem.cpp.

◆ die

void KDevelop::Variable::die ( )
slot

Definition at line 150 of file variablecollection.cpp.

◆ expression()

QString KDevelop::Variable::expression ( ) const

Definition at line 86 of file variablecollection.cpp.

◆ format()

format_t KDevelop::Variable::format ( ) const
inline

Definition at line 95 of file variablecollection.h.

◆ format2str()

QString KDevelop::Variable::format2str ( format_t  format)
static

Definition at line 184 of file variablecollection.cpp.

◆ formatChanged()

void KDevelop::Variable::formatChanged ( )
virtual

Definition at line 205 of file variablecollection.cpp.

◆ inScope()

bool KDevelop::Variable::inScope ( ) const

Definition at line 91 of file variablecollection.cpp.

◆ isChanged()

bool KDevelop::Variable::isChanged ( ) const
inline

Definition at line 99 of file variablecollection.h.

◆ isExpanded()

bool KDevelop::TreeItem::isExpanded
inline

Definition at line 92 of file treeitem.h.

◆ model()

TreeModel* KDevelop::TreeItem::model
inline

Definition at line 90 of file treeitem.h.

◆ parent()

TreeItem * TreeItem::parent

Definition at line 172 of file treeitem.cpp.

◆ resetChanged()

void KDevelop::Variable::resetChanged ( )

Definition at line 163 of file variablecollection.cpp.

◆ setChanged()

void KDevelop::Variable::setChanged ( bool  c)

Definition at line 157 of file variablecollection.cpp.

◆ setFormat()

void KDevelop::Variable::setFormat ( Variable::format_t  format)

Definition at line 197 of file variablecollection.cpp.

◆ setHasMore()

void TreeItem::setHasMore

Sets a flag that tells if we have some more children that are not fetched yet.


Definition at line 212 of file treeitem.cpp.

◆ setHasMoreInitial()

void TreeItem::setHasMoreInitial

Definition at line 240 of file treeitem.cpp.

◆ setInScope()

void KDevelop::Variable::setInScope ( bool  v)

Definition at line 123 of file variablecollection.cpp.

◆ setShowError()

void KDevelop::Variable::setShowError ( bool  v)

Definition at line 134 of file variablecollection.cpp.

◆ setTopLevel()

void KDevelop::Variable::setTopLevel ( bool  v)

Definition at line 118 of file variablecollection.cpp.

◆ setType()

void KDevelop::Variable::setType ( const QString &  type)

Definition at line 107 of file variablecollection.cpp.

◆ setValue()

void KDevelop::Variable::setValue ( const QString &  v)

Definition at line 96 of file variablecollection.cpp.

◆ showError()

bool KDevelop::Variable::showError ( )

Definition at line 140 of file variablecollection.cpp.

◆ str2format()

Variable::format_t KDevelop::Variable::str2format ( const QString &  str)
static

Definition at line 174 of file variablecollection.cpp.

◆ topLevel()

bool KDevelop::Variable::topLevel ( ) const
inlineprotected

Definition at line 107 of file variablecollection.h.

◆ type()

QString KDevelop::Variable::type ( ) const

Definition at line 113 of file variablecollection.cpp.

◆ value()

QString KDevelop::Variable::value ( ) const

Definition at line 102 of file variablecollection.cpp.


The documentation for this class was generated from the following files:
  • variablecollection.h
  • variablecollection.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:36:55 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/debugger

Skip menu "kdevplatform/debugger"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

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