Wireshark-commits: [Wireshark-commits] master 321386e: PluginIF: AdditionalToolbar
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 24 Feb 2017 08:13:13 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=321386e9f49d88b64f48868c6e4079b2073547a1
Submitter: Roland Knall (rknall@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

321386e by Roland Knall (roland.knall@xxxxxxxxxxxxxxxxx):

    PluginIF: AdditionalToolbar
    
    Creates an interface for plugins and other parts of the code, to
    add a new toolbar to the system and have various widget types interact
    with this toolbar.
    
    All toolbars added via this interface, will be added to an additional
    submenu called "Additional Toolbars" within Wireshark.
    
    Also a demo plugin is being provided, demonstrating various features
    of the toolbar, including updating the gui elements. It also demonstrates
    how to update toolbar items.
    
    Change-Id: I8d0351224b3d7f4b90220d58970b51695551d7e3
    Reviewed-on: https://code.wireshark.org/review/19803
    Petri-Dish: Roland Knall <rknall@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Reviewed-by: Roland Knall <rknall@xxxxxxxxx>
    

Actions performed:

    from  bd9afdd   Reduce number of fwrite when writing pcap-ng EPB.
    adds  321386e   PluginIF: AdditionalToolbar


Summary of changes:
 CMakeLists.txt                                     |    9 +
 CMakeOptions.txt                                   |    1 +
 epan/plugin_if.c                                   |  337 +++++++++++-
 epan/plugin_if.h                                   |  178 ++++++-
 plugins/pluginifdemo/AUTHORS                       |    2 +
 plugins/{transum => pluginifdemo}/CMakeLists.txt   |   58 +--
 plugins/{gryphon => pluginifdemo}/COPYING          |    0
 plugins/{gryphon => pluginifdemo}/Makefile.am      |   18 +-
 plugins/pluginifdemo/NEWS                          |    1 +
 plugins/pluginifdemo/README                        |    2 +
 plugins/{wimaxasncp => pluginifdemo}/moduleinfo.h  |    4 +-
 plugins/{docsis => pluginifdemo}/plugin.rc.in      |    0
 plugins/pluginifdemo/pluginifdemo.c                |  157 ++++++
 .../pluginifdemo/pluginifdemo.h                    |   12 +-
 .../pluginifdemo/ui/pluginifdemo_about.cpp         |   43 +-
 .../pluginifdemo/ui/pluginifdemo_about.h           |   31 +-
 plugins/pluginifdemo/ui/pluginifdemo_about.ui      |  156 ++++++
 plugins/pluginifdemo/ui/pluginifdemo_main.cpp      |  320 ++++++++++++
 plugins/pluginifdemo/ui/pluginifdemo_main.h        |  133 +++++
 plugins/pluginifdemo/ui/pluginifdemo_main.ui       |  315 ++++++++++++
 plugins/pluginifdemo/ui/uiclasshandler.cpp         |  128 +++++
 .../pluginifdemo/ui/uihandler.cpp                  |   71 ++-
 plugins/pluginifdemo/ui/uihandler.h                |  101 ++++
 ui/qt/CMakeLists.txt                               |    4 +
 ui/qt/Makefile.am                                  |    4 +
 ui/qt/additional_toolbar.cpp                       |  537 ++++++++++++++++++++
 ui/qt/additional_toolbar.h                         |  101 ++++
 ui/qt/apply_line_edit.cpp                          |  181 +++++++
 .../{extcap_argument_file.h => apply_line_edit.h}  |   50 +-
 ui/qt/main_window.cpp                              |  133 ++++-
 ui/qt/main_window.h                                |    5 +-
 ui/qt/main_window.ui                               |    6 +
 ui/qt/main_window_slots.cpp                        |   70 +++
 ui/recent.c                                        |   14 +
 ui/recent.h                                        |    1 +
 35 files changed, 3010 insertions(+), 173 deletions(-)
 create mode 100644 plugins/pluginifdemo/AUTHORS
 copy plugins/{transum => pluginifdemo}/CMakeLists.txt (72%)
 copy plugins/{gryphon => pluginifdemo}/COPYING (100%)
 copy plugins/{gryphon => pluginifdemo}/Makefile.am (82%)
 create mode 100644 plugins/pluginifdemo/NEWS
 create mode 100644 plugins/pluginifdemo/README
 copy plugins/{wimaxasncp => pluginifdemo}/moduleinfo.h (97%)
 copy plugins/{docsis => pluginifdemo}/plugin.rc.in (100%)
 create mode 100644 plugins/pluginifdemo/pluginifdemo.c
 copy epan/dissectors/packet-bfd.h => plugins/pluginifdemo/pluginifdemo.h (84%)
 copy ui/qt/about_dialog.h => plugins/pluginifdemo/ui/pluginifdemo_about.cpp (67%)
 copy ui/qt/export_pdu_dialog.h => plugins/pluginifdemo/ui/pluginifdemo_about.h (69%)
 create mode 100644 plugins/pluginifdemo/ui/pluginifdemo_about.ui
 create mode 100644 plugins/pluginifdemo/ui/pluginifdemo_main.cpp
 create mode 100644 plugins/pluginifdemo/ui/pluginifdemo_main.h
 create mode 100644 plugins/pluginifdemo/ui/pluginifdemo_main.ui
 create mode 100644 plugins/pluginifdemo/ui/uiclasshandler.cpp
 copy ui/qt/sctp_all_assocs_dialog.h => plugins/pluginifdemo/ui/uihandler.cpp (52%)
 create mode 100644 plugins/pluginifdemo/ui/uihandler.h
 create mode 100644 ui/qt/additional_toolbar.cpp
 create mode 100644 ui/qt/additional_toolbar.h
 create mode 100644 ui/qt/apply_line_edit.cpp
 copy ui/qt/{extcap_argument_file.h => apply_line_edit.h} (54%)