Commit graph

158 commits

Author SHA1 Message Date
Ulf Lamping
644a474c95 sort #includes by directories
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +00:00
Ulf Lamping
55c2be83db move stock icon code from toolbar.c into specific stock_icons file(s)
svn path=/trunk/; revision=24921
2008-04-12 00:49:20 +00:00
Ulf Lamping
8e58ec7085 last round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ulf Lamping
736cada149 third round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24914
2008-04-11 22:10:36 +00:00
Ulf Lamping
c6d13dc2c8 replace WIDGET_SET_SIZE with gtk_widget_set_size_request
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping
4de04eae27 replace CHECK_BUTTON_NEW_WITH_MNEMONIC with gtk_check_button_new_with_mnemonic
svn path=/trunk/; revision=24905
2008-04-11 19:04:34 +00:00
Ulf Lamping
ae5f841083 replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Bill Meier
10f2ea11d5 OBECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24894
2008-04-11 16:26:32 +00:00
Stig Bjørlykke
1924255bbd Removed some GTK1 code.
svn path=/trunk/; revision=24805
2008-04-06 21:45:04 +00:00
Michael Tüxen
4306c7037d Include epan/strutil.h for gtk-1.2 builds.
svn path=/trunk/; revision=24513
2008-03-01 10:23:57 +00:00
Stig Bjørlykke
7deec480ff Next attempt to cleanup some string functions, including:
strncpy -> g_strlcpy, strncat -> g_strlcat

svn path=/trunk/; revision=24504
2008-02-29 13:33:37 +00:00
Bill Meier
4f82d2a007 Fix two compilation errors
svn path=/trunk/; revision=24405
2008-02-21 02:10:05 +00:00
Stig Bjørlykke
9f522c8eaf Added logarithmic y axis scale option.
svn path=/trunk/; revision=24402
2008-02-20 17:53:31 +00:00
Stig Bjørlykke
1c3c9d7828 When resize the IO Graphs window expand the filter field and advanced
calc field instead of the space between "Style:" and the style boxes, and
the X/Y Axis labels and corresponding boxes.

svn path=/trunk/; revision=24373
2008-02-17 18:37:56 +00:00
Stig Bjørlykke
c9f7367658 Simplified printing of x-axis values so we get a consistent view even if
resizing the window.  Also draw a 8 pixel x-axis line between the x-axis
labels to make it easier to determine midway.

svn path=/trunk/; revision=24370
2008-02-17 14:27:52 +00:00
Stig Bjørlykke
f8a07f7eff Added check for idx in get_frame_num().
svn path=/trunk/; revision=24364
2008-02-16 19:57:37 +00:00
Stig Bjørlykke
7af630f136 Corrected previous cast.
svn path=/trunk/; revision=24361
2008-02-16 17:19:09 +00:00
Stig Bjørlykke
c1f721e423 Cast a double to guint32.
svn path=/trunk/; revision=24359
2008-02-16 17:00:08 +00:00
Stig Bjørlykke
11de0a827d Click in the IO Graph to select the first package in the selected interval.
Click button 3 to select the last package.

svn path=/trunk/; revision=24358
2008-02-16 16:40:36 +00:00
Stig Bjørlykke
10a8f59e03 Rewrote some prohibited APIs in gtk/ (sprintf, strcpy, strcat).
If we get some truncated strings we probably overwrote some buffers...

svn path=/trunk/; revision=24239
2008-02-01 01:07:58 +00:00
Stig Bjørlykke
7ec0e26318 When having more than one matching item in a frame the MAX and MIN calculation
could return an invalid value.  Also fixed AVG calculation.

svn path=/trunk/; revision=24220
2008-01-29 14:27:02 +00:00
Stig Bjørlykke
3278775634 When having more than one matching item in a frame the AVG calculation
did not return a correct value.

svn path=/trunk/; revision=24210
2008-01-27 18:19:40 +00:00
Stig Bjørlykke
edf727387f Fixed crash when save IO Graphs (bug 2126).
The problem was that configure_event() is called each time the window size
changes, and each time the pixmap buffer is recreated and a new signal added
to the save button.

svn path=/trunk/; revision=24145
2008-01-20 16:53:53 +00:00
Stig Bjørlykke
27db1b2798 Added "copy as CSV" button to IO Graphs.
svn path=/trunk/; revision=24143
2008-01-20 12:24:14 +00:00
Stig Bjørlykke
56bf2afc04 Never print x axis values outside the graph (we now have "view as time of day").
Fixed calculating first_interval (the scrollbar issue in bug 1763).

svn path=/trunk/; revision=23989
2008-01-03 01:17:47 +00:00
Stig Bjørlykke
ddac83a322 Initialize io->view_as_time.
svn path=/trunk/; revision=23988
2008-01-02 20:09:20 +00:00
Stig Bjørlykke
cb1448416f Fix a cut'n'paste error for GTK_VERSION < 2 in last commit.
Fixed some indentation.

svn path=/trunk/; revision=23975
2007-12-29 23:20:14 +00:00
Stig Bjørlykke
1776029a7c Add an option to view the X axis as time of day instead of seconds since
start of capture.

