Wireshark-commits: [Wireshark-commits] master 99097dd: Interface List: Change display to view/model

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 1 Oct 2016 13:19:38 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=99097dd3c65358a525e40767cc1501c4116c3a4d
Submitter: Roland Knall (rknall@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

99097dd by Roland Knall (rknall@xxxxxxxxx):

    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@xxxxxxxxx>
    

Actions performed:

    from  b6ad915   rlogin: use ws_strtou function.
    adds  99097dd   Interface List: Change display to view/model


Summary of changes:
 epan/prefs.c                                       |    6 +
 epan/prefs.h                                       |    1 +
 ui/qt/CMakeLists.txt                               |    9 +-
 ui/qt/Makefile.am                                  |   12 +-
 ui/qt/capture_interfaces_dialog.cpp                |   38 +-
 ui/qt/capture_interfaces_dialog.h                  |    6 +-
 ui/qt/extcap_options_dialog.h                      |    2 -
 ui/qt/interface_frame.cpp                          |  395 ++++++++++++++++
 ui/qt/{interface_tree.h => interface_frame.h}      |   98 ++--
 ui/qt/interface_frame.ui                           |   95 ++++
 ui/qt/interface_sort_filter_model.cpp              |  168 +++++++
 ...ture_dialog.h => interface_sort_filter_model.h} |   53 ++-
 ui/qt/interface_tree.cpp                           |  483 --------------------
 ui/qt/interface_tree_model.cpp                     |  277 +++++++++++
 ui/qt/{interface_tree.h => interface_tree_model.h} |   75 ++-
 ui/qt/main_welcome.cpp                             |   57 +--
 ui/qt/main_welcome.h                               |   14 +-
 ui/qt/main_welcome.ui                              |   38 +-
 ui/qt/main_window_slots.cpp                        |   15 +-
 ui/qt/manage_interfaces_dialog.cpp                 |    3 +
 20 files changed, 1151 insertions(+), 694 deletions(-)
 create mode 100644 ui/qt/interface_frame.cpp
 copy ui/qt/{interface_tree.h => interface_frame.h} (51%)
 create mode 100644 ui/qt/interface_frame.ui
 create mode 100644 ui/qt/interface_sort_filter_model.cpp
 copy ui/qt/{remote_capture_dialog.h => interface_sort_filter_model.h} (57%)
 delete mode 100644 ui/qt/interface_tree.cpp
 create mode 100644 ui/qt/interface_tree_model.cpp
 rename ui/qt/{interface_tree.h => interface_tree_model.h} (54%)