Wireshark-commits: [Wireshark-commits] master cfd5457: extcap: Add regular expression validation su
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 5 Jan 2016 14:41:29 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cfd5457ec0575be3b1b8726daf95fdc4da0e50fb
Submitter: Stig Bj?rlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

cfd5457 by Roland Knall (roland.knall@xxxxxxxxxxxxxxxxx):

    extcap: Add regular expression validation support
    
     Regular expressions follow the Qt Regex syntax, which is
     formulated after the Perl Regex syntax. A more detailed
     overview of the possible rules can be found at:
     http://doc.qt.io/qt-4.8/qregexp.html
    
     If a required option is present, even the double-click on
     the interface will first start the options dialog (Qt only)
    
     Required fields are marked bold and put first in the dialog.
     Additionally if validation failes (which it will if a required
     field is kept empty, but also if a non-required textfield is
     violating the defined regex), the label of the field is marked
     with red.
    
    Change-Id: If04a1146d0dfa778332ab2a39122c7a6ee1e93d2
    Reviewed-on: https://code.wireshark.org/review/12914
    Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    

Actions performed:

    from  a7e3ba0   Qt: Show capture filter warning
    adds  cfd5457   extcap: Add regular expression validation support


Summary of changes:
 doc/extcap_example.py                 |   22 +-
 extcap.c                              |   10 +-
 extcap.h                              |    2 +-
 extcap_parser.c                       |   26 ++
 extcap_parser.h                       |    5 +-
 ui/qt/extcap_argument.cpp             |  513 ++++++++++++++++++---------------
 ui/qt/extcap_argument.h               |   82 ++++++
 ui/qt/extcap_argument_file.cpp        |   17 +-
 ui/qt/extcap_argument_multiselect.cpp |   30 +-
 ui/qt/extcap_argument_multiselect.h   |    1 +
 ui/qt/extcap_options_dialog.cpp       |  108 +++++--
 ui/qt/interface_tree.cpp              |    2 +-
 ui/qt/main_welcome.cpp                |   17 ++
 13 files changed, 557 insertions(+), 278 deletions(-)