10 #ifndef PACKET_LIST_MODEL_H 11 #define PACKET_LIST_MODEL_H 19 #include <epan/packet.h> 21 #include <QAbstractItemModel> 25 #include "packet_list_record.h" 38 QModelIndex index(
int row,
int column,
39 const QModelIndex & = QModelIndex())
const;
40 QModelIndex parent(
const QModelIndex &)
const;
41 int packetNumberToRow(
int packet_num)
const;
42 guint recreateVisibleRows();
45 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
46 int columnCount(
const QModelIndex & = QModelIndex())
const;
47 QVariant data(
const QModelIndex &d_index,
int role)
const;
48 QVariant headerData(
int section, Qt::Orientation orientation,
49 int role = Qt::DisplayRole | Qt::ToolTipRole)
const;
53 void ensureRowColorized(
int row);
63 void resetColorized();
64 void toggleFrameMark(
const QModelIndex &fm_index);
65 void setDisplayedFrameMark(gboolean
set);
66 void toggleFrameIgnore(
const QModelIndex &i_index);
67 void setDisplayedFrameIgnore(gboolean
set);
68 void toggleFrameRefTime(
const QModelIndex &rt_index);
69 void unsetAllFrameRefTime();
70 void applyTimeShift();
72 void setMaximiumRowHeight(
int height);
76 void maxLineCountChanged(
const QModelIndex &ih_index)
const;
77 void itemHeightChanged(
const QModelIndex &ih_index);
78 void pushBusyStatus(
const QString &status);
81 void pushProgressStatus(
const QString &status,
bool animate,
bool terminate_is_stop, gboolean *stop_flag);
82 void updateProgressStatus(
int value);
83 void popProgressStatus();
85 void bgColorizationProgress(
int first,
int last);
88 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
89 void flushVisibleRows();
90 void dissectIdle(
bool reset =
false);
94 QList<QString> col_names_;
95 QVector<PacketListRecord *> physical_rows_;
96 QVector<PacketListRecord *> visible_rows_;
97 QVector<PacketListRecord *> new_visible_rows_;
98 QVector<int> number_to_row_;
103 static int sort_column_;
104 static int sort_column_is_numeric_;
105 static int text_sort_column_;
106 static Qt::SortOrder sort_order_;
109 static double parseNumericColumn(
const QString &val,
bool *ok);
111 QElapsedTimer *idle_dissection_timer_;
112 int idle_dissection_row_;
114 bool isNumericColumn(
int column);
117 void emitItemHeightChanged(
const QModelIndex &ih_index);
120 #endif // PACKET_LIST_MODEL_H void invalidateAllColumnStrings()
Invalidate any cached column strings.
Definition: packet_list_model.cpp:140
Definition: packet_list_record.h:31
Definition: packet_list_model.h:31
Definition: frame_data.h:53
void resetColumns()
Rebuild columns from settings.
Definition: packet_list_model.cpp:147