Commit Graph

35 Commits

Author SHA1 Message Date
Stig Bjørlykke cf3a5d8d55 Fix some texts in the file types list.
svn path=/trunk/; revision=24608
2008-03-11 22:50:17 +00:00
Stig Bjørlykke 1aa356313e Disable the "Packet Format" when save as "C Arrays".
svn path=/trunk/; revision=24607
2008-03-11 21:06:56 +00:00
Stig Bjørlykke d0a04bd7df Added "C Arrays" to list of file types to export.
svn path=/trunk/; revision=24606
2008-03-11 19:35:53 +00:00
Stig Bjørlykke 5800abad46 From Francesco Fondelli (bug 2349):
Attached is a patch to export packets data as "C Arrays".  I often have
the need to [re]send data captured with wireshark using a raw/pf_packet socket.
Output format is one char[] per packet, it looks like almost the same as
the one produced by "Follow TCP stream".

svn path=/trunk/; revision=24604
2008-03-11 18:23:16 +00:00
Stephen Fisher bd148a7335 Fix bug #1600 in the Win32 file dialog (it was fixed for the GTK file dialog in SVN revision 21807).
svn path=/trunk/; revision=21872
2007-05-22 00:33:46 +00:00
Ulf Lamping bc09ad6f17 don't free ofn before the last place used
svn path=/trunk/; revision=20732
2007-02-07 02:50:33 +00:00
Ulf Lamping 3e1344fd4b fix #301: Windows file dialog should:
- initially show the "My Documents" folder
- don't use the "open folder" preference setting on save and alike dialogs (we don't do it in the GTK versions either)



svn path=/trunk/; revision=20433
2007-01-14 23:28:35 +00:00
Ulf Lamping 76bd9d18a7 bugfix: show the "placesbar" (the one with e.g. "My Documents" button) for the various win32 file dialogs.
As a nice side effect, the dir/file part of the dialogs is bigger now, which makes handling of the dialogs much nicer/faster. Yes, it still fits into 800*600 screen resolution.

Needs testing, I might have placed a g_free() call at the wrong place ...

svn path=/trunk/; revision=20423
2007-01-14 05:18:07 +00:00
Ulf Lamping 760594ff31 fix an annoying behaviour: If we save a capture file, let the default be the current file format - as we do it in the GTK version. The former implementation just defaulted to libpcap all the time, which is especially ugly if you use a file format that provides nanosecond time resolution - you're losing information :-(
Interestingly the implementation was half way there, but not really working as expected.

svn path=/trunk/; revision=19912
2006-11-16 20:13:26 +00:00
Ulf Lamping 59d6c8ea33 change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!

svn path=/trunk/; revision=19814
2006-11-05 22:46:44 +00:00
Ulf Lamping 9e6c7b11ae Implement a real "Cancel" button for the coloring rules dialog - this was a hard one! It seems to be working without bugs and as designed now.
As this was a huge internal change, new bugs are very probable - please report.

The implementation isn't still perfect, a new dialog internal list could possibly be removed again. 

However, I want to check in at this condition, just in case I make things worse - again.

svn path=/trunk/; revision=19413
2006-10-03 18:39:36 +00:00
Gerald Combs 9e23f31e5f Add support for reading from stdin under Windows. Based on a patch sent
in last year by Gianluca Varenni.

Add partial support for reading from named pipes (currently disabled).

Move utf_8to16() and utf_16to8() to a separate module (unicode-utils.[ch])
so that we don't have to cut and paste code in dumpcap.c.

Fix up whitespace.

svn path=/trunk/; revision=19291
2006-09-22 21:14:54 +00:00
Ulf Lamping 98b0a4c548 Use the same caption in the Win32 version as in the GTK dialogs: "Wireshark: Select a capture file" -> "Wireshark: Open Capture File"
svn path=/trunk/; revision=19238
2006-09-15 22:03:20 +00:00
Ulf Lamping ad75ee95dd Remove a lot of XXX:
- add help buttons to the dialogs
- the read filter fields are now working (the filter button still not)
- PDML export don't need "Packet Format" settings, grey them out
- fix a bug in the filter fields coloring function (g_alloc space was too small)

svn path=/trunk/; revision=19091
2006-08-30 20:45:13 +00:00
Ulf Lamping ef9d7bc95f fix #927: Win32: delete an existing file, if the user want's to overwrite a file and confirmed this already
svn path=/trunk/; revision=19008
2006-08-23 21:19:02 +00:00
Ulf Lamping 41c9f5e3f6 use file name information from wiretap instead of "build in" values
remove "double combobox" from the save dialog

