aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-02-13Qt: Allow shift-double-clicking on a frame link.Gerald Combs1-1/+5
You can open a new packet window in the GTK+ UI by holding down the shift key and double-clicking on a frame link in the protocol tree. Add this behavior to the Qt UI. Document the different ways of opening a new packet window and update the image. Change-Id: I55caf6cc8089a6c305fafd47b4870e7c69dbfb10 Reviewed-on: https://code.wireshark.org/review/7101 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-02-12Qt: Add the "new packet" window^Wdialog^Wwindow.Gerald Combs1-47/+56
Allow persistence across files. Preserve the use of "window" even though we're really a dialog. Update ByteViewTab and ProtoTree to support multiple instances. Remove the need for a cast in frame_data. Add more forward declarations. Change-Id: I50d3d9d1455b8ecc158a37218f9e41fe696d5ae2 Reviewed-on: https://code.wireshark.org/review/7086 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-01-04Create BASE_DOT, BASE_DASH, and BASE_SEMICOLON types for the FT_BYTES field ↵Michael Mann1-1/+1
type. These "bases" will put a ".", "-", or ":" respectively between hexidecimal bytes in the field in packet view and display filter. FT_BYTES with BASE_NONE will have no separator in the packet view, but continue to have the ':' as a separator in the display filter. Converted the "string" hf_ entries that used tvb_fc_to_str as a string to use proto_tree_add_item with FT_BYTES/BASE_DOT type. Converted applicable tvb_bytes_to_ep_str_punct() calls to use the new BASE values. Change-Id: I2442185bb314d04a3ff2ba57883652ecd738b5f9 Reviewed-on: https://code.wireshark.org/review/6098 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-11-04Qt: Dynamic languagesMichal Labedzki1-13/+27
- get language as soon as possible (before creating any Qt objects) to make all translations working - dynamic list of supported languages - runtime change of GUI language (no need to restart application) - add flags icons support - search for *.qm languages in buildin resources, then data dir called "languages" (main directory in sources or /usr/share/wireshark/languages), then user directory (UNIX: ~/.wireshark/languages); "languages" directory should contains files wireshark_xx.qm where xx is language code (en, en_GB, etc.), and optional xx.svg for flag icon - try to fix some untranslated manually-created UI items (need manual reset text of those components) Change-Id: I62ca8a8cddce47cec9dbcad6b0bd68b6cfd92229 Reviewed-on: https://code.wireshark.org/review/5041 Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
2014-10-29Qt: Better protocol highlight colors.Gerald Combs1-1/+2
Use the "Window" palette colors for protocol-level highlighting. Change-Id: Ife55d70041aa12110a00782d790be0d747b32562 Reviewed-on: https://code.wireshark.org/review/4979 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-10-26Use better theme-derived colors. Switch back to AlternateBase forGerald Combs1-2/+1
protocol-level highlighting. Change-Id: I3de3442885b93093c3a4f5341080713a2039cd4c Reviewed-on: https://code.wireshark.org/review/4933 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-10-24Qt: Refactor ByteViewText.Gerald Combs1-1/+2
Instead of subclassing QTextEdit and filling it with the entire contents of our tvbuff, subclass QAbstractScrollArea and draw text by hand only when needed. The new code should be *much* faster. Some code based on QHexView by Even Teran (https://code.google.com/p/qhexview/). To do: - Finish the bit view implementation. Change-Id: Ie44de6870d80711cd44324521a17ab76bcefe5e5 Reviewed-on: https://code.wireshark.org/review/4922 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-09-23Qt: Add zoom and column resize actions.Gerald Combs1-5/+11
Plumb signals and slots for changing the text size in the main window. Remove the bold font code from WiresharkApplication. It was only used in ByteViewText. Adjust the icons a bit. Bug: When we change the font preferences the packet list stops drawing cached strings. I haven't been able to track down the cause. Change-Id: I609d740c9f26265628fa4b7de1b75b0e56651387 Reviewed-on: https://code.wireshark.org/review/4269 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-08-15Qt: Disable main menu items that don't do anything.Gerald Combs1-1/+1
The functionality associated with Capture → Capture Filters, Analyze → Display Filters, Analyze → Display Filter Macros, and Analyze → Apply As Column haven't been implemented yet. Disable each menu item for now so that we don't play tricks on our users. Follow our current action naming convention. Rename "Apply as Column" to "Create a Column". Change-Id: I01901db05adc897d877f6a0a699e3049b0149b4a Reviewed-on: https://code.wireshark.org/review/3629 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-10Add "Decode As" to the packet list and protocol tree context menus.Gerald Combs1-2/+6
Automatically add a new item if "Decode As" is triggered from the context menus. svn path=/trunk/; revision=53915
2013-10-14PacketList and ProtoTree need access to MainWindow at initializationGerald Combs1-0/+2
time in order to fill in their respective context menus. R52386 broke that. Fix it and add comments about handling reparenting. Fixes bug 9265. svn path=/trunk/; revision=52600
2013-07-08New Qt feature: Show related packet list items in the frame numberGerald Combs1-0/+11
column. Conversation spans (setup frame to last frame) are shown with a square bracket. Linked frames are shown with a circle. Use correct column justifications in Qt. Move common justification-related packet list code to ui/packet_list_utils.[ch]. Add a last_frame element to conversation_t. svn path=/trunk/; revision=50447
2013-07-07Make tree_is_expanded array static, add setter/getter function.Jakub Zawadzki1-5/+5
svn path=/trunk/; revision=50433
2012-12-23Qt: Implement packet comments. Fix packet detail updates.Gerald Combs1-1/+1
GTK+: Shorten the packet comment menu item name. Remove a couple of unneeded includes. Both: Add an arbitrary 20 MB limit when fetching all packet comments. Use a color from the Tango palette for comments. svn path=/trunk/; revision=46709
2012-12-07Implement the items under "Edit→Copy", "Analyze→Apply as Filter" andGerald Combs1-0/+80
"Analyze→Prepare a Filter". Add a context menu to the protocol tree and fill in the items we've implemented so far. Add an "applyAllPreferences" method and corresponding "preferencesUpdated" signal to wsApp. Use it to set the maximum display filter combo count. Move the packet filtering code from the display filter edit to the main window (which makes more sense and matches what we're doing in the GTK+ version and gets rid of more global cfile references). Try to center the display filter edit button images. Use a different "close" button in the main toolbar. It looks better but is still wrong (on OS X at least). svn path=/trunk/; revision=46434
2012-11-06Show the byte view when we select a packet. Update some method andGerald Combs1-15/+15
variable names. svn path=/trunk/; revision=45953
2012-11-06Set our font each time we fill in the tree instead of just once atGerald Combs1-2/+1
construction time. This fixes behavior broken by the recent startup changes and should help us handle preference changes. svn path=/trunk/; revision=45942
2012-11-01Make sure we don't underrun the tree_is_expanded array.Gerald Combs1-9/+9
svn path=/trunk/; revision=45859
2012-10-30Update the Qt byte view widget to reflect the recent changes in the GTK+Gerald Combs1-3/+2
byte view. Move the packet_char_enc enum from packet.h to frame_data.h. Make the encoding flag a packet_char_enc and make it one bit. Get rid of the "cfile" global in a few places. C++-ize some of the font code. Clean up some variable names. svn path=/trunk/; revision=45838
2012-10-16Add "Export Packet Bytes".Gerald Combs1-5/+5
svn path=/trunk/; revision=45567
2012-10-13Reduce variable scopes where possible.Evan Huus1-2/+2
svn path=/trunk/; revision=45518
2012-10-11Fix crash when use pcapng with comments (with QtShark)Alexis La Goutte1-0/+4
ERROR:proto_tree.cpp:125:void proto_tree_draw_node(proto_node*, gpointer): code should not be reached (Missing color information for PI_COMMENT) svn path=/trunk/; revision=45468
2012-09-05Remove string constants from g_assert() calls, as per thread on wireshark-dev:Evan Huus1-1/+2
http://www.wireshark.org/lists/wireshark-dev/201209/msg00030.html svn path=/trunk/; revision=44774
2012-09-04Add modelines for Qtshark fileAlexis La Goutte1-0/+13
svn path=/trunk/; revision=44766
2012-08-20Basic "Go to Packet" implementation.Gerald Combs1-1/+1
svn path=/trunk/; revision=44594
2012-08-19Handle double-clicks in the tree.Gerald Combs1-0/+27
svn path=/trunk/; revision=44592
2012-08-19Add automatic tree expansion. Get rid of some unnecessary void * casts.Gerald Combs1-8/+76
Fix a couple of compilation warnings. svn path=/trunk/; revision=44587
2012-08-14Fix compilation with gcc. Remove an unused variable.Gerald Combs1-10/+3
svn path=/trunk/; revision=44495
2012-08-14Properly enable and disable "View/Expand Subtrees". Get ridGerald Combs1-7/+26
of ProtoTree::protoItemUnselected and use an empty string in protoItemSelected to indicate that nothing is selected. svn path=/trunk/; revision=44492
2012-08-14Add a "View" menu along with actions+slots for expanding and collapsingGerald Combs1-0/+17
packet details. Connect the "Go" menu actions directly to their corresponding packet list slots. svn path=/trunk/; revision=44483
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-03-07Add i18n to QtSharkAlexis La Goutte1-3/+3
The goal is only to translate the Gui (Not dissector) Actually, there is only a french translation. To try, (if you are not French) launch qtshark with LANG=fr ./qtshark (in ui/qt folder) Missing some feature : * Add preference to select (force) your language * Some Gui Text, it no available for translation * Documentation about how to translate (Coming soon...) * Your translation ! svn path=/trunk/; revision=41389
2012-01-14Initial status bar functionality. Promote the main window's status barGerald Combs1-11/+74
to a MainStatusBar. Add a "LabelStack" widget, which MainStatusBar uses to duplicate features in GtkStatusbar. Make the protocol tree a full-blown ProtoTree widget. Move main_cf_callback from main to WiresharkApplication. Duplicate a lot of the cf callbacks as signals and slots. Use Q_UNUSED in a few places. svn path=/trunk/; revision=40488
2012-01-04Add initial support for Qt along with a "ui" subdirectory.Gerald Combs1-0/+155
svn path=/trunk/; revision=40378