summaryrefslogtreecommitdiff
path: root/ui/qt/qt_ui_utils.h
AgeCommit message (Collapse)AuthorFilesLines
2015-03-10ui uitls (Qt): fix parameter 'val' not found in the function declaration ↵Alexis La Goutte1-2/+2
[-Wdocumentation] Change-Id: I5fb1afca4b412697c56d80a8eb7be4140cd9420f Reviewed-on: https://code.wireshark.org/review/7612 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-05Qt: Show the full file path in the status bar.Gerald Combs1-4/+12
Add file_size_to_qstring and use it to show the file size. Add a "shrinkable" property to LabelStack. Make the info status shrinkable. Elide text so that long file paths don't widen the main window. Change-Id: Ieb1caaf7e016384609d41fcabaa63d8f7a293eff Bug: 10949 Reviewed-on: https://code.wireshark.org/review/7534 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-02-13Qt: More #include → forward declarations.Gerald Combs1-17/+14
Change-Id: Ib6de71f801cd3053374b6c867370acd594dcd396 Reviewed-on: https://code.wireshark.org/review/7089 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-02-04Qt: Add the Protocol Hierarchy statistics dialog.Gerald Combs1-0/+8
Change-Id: I6872e323daca4798c638d764873f54c4c0dc0006 Reviewed-on: https://code.wireshark.org/review/6934 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-02-04Decorate declarations with G_GNUC_PRINTF() as appropriate.Guy Harris1-2/+4
Decorate val_to_qstring() and val_ext_to_qstring() similarly to val_to_str_wmem(); this squelches some compiler warnings. Change-Id: I86e102e7c0a1a135be9492b7d605001c5d922031 Reviewed-on: https://code.wireshark.org/review/6940 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-03Convert val_to_str_ext -> val_to_str_ext_wmem for calls that don't have ↵Michael Mann1-0/+21
valid packet scope (GUI). val_to_str_ext now officially uses wmem_packet_scope(). Removed const from val_to_str[_ext]_wmem return value since it's not really constant. Created utility functions in qt_ui_utils.h to help with the new memory management for its GUI. Change-Id: Idf2ce4a4ce78d628b2269ad23a3a48fbfc9c077c Reviewed-on: https://code.wireshark.org/review/6926 Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-29Qt: Add address conversion convenience routinesGerald Combs1-0/+22
Add address_to_qstring and address_to_display_qstring, which wrap address_to_string and address_to_display respectively and return QStrings. Convert most of the instances in ui/qt to the new routines. Fix a some memory leaks in the process. Change-Id: Icda80bbfe0b2df723d54c8da84355255f819af89 Reviewed-on: https://code.wireshark.org/review/6848 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> 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-15Fix warning found by doxygenAlexis La Goutte1-1/+1
svn path=/trunk/; revision=54130
2013-10-30Add initial support for geometry settings in the main window.Gerald Combs1-2/+0
In the current Qt startup sequence the main window + splash screen is displayed before the main preferences are loaded which means we can't immediately apply the correct geometry. For now, use an animation to morph from the default to the saved geometry after the prefs are loaded. Get rid of main_do_quit() (Qt) and main_window_exit() (Qt+GTK). It looks like they were unused. Add wsApp->isInitialized() and use it to see if we should exit() when the main window is closed. Otherwise we won't shut the application down and clean up properly. svn path=/trunk/; revision=52988
2013-10-27Try to improve the appearance of the sequence diagram.Gerald Combs1-0/+9
Use integer coordinates for the arrows and text. Add smooth_font_size() to qt_ui_utils which will hopefully adjust the size on Windows to something more readable. svn path=/trunk/; revision=52906
2013-10-11Remove GTK+ and global cfile dependencies from file_dlg_win32.c.Gerald Combs1-2/+0
Move the declaration of set_last_open_dir() to ui/util.h. It still has separate GTK+ and Qt implemenations. We might want to move it to ui/util.c at some point. Remove a lot of unnecessary GTK+ includes. Remove most of the references to the global cfile while we're at it. svn path=/trunk/; revision=52542
2013-08-29Add support for Qt5 (tested with 5.1.1).Gerald Combs1-0/+1
svn path=/trunk/; revision=51580
2013-02-06Add Filter Expressions^WButton^WShortcut^WBookmark preferences. Gerald Combs1-1/+9
Add comments noting that - We might want to do something different when the bookmark button is pressed. - The display filters (dfilters file) and gui.filter_expressions preferences should be merged. - Many buttons on Qt4 + OS X + unifiedTitleAndToolBarOnMac makes the main window really wide. Add a qstring_strdup convenience routine. Add "disabled" display filter edit icons. Fix up whitespace and descriptions in a couple of places. svn path=/trunk/; revision=47522
2013-01-14When the user is editing text or selecting from a combo box, don'tGerald Combs1-0/+11
immediately close the dialog if he or she presses the escape or enter keys. Revert the value if the user presses escape. Properly handle the base for uint preferences. Fix a NULL pointer dereference. Add a gchar_free_to_qstring utility routine which creates a QString from a g_malloced string and frees it. svn path=/trunk/; revision=47083
2012-09-17Restore set_last_open_dir. We need it on Windows.Gerald Combs1-0/+1
svn path=/trunk/; revision=44957
2012-09-17Add a text import dialog. Use libui.Gerald Combs1-1/+0
svn path=/trunk/; revision=44956
2012-09-04Add modelines for Qtshark fileAlexis La Goutte1-0/+14
svn path=/trunk/; revision=44766
2012-08-31Fix compilation on Windows.Gerald Combs1-10/+10
The moc man page says "The moc does not expand #include or #define, it simply skips any preprocessor directives it encounters." This means our signals and slots have to exist everywhere, even if they're empty on some platforms. Remove some duplicate definitions. svn path=/trunk/; revision=44716
2012-08-17More welcome screen layout updates. Instantiate the welcome screenGerald Combs1-1/+0
automatically. Try to make the sparklines resolution independent. svn path=/trunk/; revision=44555
2012-07-12Use win32_open_file in qtshark on Windows.Gerald Combs1-0/+4
svn path=/trunk/; revision=43677
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-01-18Get rid of no-longer-applicable comments.Guy Harris1-8/+0
svn path=/trunk/; revision=40579
2012-01-18Get rid of some redeclarations, include "ui/recent_utils.h" to get thoseGuy Harris1-17/+0
declarations. svn path=/trunk/; revision=40578
2012-01-18Restructure the recent file code so that recent.c is GUI-independent;Guy Harris1-51/+0
move it to the top-level source directory for now, and move ui/gtk/recent.h to the ui directory. svn path=/trunk/; revision=40561
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-1/+1
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518
2012-01-04Add initial support for Qt along with a "ui" subdirectory.Gerald Combs1-0/+149
svn path=/trunk/; revision=40378