append the default file extension to the save file name, if the user didn't added one

svn path=/trunk/; revision=18563
2006-06-23 18:29:48 +00:00
Ulf Lamping e7100e5e8e bugfix: saving the user specified packet range text must be utf8'ed, otherwise only the first char will be used
svn path=/trunk/; revision=18547
2006-06-22 19:16:40 +00:00
Gerald Combs eb71f7fb96 Rename the main executable to "wireshark", along with more conversions:
ethereal.com -> wireshark.org
  mailing lists and addresses
  ETHEREAL -> WIRESHARK
  Man pages
  Automake/Autoconf names


svn path=/trunk/; revision=18271
2006-05-31 19:12:15 +00:00
Gerald Combs ee4b9b7549 ethereal.nsi -> wireshark.nsi
svn path=/trunk/; revision=18254
2006-05-30 14:28:20 +00:00
Guy Harris 92552c2d76 Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
strings, and function names.

svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris 8113782873 Add "file_dlg.h" to declare "set_last_open_dir()".
Try leaving "dlg_utils.h" out.

svn path=/trunk/; revision=18041
2006-04-30 06:57:01 +00:00
Guy Harris 0ce9a23b25 Most of the stuff in file_dlg.c is specific to capture files, so rename
it to capture_file_dlg.c, and rename its header file.  We might want to
move the generic file dialog stuff to a file_dlg.c file (it's currently
in dlg_utils.c), and move the non-capture-file dialog stuff in
capture_file_dlg.c to another file.

svn path=/trunk/; revision=18034
2006-04-29 23:03:57 +00:00
Gerald Combs 9b59165a4d Fetch a combobox control handle before we try to use it. Add some needed
_T macros.  Remove some extraneous comments.

svn path=/trunk/; revision=18026
2006-04-28 18:43:33 +00:00
Gerald Combs 056b3d977a Properly set our export file name before we try to use it. Fixes bug 894.
svn path=/trunk/; revision=18012
2006-04-26 21:15:51 +00:00
Ulf Lamping f8e8ccac5c bugfix: don't crash with a Null pointer exception, if the open file preview timestamp can't be converted
svn path=/trunk/; revision=17860
2006-04-14 08:50:41 +00:00
Gerald Combs 0c92125f1b Make sure the export dialog is large enough. Fix a Unicode issue while
we're at it.

svn path=/trunk/; revision=17754
2006-03-28 23:06:11 +00:00
Gerald Combs 9406c5db24 Use Unicode for all native Win32 calls. Unicode Windows applications
use UTF-16 internally and GTK+ 2.x uses UTF-8, which means we have to
do a lots of conversions.

Add utf_8to16() and utf_16to8 convenience functions to strutil.c.

svn path=/trunk/; revision=17534
2006-03-08 20:55:32 +00:00
Jaap Keuter 0fe7718f9e Remove svn:executable property from source files
svn path=/trunk/; revision=17370
2006-02-22 12:04:03 +00:00
Gerald Combs e9226d04e5 More duplicate code removal.
svn path=/trunk/; revision=17339
2006-02-17 19:10:12 +00:00
Gerald Combs 4ee4fd52e0 Include some header files so that we can get rid of duplicate code and
call various GTK+ routines.

svn path=/trunk/; revision=17338
2006-02-17 19:07:54 +00:00
Gerald Combs e01dfff7ce Move common control initialization to gtk/main.c where it belongs.
Remove a MessageBox() call used for debugging.

Fixup whitespace.

svn path=/trunk/; revision=17319
2006-02-16 15:27:03 +00:00
Guy Harris e6c66fec56 Update a comment.
svn path=/trunk/; revision=17313
2006-02-15 22:29:15 +00:00
Gerald Combs 0e32e17152 Add a placeholder for integrating with the display filter dialog.
svn path=/trunk/; revision=17286
2006-02-13 21:54:05 +00:00
Gerald Combs 80e5e0fb15 Copy over the file open/save code from the Win32 native branch.
The Windows-native routines were integrated by inserting

#if GTK_MAJOR_VERSION >= 2 && _WIN32
  win32_native_routine(GDK_WINDOW_HWND(top_level->window));
  return;
#endif

at the beginning of each GTK+ file routine.  There's probably a prettier
way to do this.

Some of the sizes need to be tweaked in win32-file-dlg.rc, but everything
seems to work.

Fix up whitespace.

svn path=/trunk/; revision=17285
2006-02-13 21:25:43 +00:00