summaryrefslogtreecommitdiff
path: root/ui/win32
AgeCommit message (Collapse)AuthorFilesLines
2013-08-23For the Windows Open dialog for capture files, get rid of the "(*.*)" inGuy Harris1-5/+54
the "All Files" entry (the current UI guidelines from Microsoft say to do so, and that's what Paint does, at least), and add an "All Capture Files" entry with all the file extensions for the file types we support (it'll pick up all text files, but there's not much we can do about that, and it won't pick up files with *no* extension or weird extensions, such as you might get from UN*X systems or from WinDump commands, but at least it'll filter out some other crud). Fix what appear to be memory leaks; that should be backported unless I've missed something and they aren't leaks. Fix an out-of-date comment, and add an additional comment. svn path=/trunk/; revision=51481
2013-07-16Move merge.{h,c} into wiretap: these modules use wiretap to merge files.Jeff Morriss1-3/+5
svn path=/trunk/; revision=50656
2013-07-14Fix whitespace.Guy Harris1-1/+1
svn path=/trunk/; revision=50572
2013-07-12Move the print modules into epan.Jeff Morriss1-1/+1
svn path=/trunk/; revision=50526
2013-06-19Allow for column headers not to be printed in order to make it possible to ↵Chris Maynard2-8/+22
export packets as plain text in a format that could then have a chance of being imported again (assuming other factors such as packet bytes were printed, etc.) in order to recover the original pcap file. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1636 svn path=/trunk/; revision=50036
2013-06-15Make use of text metrics and devmode data to properly format a page for ↵Chris Maynard1-161/+183
printing. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7543 #BACKPORT(1.10,1.8) svn path=/trunk/; revision=49946
2013-06-04The CommDlg_OpenSave_GetFilePath macro fetches the path+name of the mostGerald Combs1-36/+26
recently selected file in the current file dialog. This isn't the proper routine to use when trying to figure out the save/export file name. We have to dig through the OPENFILENAME struct instead. Fixes bug 8224. #Backport 1.10 svn path=/trunk/; revision=49765
2013-04-27Fix a comment (the "it worked but didn't pop up a window" conclusionGuy Harris1-3/+3
came from a bad test). svn path=/trunk/; revision=49070
2013-04-27Update comments.Guy Harris1-4/+3
svn path=/trunk/; revision=49069
2013-04-26Fix a whole bunch of doxygen warnings, mostly typos or renamed parameters.Evan Huus1-3/+2
svn path=/trunk/; revision=49053
2013-04-26Work around a bug in a Microsoft security fix.Guy Harris1-1/+19
svn path=/trunk/; revision=49046
2013-04-26Get rid of leftover debugging variable.Guy Harris1-1/+0
svn path=/trunk/; revision=49045
2013-04-26Check, for each of the standard handles, whether they need to beGuy Harris1-8/+98
redirected to a console. Only if at least one of them needs to be redirected to we create a console, and don't redirect them if they don't need to be redirected. This makes redirection of the standard output of, for example, "wireshark -D" work; we don't redirect it out from under the shell. svn path=/trunk/; revision=49044
2013-04-25Send the output of the -D and -L options to the standard output ratherGuy Harris1-1/+0
than the standard error. In Wireshark on Windows, create a console before doing so and destroy it before exiting. Don't do that in TShark or dumpcap, as those are console-mode programs on Windows. This should fix bug 8609 and still allow "wireshark -D" and "wireshark -L" to work when the standard output isn't redirected. svn path=/trunk/; revision=49025
2013-04-01Add a wtap_dump_can_write() routine that indicates whether WiretapGuy Harris1-6/+1
supports writing files with a given set of encapsulations and comment types. Use it, rather than asking for a list of file formats that support the given set of encapsulation and comment types and checking whether we got back such a list, or duplicating its logic. Having file.c use it means that nobody's using wtap_dump_can_write_encaps() any more; get rid of it. Instead, have a private routine that checks whether a given file format supports a given set of encapsulations *and* comment types, and use that internally. svn path=/trunk/; revision=48690
2013-04-01Define a collection of bits for different types of capture file comments.Guy Harris1-31/+31
For each capture file type, have a bitset of comment types supported by that capture file type. Add a Wiretap routine that, for a given file type, returns the bitset of comment types it supports. Have wtap_get_savable_file_types() take a bitset of comment types that need to be supported by the file types it returns. Replace cf_has_comments() with a routine that returns a bitset of capture file comment types in the capture file. Use those routines in the capture file dialogs; don't wire in the notion that pcap-NG supports all comment types and no other file formats support any comment types. (That's currently true, but we don't want to wire that in as being forever true.) svn path=/trunk/; revision=48689
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-1/+1
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2012-12-26Squelch some more discarding-qualifiers warnings.Guy Harris2-5/+5
svn path=/trunk/; revision=46771
2012-10-21Simplify #ifdef blocksPascal Quantin1-6/+5
svn path=/trunk/; revision=45694
2012-10-21Revert r45692 and try to fix link failure another way: console_win32.[ch] ↵Pascal Quantin3-0/+264
definitely belong to ui/win32 Add console_win32.[ch] to Makefile.am svn path=/trunk/; revision=45693
2012-10-21Try to fix LINK : fatal error LNK1181: cannot open input file ↵Alexis La Goutte2-263/+0
'win32/console_win32.obj' move ui/win32/console_win32.[ch] to ui/console_win32.[ch] svn path=/trunk/; revision=45692
2012-10-21Make Windows Buildbot happyAlexis La Goutte1-1/+1
svn path=/trunk/; revision=45691
2012-10-21Make buildbot happy and add modelines infoAlexis La Goutte2-12/+39
svn path=/trunk/; revision=45690
2012-10-21Move MSWindows console "windows" to ui/win32/console_win32.[ch]Alexis La Goutte2-0/+236
svn path=/trunk/; revision=45677
2012-10-16Use topic_action instead of topic_cb for the Windows file dialogs. MoveGerald Combs1-8/+8
the common Qt help code to wireshark_application.cpp. svn path=/trunk/; revision=45594
2012-10-16Move common SSL key export routines to ui/ssl_key_export.[ch]. Make theGerald Combs1-7/+6
exported keys a gchar *. Implement SSL key exports in the Qt UI. Remove some no-longer-necessary packet-ssl*.h includes. Change lastOpenDir().absolutePath() to .canonicalPath(). Get rid of the "Export As PostScript" action. svn path=/trunk/; revision=45589
2012-10-13Fix Windows compilation problems from r45513. #ifdef out some non-WindowsGerald Combs2-8/+8
code. Get rid of a few uses of the global cfile. svn path=/trunk/; revision=45514
2012-10-11In GTK3 the settings.ini file serves the same purpose as the gtkrc file.Anders Broman1-0/+5
It should be copied to the wireshark executable dir ..\etc\gtk-3.0 I'm not sure if this is the right place to put it. makefile will be updated later if no one beats me to it or has a better idea where to put the file. I'm not sure if we should strive to make the GTK3 version as equal to the GTK2 version as possible or accept that it looks more like the *nix version. If we are to use it it needs to be in the nsi installer as well. svn path=/trunk/; revision=45474
2012-10-09Move a couple of enums to the common UI directory. Remove an unusedGerald Combs2-24/+8
definition. svn path=/trunk/; revision=45440
2012-10-09Fix Qt compilation on Windows. Check the user-supplied range syntaxGerald Combs1-19/+57
and provide instant feedback in the Win32 file dialog similar to the Qt code. Tango-ize some colors. Escape a backslash in QtShark.pro. svn path=/trunk/; revision=45430
2012-10-08Add a PacketRangeGroupBox widget. Use it to implement "Export SelectedGerald Combs1-1/+1
Packets". Not yet tested on Windows. "Ignore Packet" hasn't been implemented so we can't test that either. Create a SyntaxLineEdit widget from the QLineEdit code in DisplayFilterEdit. Use it in the file import and export dialogs and the PacketRangeGroupBox widget. This lets us provide instant feedback instead of popping up an error dialog. Expand the Tango color list based on http://emilis.info/other/extended_tango . Rearrange QtShark.pro to (hopefully) work better with Qt Creator. svn path=/trunk/; revision=45405
2012-10-08Fix crash when exporting packet dissection as plain text on Windows ↵Pascal Quantin1-0/+2
(regression introduced in r45333) svn path=/trunk/; revision=45378
2012-10-05Add a capture_file * element to packet_range_t and pass it explicitly inGerald Combs1-10/+8
packet_range_init(). Get rid of global cfile references in packet-range.c. C++-ize packet-range.h. Shuffle some includes around. svn path=/trunk/; revision=45333
2012-10-03Fix compilation on Windows. Add back and fix function definitions,Gerald Combs2-6/+23
fix doxygen d ocumentation, other fixes. svn path=/trunk/; revision=45298
2012-10-03Unify the GTK+ and Win32 versions of "Export Specified Packets". Add aGerald Combs2-178/+59
shared "file_add_extension" routine. We no longer support _MSC_VER < 1400 so get rid of some clutter. Add a gzip checkbox to the Win32 export packets dialog. Windows code hasn't yet been tested (and is likely broken). I'll fix it shortly. svn path=/trunk/; revision=45296
2012-09-25Fix error checking logic.Gerald Combs1-1/+1
svn path=/trunk/; revision=45144
2012-09-24Fix compilation on Windows.Gerald Combs2-9/+10
svn path=/trunk/; revision=45106
2012-09-24Unify some of the GTK+ and Win32 "Save As" code and behavior. This willGerald Combs2-229/+106
likely break compilation on Windows. I'll take care of it shortly. svn path=/trunk/; revision=45105
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-09-19Add gzip support to the Win32 "Save As" dialog. Don't crash in the Win32Gerald Combs2-24/+58
merge dialog if we cancel. Adjust the size and location of the controls in the Win32 open and merge file templates. svn path=/trunk/; revision=45014
2012-09-10Combine some of the the Windows and non-Windows merge code and make itGerald Combs2-88/+59
behave the same on each platform. This might break the non-Windows builds. I'll test & fix any problems shortly. svn path=/trunk/; revision=44859
2012-08-14Fix compilation warnings.Gerald Combs1-1/+1
svn path=/trunk/; revision=44489
2012-07-31Don't overwrite preview item labels.Gerald Combs1-0/+6
svn path=/trunk/; revision=44173
2012-07-27Add a preview to the common file dialog. Adjust the win32 file dialogGerald Combs1-6/+6
preview logic slightly. svn path=/trunk/; revision=44080
2012-07-21Remove the filename from the Win32 file dialog preview. It's alreadyGerald Combs2-122/+123
shown in two places and there's no reason to show it in a third. Use CommDlg_OpenSave_GetFilePath instead of CommDlg_OpenSave_GetSpec so that previews work properly for folders. svn path=/trunk/; revision=43877
2012-07-16Move most of file_open_cmd to gtk_open_file. Make gtk_open_fileGerald Combs2-65/+61
and win32_open_file behave similarly. _snwprintf is "banned". Use StringCchPrintf instead. Tested on Windows. I'll test on OS X shortly. svn path=/trunk/; revision=43756
2012-07-12Use win32_open_file in qtshark on Windows.Gerald Combs1-4/+12
svn path=/trunk/; revision=43677
2012-07-11MSDN says DIALOG resources are obsolete. Use DIALOGEXes instead. We aren'tGerald Combs1-3/+3
adding extra controls to the save dialog any more so remove its template. svn path=/trunk/; revision=43676
2012-07-09From Michael Mann:Anders Broman2-13/+19
GUI use external name resolver proliferation https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7380 svn path=/trunk/; revision=43615
2012-07-06From Michael Mann:Anders Broman1-7/+6
Generic preferences implementation - Printing and Name Resolution. svn path=/trunk/; revision=43579