File: OpenTrace.h

package info (click to toggle)
ltt 0.9.5pre6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,256 kB
  • ctags: 1,630
  • sloc: ansic: 17,284; sh: 8,010; makefile: 252
file content (99 lines) | stat: -rw-r--r-- 3,371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * OpenTrace.h
 *
 * Copyright (C) 1999 Karim Yaghmour.
 *
 * This is distributed under GPL.
 *
 * Header for open trace window.
 *
 * History : 
 *    K.Y., 23/06/1999, Initial typing.
 *
 * Note : The current version of this toolkit is for linux 2.2.0.
 */

#ifndef __TRACE_TOOLKIT_OPEN_TRACE__
#define __TRACE_TOOLKIT_OPEN_TRACE__

#include <EventOptions.h>

#include <gtk/gtk.h>

/* Define the two different files to get */
#define OT_PROF_FILE  0
#define OT_PROC_FILE  1

/* Define what the OK and Cancel callbacks look like */
typedef void _OTCBCancel
         (gpointer  /* The system view corresponding to this open trace */);
typedef void _OTCBOK
         (gpointer  /* The system view corresponding to this open trace */,
	  gchar*    /* Prof file name string */,
	  gchar*    /* Proc file name string */);

/* Trace file selection window */
typedef struct _openTraceWindow
{
  /* The data */
  gpointer      SysView;
  GtkWidget*    ParentWin;          /* Parent window */
  _OTCBOK*      CBOK;   
  _OTCBCancel*  CBCancel;

  /* The widgets */
  GtkWidget*    Window;             /* Window to choose files */

  GtkWidget*    VBox;               /* Main vertical box */

  GtkWidget*    ProfHBox;           /* Horizontal box containing text and browse button for prof */
  GtkWidget*    ProcHBox;           /* Horizontal box containing text and browse button for proc */
  GtkWidget*    ButtonHBox;         /* Box containing OKButton and CancelButton */

  GtkWidget*    ProfLabel;          /* Label asking for prof file */
  GtkWidget*    ProcLabel;          /* Label asking for proc file */

  GtkWidget*    ProfFileTextEntry;  /* Where prof file name is displayed */
  GtkWidget*    ProcFileTextEntry;  /* Where proc file name is displayed */

  GtkWidget*    ProfFileBrowse;     /* Button to browse for prof file */
  GtkWidget*    ProcFileBrowse;     /* Button to browse for proc file */

  GtkWidget*    ProfFileSelect;     /* The window where the prof file is to be selected */
  GtkWidget*    ProcFileSelect;     /* The window where the proc file is to be selected */

  GtkWidget*    OKButton;           /* OK Button */
  GtkWidget*    CancelButton;       /* Cancel Button */
} openTraceWindow;

_OTCBCancel OTCBCancel;
_OTCBOK     OTCBOK;

#if 0
/* Callback function prototypes */
void OTCBCancel
         (gpointer  /* The system view corresponding to this open trace */);
void OTCBOK
         (gpointer  /* The system view corresponding to this open trace */,
	  gchar*    /* Prof file name string */,
	  gchar*    /* Proc file name string */);
#endif

/* Function prototypes */
void             OTSetFocus
                      (openTraceWindow* /* The open trace window */);
void             OTConnectSignals
                      (openTraceWindow* /* The open trace window */);
void             OTShowOpenTraceWindow
                      (openTraceWindow* /* The open trace window */);
openTraceWindow* OTCreateOpenTraceWindow
		      (gpointer         /* The system view */,
		       GtkWidget*       /* The parent window */,
                       _OTCBOK*         /* Function to call in case of OK */,
		       _OTCBCancel*     /* Function to call in case of cancel or close */);
void             OTDestroyOpenTraceWindow
                      (openTraceWindow* /* The open trace window */);


#endif /* __TRACE_TOOLKIT_OPEN_TRACE__ */