svn path=/trunk/; revision=23974
2007-12-29 20:57:15 +00:00
Stig Bjørlykke
69be72052c Add a warning in the IO Graph if too many elements.
svn path=/trunk/; revision=23973
2007-12-29 20:53:10 +00:00
Stig Bjørlykke
74c6f15a03 Do not use calc_field unless in advanced y axis (bug 1763).
Register new tap listener (new filter) when going from advanced y axis.
Add parantheses to the filters to ensure they are correct when concatenated.

svn path=/trunk/; revision=23844
2007-12-12 09:31:02 +00:00
Stig Bjørlykke
1b7aed33ca - Added three more y axis scale values to be able to draw time values
up to 2000 seconds (maximum when using guint32).
- Combined some common code to draw the y axis values.

svn path=/trunk/; revision=23732
2007-12-04 01:28:38 +00:00
Stig Bjørlykke
b20e64d4f9 Simplified y-positions for FBAR and DOT to ensure out-of-graph values are
drawn as they should be.  I hope this is the last fix this time...

svn path=/trunk/; revision=23729
2007-12-04 00:36:39 +00:00
Stig Bjørlykke
96586ead65 Use same notation for all y axis time labels, so we don't end up having one
in seconds, one in milliseconds and one in microseconds.

svn path=/trunk/; revision=23722
2007-12-03 22:11:06 +00:00
Guy Harris
ae459b483f Parenthesize the operand of the cast, to make it clearer that we're
casting the result of the entire computation.

svn path=/trunk/; revision=23714
2007-12-03 21:35:54 +00:00
Anders Broman
ea19a489e1 Add another cast.
svn path=/trunk/; revision=23712
2007-12-03 20:53:26 +00:00
Stig Bjørlykke
e9090e24bc Add some casts to get the windows compiler happy.
svn path=/trunk/; revision=23711
2007-12-03 20:43:30 +00:00
Stig Bjørlykke
96e82fb78f Added two more y axis scale values to be able to draw time values up to
200 seconds.

svn path=/trunk/; revision=23710
2007-12-03 20:17:31 +00:00
Stig Bjørlykke
4efc9ba371 Ensure we don't wrap the values when calculating advanced time values.
With default window size the limit for this wrap is ~27 seconds when having
0-50 seconds on the y axis, and decreases greatly on higher window size.  

svn path=/trunk/; revision=23708
2007-12-03 19:44:27 +00:00
Stig Bjørlykke
8745da6ed0 - Added Tick interval 1 min and 10 min.
- Draw an empty graph if no items in given tick interval.
- Initialize interval_delta so we don't get overlaping x-scale labels.
- Some whitespace cleanup.

svn path=/trunk/; revision=22992
2007-09-26 22:50:53 +00:00
Stig Bjørlykke
d106d8eadc Added "Dot" as new style in IO Graph.
svn path=/trunk/; revision=22666
2007-08-26 14:02:59 +00:00
Anders Broman
5abff6b3a4 Cast as (gfloat)
io->scrollbar_adjustment->value=(gfloat)first_interval;

svn path=/trunk/; revision=22653
2007-08-25 08:20:59 +00:00
Stig Bjørlykke
e5850628b0 The code for resizing the scrollbar page_size was a bit strange and did
some strange justifications when having high "tick values" in the graph.

Simplified this to fix a problem with scrolling to X Axis zero and a
problem with interval values printed in the wrong time position.

svn path=/trunk/; revision=22645
2007-08-24 21:38:10 +00:00
Stig Bjørlykke
d46fcba723 Print the first interval in the graph.
Print zero label string in the X Axis (not centered).
Always start the graph with the first interval, not at zero x value.

svn path=/trunk/; revision=22644
2007-08-24 21:23:34 +00:00
Stig Bjørlykke
5040aa1613 Fixed drawing of X Axis decimal values: "0. 50" -> "0.050"
svn path=/trunk/; revision=22610
2007-08-23 21:51:36 +00:00
Stephen Fisher
1f786cac31 Updates to initial check-in of pixmap saving feature:
- Bump minimum GTK version from 2.4 to 2.6 in code and users manual
 - Free some strings after we're done with them 
 

svn path=/trunk/; revision=22170
2007-06-23 05:58:01 +00:00
Stephen Fisher
0ba44094e6 Fix enhancement bug #1337: Export IO Graphs
This new code adds a save button to the Statistics IO Graphs window and
is also reusable by any other code that uses GDK Pixmaps to draw graphs.
The Gdk-pixbuf library included in GTK is used for this save function.


svn path=/trunk/; revision=22166
2007-06-22 22:22:10 +00:00
Sebastien Tandel
76729e5d0f From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).

The failures fall into two categories:
  (1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'.  This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
  (2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size.  Such values need to be cast to 'long
long' or 'unsigned long long'.

svn path=/trunk/; revision=21975
2007-05-29 02:43:18 +00:00
Stephen Fisher
1909b97d4d Remove all warnings under Unix for the gtk/ directory.
svn path=/trunk/; revision=21160
2007-03-24 00:45:11 +00:00
Ulf Lamping
407d0aeab0 fix all warnings in gtk dir & set the "treat all warnings as errors" MSVC flag
svn path=/trunk/; revision=21080
2007-03-21 03:26:26 +00:00
Stephen Fisher
7389b3fabd Add a "Bits/Tick" option to the IO Stats dialog to complement the
"Bytes/Tick" option.


svn path=/trunk/; revision=20997
2007-03-07 23:39:45 +00:00