23 #ifndef BREAKPOINTMODEL_H 24 #define BREAKPOINTMODEL_H 26 #include "../common/sharedStructures.h" 28 #include <qabstractitemmodel.h> 30 #include <qstringlist.h> 64 QDataStream &operator<<(QDataStream &out,
const BreakPointItem &obj);
80 QVariant data(
const QModelIndex &index,
int role)
const;
81 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
82 QModelIndex parent(
const QModelIndex &index)
const;
83 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
84 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
86 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
89 RetVal deleteBreakPoint(
const QModelIndex &index);
90 RetVal deleteBreakPoints(
const QModelIndexList &indizes);
91 RetVal deleteAllBreakPoints();
93 QModelIndex getFirstBreakPointIndex(
const QString &
filename,
int lineNo)
const;
94 QModelIndexList getBreakPointIndizes(
const QString &filename,
int lineNo)
const;
95 QModelIndexList getBreakPointIndizes(
const QString &filename)
const;
96 QModelIndexList getAllBreakPointIndizes();
98 BreakPointItem getBreakPoint(
const QString &filename,
int lineNo)
const;
100 QList<BreakPointItem> getBreakPoints(
const QModelIndexList indizes)
const;
102 RetVal changeBreakPoint(
const QModelIndex index,
BreakPointItem bp,
bool emitBreakPointChanged =
true);
103 RetVal changeBreakPoints(
const QModelIndexList indizes, QList<BreakPointItem> bps,
bool emitBreakPointChanged =
true);
105 QList<BreakPointItem>
const getBreakpoints() {
return m_breakpoints; };
107 QModelIndexList getAllFileIndexes();
109 RetVal resetAllPyBpNumbers();
115 int nrOfBreakpointsInFile(
const int fileIdx)
const;
116 QModelIndex getFilenameModelIndex(
const QString &filename)
const;
117 int getBreakPointIndex(
const QModelIndex &index)
const;
118 int getFileIndexFromInternalPtr(
const void* ptr)
const;
121 static inline bool compareRow(QModelIndex a, QModelIndex b) {
return a.row()>b.row(); };
123 QList<BreakPointItem> m_breakpoints;
124 QList<QString> m_headers;
125 QList<QVariant> m_alignment;
126 QStringList m_scriptFiles;
127 Qt::CaseSensitivity m_filenameCaseSensitivity;
131 void breakPointDeleted(QString filename,
int lineNo,
int pyBpNumber);
BreakPointItem()
Definition: breakPointModel.h:46
model for management of all breakpoints. This model will be displayed by a viewer-widget in the main ...
Class for managing status values (like errors or warning)
Definition: retVal.h:54
bool conditioned
Definition: breakPointModel.h:51
QString condition
Definition: breakPointModel.h:52
Definition: apiFunctionsGraph.cpp:39
bool temporary
Definition: breakPointModel.h:50
int ignoreCount
Definition: breakPointModel.h:53
bool enabled
Definition: breakPointModel.h:49
QString filename
Definition: breakPointModel.h:47
int lineno
Definition: breakPointModel.h:48
int pythonDbgBpNumber
Definition: breakPointModel.h:54
item of BreakPointModel
Definition: breakPointModel.h:43