aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32
AgeCommit message (Collapse)AuthorFilesLines
2012-06-23In the Windows capture file "Save As" dialog code, do the same sort ofGuy Harris2-59/+250
checks for the inability to save comments that we do for UN*X. This should fix bug 7222, although the UI isn't currently as nice, as the dialog boxes are Windows dialog boxes and we don't set the button labels to reflect the actual choices being offered to the user. (We may be able to do that by using template resources to construct the message boxes.) svn path=/trunk/; revision=43444
2012-06-20MAke it compile by adding discard_comments = FALSEAnders Broman1-1/+1
svn path=/trunk/; revision=43394
2012-06-17Export a wtap_dump_can_write_encaps() routine from Wiretap; it takes aGuy Harris1-16/+3
file type and a GArray of encapsulation types and returns TRUE if a capture with all those encapsulation types can be written to a file in that file type and FALSE otherwise. Use it where appropriate. svn path=/trunk/; revision=43315
2012-06-17Reflect change to wtap_get_savable_file_types.Guy Harris1-2/+2
svn path=/trunk/; revision=43302
2012-06-13Add '*.sbr' to 'clean'Bill Meier1-1/+1
svn path=/trunk/; revision=43233
2012-05-25See if this fixes the include problem.Guy Harris1-1/+1
svn path=/trunk/; revision=42857
2012-05-25Fix some build problems.Guy Harris1-4/+1
svn path=/trunk/; revision=42856
2012-05-25Use GTK+'s GtkMessageDialog for the questions we ask in the process ofGuy Harris2-36/+7
saving files, and run it modal (which we're already doing with the GtkFileChooserDialog); this means less callback-based state machine stuff, simplifying the code paths a bit. If we're saving a file before closing it, don't bother reloading it after saving it. svn path=/trunk/; revision=42855
2012-05-24We have to tell cf_save_packets() whether to save them in compressedGuy Harris1-1/+1
form; say "don't" for now. svn path=/trunk/; revision=42817
2012-05-24In the "Save As" and "Export Specified Packets" code path, do a "safeGuy Harris1-53/+32
save" if the destination file exists. Don't forbid overwriting an existing file in either of those cases (we still forbid overwriting the current capture file) - the GUI asks the user whether they want to do the overwrite, and allows them to cancel out of it - and don't remove the file before writing to it (doing so makes the save *un*safe). Attempt to do a save of an unedited temporary file by just moving the file on Windows as well as on UN*X - ws_rename() will remove the target if necessary on Windows (and won't do it as a separate operation before attempting the rename), so it behaves like ws_rename() on UN*X (which is just a wrapper around rename()). svn path=/trunk/; revision=42816
2012-05-23Fix comparison of file extension with extensions for the file type -Guy Harris1-15/+21
compare extension with extension, not dot-plus-extension with extension. Skip unnecesary test. Clean up white space. svn path=/trunk/; revision=42803
2012-05-23In Windows, in the Save As and Export Selected Packets dialog, appendGuy Harris1-9/+59
the default extension for the file type iff the file type we're using has a list of extensions; the file has no extension or it has one but it's not one of the ones in the list. *Don't* expect a file extension to be at most 5 characters plus the dot - the extension for pcap-ng, our default capture file type, is "pcapng", and that's 6 characters! svn path=/trunk/; revision=42800
2012-05-23No packet range stuff for the "Save As" dialog.Guy Harris1-1/+1
svn path=/trunk/; revision=42799
2012-05-22Do the "Save As always saves the entire capture, Export SpecifiedGuy Harris2-14/+235
Packets saves specified packets" stuff for Windows. svn path=/trunk/; revision=42794
2012-05-22cf_save -> cf_save_asAnders Broman1-1/+1
svn path=/trunk/; revision=42781
2012-04-04Add a "-build" argument to checkAPIs.pl. Use that argument when buildingJeff Morriss1-1/+1
from makefiles (and thus from the buildbot). The intention is to be able to tell when a human is running the tool so we can provide more code-review guidance. As a starter, enable the "too many proto_tree_add_text() calls" check when a human is running the tool. svn path=/trunk/; revision=41943
2012-02-28Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3315 -Jeff Morriss1-2/+8
make Save-As/Displayed/All-Packets save not only the displayed packets but also any other packets needed (e.g., for reassembly) to fully dissect the displayed packets. This works only for the "All packets" case; choosing only the Selected packet, the Marked packets, or a range of packets would require actually storing which packets depend on which (too much memory) or going through the packet list many times (too slow). Also, this behavior is always the case: you can't save the displayed packets without their dependencies (I don't see why this would be desirable). So far this is done for SCTP and things using the reassembly routines (TCP has been tested). The Win32 dialog was modified but hasn't been tested yet. One confusing aspect of the UI is that the Displayed count in the Save-As dialog does not match the number of displayed packets. (I tried renaming the button "Displayed + Dependencies" but it looked too big.) The tooltip tries to explain this and the fact that this works only in the All-Packets case; suggestions for improvement are welcome. Implementation details: Dissectors (or the reassembly code) can list frames which were needed to build the current frame's tree. If the current frame passes the display filter then each listed frame is marked as "depended upon" (this takes up the last free frame_data flag). When performing a Save-As/Displayed/All-Packets then choose packets which passed the dfilter _or_ are depended upon. svn path=/trunk/; revision=41216
2012-02-24CVARSDLL hasn't been used (is undefined) for a while....Bill Meier1-1/+1
svn path=/trunk/; revision=41180
2012-02-19We renamed "libui_win32.lib" to "libgtkui_win32.lib" elsewhere; fix itGuy Harris1-3/+3
here. svn path=/trunk/; revision=41062
2012-01-24build_file_save_type_list() isn't called if there are no savable fileGuy Harris1-8/+3
types. svn path=/trunk/; revision=40690
2012-01-24Only free the file extensions list if there is one to free.Guy Harris1-1/+1
svn path=/trunk/; revision=40689
2012-01-24Don't free the list of savable file types in build_file_save_type_list()Guy Harris1-1/+0
- we use it later, and we're freeing it later. svn path=/trunk/; revision=40688
2012-01-24Fix warnings.Guy Harris1-1/+2
svn path=/trunk/; revision=40687
2012-01-24Use wtap_get_savable_file_types() for the Win32 file save dialog.Guy Harris1-105/+83
svn path=/trunk/; revision=40686
2012-01-24Don't treate WTAP_FILE_UNKNOWN as a real file type.Guy Harris1-0/+8
svn path=/trunk/; revision=40679
2012-01-23In the table of capture file types, have:Guy Harris1-2/+2
a field that gives the default extension for the file type, *without* a leading "." (i.e., just the extension, not the "." that separates it from the rest of the file name), which is NULL if there are no known extensions; a field that gives a semicolon-separated list of *other* extensions, without "*." or ".", which is NULL if there are no known extensions or there are no known extensions other than the default. Rename wtap_file_extension_default_string() to wtap_default_file_extension() (matches the name of the field). svn path=/trunk/; revision=40678
2012-01-23g_string_append_printf() returns nothing.Guy Harris1-1/+1
svn path=/trunk/; revision=40676
2012-01-23Have wtap_file_extension_default_string() return the extension in theGuy Harris1-1/+1
sense of "what follows the last . in the file name", i.e. not including the ".". svn path=/trunk/; revision=40674
2012-01-22All valid file types should have file type strings (and, currently, theyGuy Harris1-14/+20
all do); get rid of the test for a null return from wtap_file_type_string().) If wtap_get_file_extensions_list() returns NULL, include the file type in the list of filters, and use "*.*" as the filter. That way the list of filters will include all file types, even if you can't really ask only for files of that type (actually, you can't really ask only for files of *any* type unless you're running under a desktop environment where file types are specified by, for example, looking for magic numbers, as there's no guarantee that, for example, a pcap file will have an extension at all, given that it might come from a command-line tool that doesn't default to any extension). svn path=/trunk/; revision=40650
2012-01-21We already added the separator *if* we needed it; don't add it again.Guy Harris1-1/+1
svn path=/trunk/; revision=40643
2012-01-21Well, yeah, you can leave the list of patterns out, but then they don'tGuy Harris1-1/+2
show up in the UI, and they appear to show up in the UI in the Windows apps I've seen, so I guess Windows apps put the list of patterns into the description. svn path=/trunk/; revision=40642
2012-01-21Fix calls to g_string_free() (added so as not to leak memory).Guy Harris1-2/+2
svn path=/trunk/; revision=40641
2012-01-21At least according to the Microsoft documentation, you don't duplicateGuy Harris1-17/+17
the list of patterns; see what happens. svn path=/trunk/; revision=40640
2012-01-21What you get from wtap_get_file_extensions_list() are extensions, notGuy Harris1-2/+2
patterns; add the "*.". svn path=/trunk/; revision=40639
2012-01-21Fix print call.Guy Harris1-1/+1
svn path=/trunk/; revision=40638
2012-01-21Append the trailing ), don't overwrite the string.Guy Harris1-1/+1
svn path=/trunk/; revision=40637
2012-01-21Add missing variable.Guy Harris1-0/+1
svn path=/trunk/; revision=40624
2012-01-21Replace wtap_file_extensions_string() with a routine that returns aGuy Harris1-4/+23
GSList of extensions for a file type, including extensions for the compressed versions of those file types that we can read. svn path=/trunk/; revision=40623
2012-01-18New include file needs to be included.Guy Harris1-0/+2
svn path=/trunk/; revision=40567
2012-01-16Just include it from the current directory.Guy Harris1-1/+1
svn path=/trunk/; revision=40537
2012-01-16Another fix for the move of the win32 directory.Guy Harris1-1/+1
svn path=/trunk/; revision=40536
2012-01-16Fix up for the move from the top-level directory to the ui directory.Guy Harris1-5/+5
svn path=/trunk/; revision=40534
2012-01-16Make the win32 directory a subdirectory of the ui directory.Guy Harris5-0/+2621
svn path=/trunk/; revision=40531