ui_tree_view.h 1.63 KB
Newer Older
Cedric Roux's avatar
 
Cedric Roux committed
1
2
3
#ifndef UI_TREE_VIEW_H_
#define UI_TREE_VIEW_H_

4
5
#include "ui_filters.h"

6
typedef enum col_type_e
Cedric Roux's avatar
Cedric Roux committed
7
8
{
    COL_MSG_NUM = 0,
9
    COL_LTE_TIME,
10
    COL_MESSAGE,
Cedric Roux's avatar
Cedric Roux committed
11
12
    COL_FROM_TASK,
    COL_TO_TASK,
winckel's avatar
winckel committed
13
14
    COL_INSTANCE,

15
    COL_MESSAGE_ID,
winckel's avatar
winckel committed
16
17
    COL_FROM_TASK_ID,
    COL_TO_TASK_ID,
18
    COL_FOREGROUND,
19
    COL_BACKGROUND,
20
    COL_STRIKETHROUGH,
winckel's avatar
winckel committed
21

Cedric Roux's avatar
Cedric Roux committed
22
23
    COL_BUFFER,
    NUM_COLS
24
25
26
27
28
29
30
31
32
33
34
35
36
37
} col_type_t;

typedef enum ui_tree_view_menu_type_e
{
    MENU_MESSAGE = 0,
    MENU_FROM_TASK,
    MENU_TO_TASK,
    MENU_INSTANCE,
    NUM_MENU_TYPE,
} ui_tree_view_menu_type_t;

typedef struct ui_tree_view_menu_enable_s
{
    GtkWidget *menu_enable;
38
    ui_filter_item_t *filter_item;
39
40
} ui_tree_view_menu_enable_t;

41
42
43
44
45
46
typedef struct ui_tree_view_menu_color_s
{
    gboolean foreground;
    ui_tree_view_menu_enable_t *menu_enable;
} ui_tree_view_menu_color_t;

47
48
extern GtkWidget *ui_tree_view_menu;
extern ui_tree_view_menu_enable_t ui_tree_view_menu_enable[NUM_MENU_TYPE];
Cedric Roux's avatar
Cedric Roux committed
49

winckel's avatar
winckel committed
50
51
extern GdkEventButton *ui_tree_view_last_event;

Cedric Roux's avatar
 
Cedric Roux committed
52
53
int ui_tree_view_create(GtkWidget *window, GtkWidget *vbox);

54
int ui_tree_view_new_signal_ind(const uint32_t message_number, const gchar *lte_time,
55
56
57
58
                                const uint32_t message_id, const char *message_name,
                                const uint32_t origin_task_id, const char *origin_task,
                                const uint32_t destination_task_id, const char *to_task,
                                uint32_t instance, gpointer buffer);
Cedric Roux's avatar
 
Cedric Roux committed
59
60
61

void ui_tree_view_destroy_list(GtkWidget *list);

winckel's avatar
winckel committed
62
void ui_tree_view_select_row(gint row);
63

64
65
void ui_tree_view_refilter(void);

66
67
guint ui_tree_view_get_filtered_number(void);

Cedric Roux's avatar
 
Cedric Roux committed
68
#endif /* UI_TREE_VIEW_H_ */