aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-10Move the stuff to handle ASCII <-> EBCDIC conversions toGuy Harris1-1/+1
"epan/charsets.c"; other character set translation code should perhaps go there as well. svn path=/trunk/; revision=11958
2004-09-04"g_string_sprintfa()" might be deprecated in GLib 2.x, but it's all GLibGuy Harris1-6/+6
1.2[.x] has, and we support GLib 1.2[.x] - "g_string_append_printf()" is just the new name for "g_string_sprintfa()", and you can still use "g_string_sprintfa()" in GLib 2.x, so use that instead. svn path=/trunk/; revision=11900
2004-09-02Add support for copying hex data to the clipboard. Submitted by Thomas Richard Sharpe1-0/+41
Palmer. What we really should do is add this to the Edit menu as well. svn path=/trunk/; revision=11883
2004-07-24Include "colors.h" to define BLACK and WHITE.Guy Harris1-0/+1
svn path=/trunk/; revision=11505
2004-07-24Get rid of unneeded include of "colors.h".Guy Harris1-1/+0
svn path=/trunk/; revision=11496
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-09In the GTK+ code, move the redefinition of "isprint()" toGuy Harris1-1/+3
"gtk/isprint.h", and include that in "follow_dlg.c" (which wasn't including "gtkglobals.h" and thus wasn't getting the redefinition) and "proto_draw.c" (which was including "gtkglobals.h" but now needs to include "isprint.h" as well). svn path=/trunk/; revision=11355
2004-06-30On at least some platforms, a #define of O_BINARY is needed even ifGuy Harris1-1/+6
<fcntl.h> is included, as <fcntl.h> doesn't define it. svn path=/trunk/; revision=11276
2004-06-29define of O_BINARY not needed, if fcntl.h is includedUlf Lamping1-6/+1
other #include related cleanups svn path=/trunk/; revision=11272
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-28/+35
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-6/+1
svn path=/trunk/; revision=11052
2004-06-01Eliminate a no-longer-used routine.Guy Harris1-8/+1
svn path=/trunk/; revision=11050
2004-05-31directly use the file selection dialog instead of using an additional custom ↵Ulf Lamping1-122/+89
dialog svn path=/trunk/; revision=11042
2004-05-26more code cleanup from dialog things:Ulf Lamping1-8/+11
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-05-23use new functions in window API (ui_util.h),Ulf Lamping1-16/+9
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
2004-05-21Tag unused parameters with _U_ to squelch GCC compiler warnings (they'reGuy Harris1-3/+3
GTK+ callbacks so we don't get to change the calling sequence). svn path=/trunk/; revision=10934
2004-05-18this is a hack, to workaround a bug in GTK2.x!Ulf Lamping1-3/+13
when changing the font size, even refilling of the corresponding gtk_text_buffer doesn't seem to trigger an update. The only workaround is to freshly select the frame, which will remove any existing notebook tabs and "restart" the whole byte view again. svn path=/trunk/; revision=10915
2004-05-15remove FI_LINK again,Ulf Lamping1-4/+3
as this info can be derived from the presence of the FT_FRAMENUM field svn path=/trunk/; revision=10900
2004-05-14add support to link from specially marked fields to related packets,Ulf Lamping1-15/+20
a doubleclick will follow the link (GTK1 is working now too) svn path=/trunk/; revision=10898
2004-05-14add support to link from specially marked fields to related packets,Ulf Lamping1-1/+77
a doubleclick will follow the link svn path=/trunk/; revision=10892
2004-05-09make notebook tabs scrollable, if not all fits into the pane,Ulf Lamping1-1/+7
enable a popup menu on the notebook tabs, with the tab labels svn path=/trunk/; revision=10828
2004-05-01add PROTO_ITEM_SET_HIDDEN() and PROTO_ITEM_SET_GENERATED(),Ulf Lamping1-2/+10
this sets flags for later rendering of the field data svn path=/trunk/; revision=10752
2004-04-28Note that a custom widget might be the right way to speed up theGuy Harris1-1/+14
construction of the hex dump pane (so we don't need a progress bar(!) while it's being filled in), and might have some other UI advantages as well. svn path=/trunk/; revision=10723
2004-04-23added a progress dialog box, while processing packet details,Ulf Lamping1-1/+66
activating packet details notebook pages, to avoid desegmenting GUI confusion svn path=/trunk/; revision=10674
2004-03-20From Tomas Kukosa:Guy Harris1-1/+13
add Expand Tree to the View menu; make the Expand Tree context menu active iff the currently-selected item has a subtree; fix the GTK2 code for Expand Tree. svn path=/trunk/; revision=10415
2004-02-20bugfix for export selected data: win32 needs O_BINARY flag for open call,Ulf Lamping1-4/+12
otherwise it will do text mode translations (CRNL things) which isn't desired here svn path=/trunk/; revision=10134
2004-02-11Add "write_failure_alert_box()" to put up an alert box for a failedGuy Harris1-6/+3
attempt to write to a file (or close a file opened for writing). Get rid of no-longer-needed #includes of <epan/filesystem.h>. svn path=/trunk/; revision=10027
2004-02-11Add an "open_failure_alert_box()" routine to pop up an alert box for aGuy Harris1-3/+3
failed attempt to open/create a file. Fix one call to pass the right value for the "for_writing" flag. svn path=/trunk/; revision=10026
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-15/+13
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-14/+26
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-27"Export Selected Packet Bytes" -> change all appearances to this text,Ulf Lamping1-7/+37
don't show up this dialog if no data *is* selected (didn't find an easy way to control sensitivity of the menus by some mechanism :-( svn path=/trunk/; revision=9891
2004-01-27Make "{byte,tree}_view_select()" return "gboolean", not "gint", as theyGuy Harris1-7/+9
return TRUE or FALSE as a success/failure indication. svn path=/trunk/; revision=9890
2004-01-27always select the current item under cursor, before showing up theUlf Lamping1-2/+49
corresponding context menu (right mouse click) svn path=/trunk/; revision=9887
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-14/+6
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-21use stock buttons whereever possible,Ulf Lamping1-5/+5
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,Ulf Lamping1-17/+6
saving the states in the recent file svn path=/trunk/; revision=9726
2004-01-10using button compatibility macrosUlf Lamping1-6/+2
svn path=/trunk/; revision=9638
2004-01-07Include string.h to import strerrorJörg Mayer1-1/+3
svn path=/trunk/; revision=9597
2004-01-07added some simple_dialogs, if save of raw data fails for some reasonsUlf Lamping1-7/+11
svn path=/trunk/; revision=9594
2003-12-28removed some MSVC warnings (warning level 2)Ulf Lamping1-3/+3
svn path=/trunk/; revision=9460
2003-12-18A small patch from Kai Krueger <kai@kruegernetz.de> to ensure that weRichard Sharpe1-3/+4
keep the file name around long enough to use it when saving highlighted data etc. svn path=/trunk/; revision=9348
2003-12-17removed some more MSVC warnings (type casting), GTK2 specificUlf Lamping1-2/+2
svn path=/trunk/; revision=9333
2003-12-16Use gtk compatibility macros (from compat_macros.h) instead of some gtk+Olivier Abad1-2/+2
v1.2 functions which are deprecated in gtk+ v2. Update OBJECT_SET_DATA macros to cast "data" to (gpointer). svn path=/trunk/; revision=9296
2003-12-04Don't use GNodes for the protocol tree, put the sibling pointer, andGuy Harris1-8/+6
pointers to the first *and* last child, in the "proto_node" structure itself. That saves us one level of indirection and memory allocation, and lets us append to a tree by appending to the last child directly, rather than having to scan through the list of siblings of the first child to find the end of that list. svn path=/trunk/; revision=9171
2003-12-01"select_file_cb()" only needs a title, not a "construct_args_t" -Guy Harris1-8/+3
"construct_args_t" is for use with filter dialogs, and the members other than the title apply only to filter dialogs. Have "select_file_cb()" actually use the title supplied to it. svn path=/trunk/; revision=9125
2003-11-30Not all platforms have <unistd.h> - in particular, Windows doesn't.Guy Harris1-1/+8
If you're using "open()", "close()", "read()", "write()", etc., you should include <io.h> on Windows. svn path=/trunk/; revision=9123
2003-11-30Fix some warnings in proto_draw.cRichard Sharpe1-1/+2
svn path=/trunk/; revision=9122
2003-11-30Move print_file_cb out of gtk/print_dlg.c and into gtk/file_dlg.c andRichard Sharpe1-5/+2
rename it to select_file_cb to reflect its function. While this cleans things up a bit, I am still not happy because now filter_prefs.h must be included before file_dlg.h just to get construct_args_t. svn path=/trunk/; revision=9119
2003-11-29Add an entry in the byte_view pane that allows the user to save the highlightedRichard Sharpe1-1/+178
data to a file. This allows the user to select some stuff, and analyse it with external tools, and is very useful for quickly prototying dissectors etc. This works by retrieving the info that is needed to define where the selected region is. It puts up a dialog box that asks for the file to save in. However, it is an ugly hack, because it reuses print_file_cb, while print_file_cb should be moved into file_dlg.c. It also needs to have some warning dialogs put up in error cases. Finally, it would be good to be able to select a region in the byte_view, which you can do with click and drag, and then have a menu item to save the selected bytes. svn path=/trunk/; revision=9116