37 HEADER_CAN_RESOLVE = Qt::UserRole,
43 QModelIndex index(
int row,
int column,
44 const QModelIndex & = QModelIndex())
const;
45 QModelIndex parent(
const QModelIndex &)
const;
46 int packetNumberToRow(
int packet_num)
const;
47 unsigned recreateVisibleRows();
50 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
51 int columnCount(
const QModelIndex & = QModelIndex())
const;
52 QVariant data(
const QModelIndex &d_index,
int role)
const;
53 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
55 int appendPacket(frame_data *fdata);
56 frame_data *getRowFdata(QModelIndex idx)
const;
57 frame_data *getRowFdata(
int row)
const;
58 void ensureRowColorized(
int row);
59 int visibleIndexOf(frame_data *fdata)
const;
68 void resetColorized();
69 void toggleFrameMark(
const QModelIndexList &indeces);
70 void setDisplayedFrameMark(
bool set);
71 void toggleFrameIgnore(
const QModelIndexList &indeces);
72 void setDisplayedFrameIgnore(
bool set);
73 void toggleFrameRefTime(
const QModelIndex &rt_index);
74 void unsetAllFrameRefTime();
75 void addFrameComment(
const QModelIndexList &indices,
const QByteArray &comment);
76 void setFrameComment(
const QModelIndex &index,
const QByteArray &comment,
unsigned c_number);
77 void deleteFrameComments(
const QModelIndexList &indices);
78 void deleteAllFrameComments();
80 void setMaximumRowHeight(
int height);
83 void packetAppended(
capture_file *cap_file, frame_data *fdata, qsizetype row);
85 void maxLineCountChanged(
const QModelIndex &ih_index)
const;
86 void itemHeightChanged(
const QModelIndex &ih_index);
88 void bgColorizationProgress(
int first,
int last);
91 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
93 void flushVisibleRows();
94 void dissectIdle(
bool reset =
false);
98 QList<QString> col_names_;
99 QVector<PacketListRecord *> physical_rows_;
100 QVector<PacketListRecord *> visible_rows_;
101 QVector<PacketListRecord *> new_visible_rows_;
102 QVector<int> number_to_row_;
107 static int sort_column_;
108 static int sort_column_is_numeric_;
109 static int text_sort_column_;
110 static Qt::SortOrder sort_order_;
113 static double parseNumericColumn(
const QString &val,
bool *ok);
115 static bool stop_flag_;
117 static double exp_comps_;
118 static double comps_;
120 QElapsedTimer *idle_dissection_timer_;
121 int idle_dissection_row_;
123 bool isNumericColumn(
int column);
126 void emitItemHeightChanged(
const QModelIndex &ih_index);