Update FSF address
[lttv.git] / lttv / modules / gui / histogram / histobuttonwidget.h
1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2006 Parisa Heidari
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 * MA 02110-1301, USA.
17 */
18
19 #ifndef _HISTOBUTTONWIDGET_H
20 #define _HISTOBUTTONWIDGET_H
21
22 #include <gtk/gtk.h>
23 #include <lttv/state.h>
24 #include "histocfv.h"
25 #include "histodrawitem.h"
26
27
28 /* The ButtonWidget
29 *
30 * Tasks :
31 * Create a widget
32 * containing 3 buttons zoomIn,zoonOut and zoomFit to change the vertical scale.
33 *
34 */
35 #ifndef TYPE_ButtonWidget_DEFINED
36 #define TYPE_ButtonWidget_DEFINED
37 typedef struct _ButtonWidget ButtonWidget;
38 #endif //TYPE_ButtonWidget_DEFINED
39
40 #ifndef TYPE_HistoControlFlowData_DEFINED
41 #define TYPE_HistoControlFlowData_DEFINED
42 typedef struct _HistoControlFlowData HistoControlFlowData;
43 #endif //TYPE_HistoControlFlowData_DEFINED
44
45 struct _ButtonWidget {
46
47 GtkWidget *buttonP;
48 GtkWidget *buttonM;
49 GtkWidget *buttonFit;
50
51
52 GtkWidget *vbox1;//buttons are placed on this vbox
53
54 GtkWidget *hbox;//Parent Widget containing buttons and drawing area.
55 HistoControlFlowData *histo_control_flow_data;
56
57 };
58
59
60 void histo_copy_pixmap_region(histoDrawing_t *drawing,GdkDrawable *dest,
61 GdkGC *gc, GdkDrawable *src,
62 gint xsrc, gint ysrc,
63 gint xdest, gint ydest, gint width, gint height);
64
65 void histo_rectangle_pixmap (GdkGC *gc,gboolean filled, gint x, gint y,
66 gint width, gint height,histoDrawing_t *value);
67
68 ButtonWidget *histo_buttonwidget_construct(HistoControlFlowData *histocontrol_flow_data);
69
70 void histo_buttonwidget_destroy(ButtonWidget *buttonwidget);
71
72 GtkWidget *histo_buttonwidget_get_widget(ButtonWidget *button_widget);
73 void histo_update_pixmap_size(histoDrawing_t *value,
74 guint width);
75 #endif //_HISTOBUTTONWIDGET_H
This page took 0.029856 seconds and 4 git commands to generate.