Interface List: Change display to view/model
authorRoland Knall <rknall@gmail.com>
Sat, 1 Oct 2016 06:54:57 +0000 (08:54 +0200)
committerRoland Knall <rknall@gmail.com>
Sat, 1 Oct 2016 13:18:51 +0000 (13:18 +0000)
commit99097dd3c65358a525e40767cc1501c4116c3a4d
tree1ad9637554aebded5ff4bf8a400a6c3fc2ed4b4e
parentb6ad91520fd602710f5afe4a4eb8787a6bca22d4
Interface List: Change display to view/model

This changes the underlying model of the main interface tree.
Because of that, we can resort to a view/model approach, enlisting
the global interfaces list as only data source.

The interface list works identical to the old list, but allows
for filtering of the displayed interfaces by type. Only types, which
are present and whose interfaces are not hidden, are being displayed
for selection.

Change-Id: If8475b227daa026dc0ad3d25bc7fe050d5bf2ac3
Reviewed-on: https://code.wireshark.org/review/17940
Reviewed-by: Roland Knall <rknall@gmail.com>
20 files changed:
epan/prefs.c
epan/prefs.h
ui/qt/CMakeLists.txt
ui/qt/Makefile.am
ui/qt/capture_interfaces_dialog.cpp
ui/qt/capture_interfaces_dialog.h
ui/qt/extcap_options_dialog.h
ui/qt/interface_frame.cpp [new file with mode: 0644]
ui/qt/interface_frame.h [new file with mode: 0644]
ui/qt/interface_frame.ui [new file with mode: 0644]
ui/qt/interface_sort_filter_model.cpp [new file with mode: 0644]
ui/qt/interface_sort_filter_model.h [new file with mode: 0644]
ui/qt/interface_tree.cpp [deleted file]
ui/qt/interface_tree_model.cpp [new file with mode: 0644]
ui/qt/interface_tree_model.h [moved from ui/qt/interface_tree.h with 54% similarity]
ui/qt/main_welcome.cpp
ui/qt/main_welcome.h
ui/qt/main_welcome.ui
ui/qt/main_window_slots.cpp
ui/qt/manage_interfaces_dialog.cpp