aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-2/+2
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-05-11From Greg Morris:Anders Broman1-9/+34
add copy functionality to the details window. Also includes a change in the copy function of the hex data window to allow copying just the text strings instead of all of the hex data. svn path=/trunk/; revision=18129
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-0/+3
header file. #if 0 out some includes; if none of the builds have a problem with that, I'll remove them. svn path=/trunk/; revision=18036
2006-04-29Most of the stuff in file_dlg.c is specific to capture files, so renameGuy Harris1-1/+1
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-02-13Copy over the file open/save code from the Win32 native branch.Gerald Combs1-20/+30
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
2005-11-12Allow a progress dialog to have "Stop" or "Cancel" as the "terminateGuy Harris1-0/+1
button"; "Stop" should be used for operations that can only be stopped (meaning that what it's already done isn't undone), not cancelled (meaning that whatever it's already done *is* undone), for which "Cancel" is used. Allow the merging process to be cancelled. Clean up indentation. Update some comments. svn path=/trunk/; revision=16489
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-13/+5
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-10-27Fix uninitialized variable errors.Guy Harris1-0/+2
Rename some variables to make the names used in progress bars more common. (Should more of that functionality be moved into common progress bar code?) svn path=/trunk/; revision=16347
2005-10-27Check on every iteration of a loop whether to pop up a dialog box,Guy Harris1-7/+11
rather than checking only on every progress bar update quantum, so that if the update quantum is *very* large, we don't end up waiting longer than the standard time for a dialog box before checking. svn path=/trunk/; revision=16327
2005-09-11I'm adding the "Expert Info" prototype now, as it seems to be in a state ↵Ulf Lamping1-15/+51
where others might have a look and probably already find it useful :-). Anyway, we can easily disable it at one or two places in the code if it get's in our way of a new release. Please see: http://wiki.ethereal.com/Development/ExpertInfo for a complete overview of the intended feature and it's current state of implementation. While I'm working on this, I've also added some more status result codes to the DCE/RPC and DCOM dissectors. svn path=/trunk/; revision=15754
2005-08-21The protocol item in the protocol tree will have a gray background now, ↵Ulf Lamping1-0/+39
which makes it much better visible. Add some more optional flags to the protocol items, so more "special cases" can be marked in the protocol tree. New flags: /** The protocol field has a bad checksum */ FI_CHECKSUM_ERROR /** The protocol field has an unusual sequence (e.g. TCP window is zero) */ FI_SEQUENCE_WARNING /** The protocol field has a bad sequence (e.g. TCP segment is lost) */ FI_SEQUENCE_ERROR svn path=/trunk/; revision=15499
2005-08-20- Declare some functions staticJörg Mayer1-3/+3
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] svn path=/trunk/; revision=15471
2005-08-20- Include ../ui_util.h into files that implement functions declard inJörg Mayer1-0/+1
ui_util.h - Replace one instance of ui_util.h by gui_utils.h svn path=/trunk/; revision=15468
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-3/+3
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-09"g_locale_to_utf8()" returns a "gchar *", and the string it returns isGuy Harris1-1/+1
dynamically allocated. Don't assign its result to "const gchar *". svn path=/trunk/; revision=15266
2005-08-05More char -> const char warning fixes.Jörg Mayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-05-18insensitive context menu "Expand Subtrees" if no protocol field is currently ↵Ulf Lamping1-0/+2
selected, sort and name the tree related menu items like the context menu ones svn path=/trunk/; revision=14395
2005-04-30removed various gcc warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=14246
2005-04-19add keyboard expand/collapse in the tree view (with Left/Right keys) with GTK2Ulf Lamping1-0/+59
svn path=/trunk/; revision=14137
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-2/+2
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
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