37 HEADER_CAN_DISPLAY_STRINGS = Qt::UserRole,
38 HEADER_CAN_DISPLAY_DETAILS,
44 QModelIndex index(
int row,
int column,
45 const QModelIndex & = QModelIndex())
const;
46 QModelIndex parent(
const QModelIndex &)
const;
47 int packetNumberToRow(
int packet_num)
const;
48 unsigned recreateVisibleRows();
51 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
52 int columnCount(
const QModelIndex & = QModelIndex())
const;
53 QVariant data(
const QModelIndex &d_index,
int role)
const;
54 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
56 int appendPacket(frame_data *fdata);
57 frame_data *getRowFdata(QModelIndex idx)
const;
58 frame_data *getRowFdata(
int row)
const;
59 void ensureRowColorized(
int row);
60 int visibleIndexOf(frame_data *fdata)
const;
69 void resetColorized();
70 void toggleFrameMark(
const QModelIndexList &indeces);
71 void setDisplayedFrameMark(
bool set);
72 void toggleFrameIgnore(
const QModelIndexList &indeces);
73 void setDisplayedFrameIgnore(
bool set);
74 void toggleFrameRefTime(
const QModelIndex &rt_index);
75 void unsetAllFrameRefTime();
76 void addFrameComment(
const QModelIndexList &indices,
const QByteArray &comment);
77 void setFrameComment(
const QModelIndex &index,
const QByteArray &comment,
unsigned c_number);
78 void deleteFrameComments(
const QModelIndexList &indices);
79 void deleteAllFrameComments();
81 void setMaximumRowHeight(
int height);
84 void packetAppended(
capture_file *cap_file, frame_data *fdata, qsizetype row);
86 void maxLineCountChanged(
const QModelIndex &ih_index)
const;
87 void itemHeightChanged(
const QModelIndex &ih_index);
89 void bgColorizationProgress(
int first,
int last);
92 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
94 void flushVisibleRows();
95 void dissectIdle(
bool reset =
false);
99 QList<QString> col_names_;
100 QVector<PacketListRecord *> physical_rows_;
101 QVector<PacketListRecord *> visible_rows_;
102 QVector<PacketListRecord *> new_visible_rows_;
103 QVector<int> number_to_row_;
108 static int sort_column_;
109 static int sort_column_is_numeric_;
110 static int text_sort_column_;
111 static Qt::SortOrder sort_order_;
114 static double parseNumericColumn(
const QString &val,
bool *ok);
116 static bool stop_flag_;
118 static double exp_comps_;
119 static double comps_;
121 QElapsedTimer *idle_dissection_timer_;
122 int idle_dissection_row_;
124 bool isNumericColumn(
int column);
127 void emitItemHeightChanged(
const QModelIndex &ih_index);