ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Where to call Qt Extcap dialog

From: Roland Knall <rknall@xxxxxxxxx>
Date: Mon, 27 Apr 2015 15:31:44 +0200
Hi

I am currently implementing a Qt Dialog for the extcap interfaces. The dialog part is rather simple and mostly tricky because of the different kinds of interface options for extcap interfaces. But I ran into an issue, which is irritating.

How should the extcap interface options be shown?

On Gtk, when you double-click on the interface in the interface list, the capture options dialog opens. In Qt, if you do the same, the capture starts. So, my next idea was a tab in the "Capture Interfaces -> Options" dialog, which I threw out, because you could select more than one extcap interface, which would result in the need of more than one tab-page. Also you would have the whole issue of hiding the tab pages, and selecting the extcap interface on a single extcap tab page (maybe via combobox) is not very UI-friendly, because you would have selected the interfaces in the first options page already.

So, for now, I've come up with the following solutions:

Add a new column in the "Capture Interfaces -> Options" dialog, which includes a button a user can press to open the specific configuration dialog for a specific extcap interface with a start button, to start the capture immediately from the dialog.

Additionally, a Ctrl->Click on the interface in the main window list, would open the same options dialog, with a start button to start the capture immediately as well.

Is this solution plausible, or should there be another method? Because otherwise, I would prepare a patch for the end of this week.

regards,
Roland