ui_tree_view.h 2.84 KB
Newer Older
1 2 3 4 5
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

Cedric Roux's avatar
 
Cedric Roux committed
22 23 24
#ifndef UI_TREE_VIEW_H_
#define UI_TREE_VIEW_H_

25
#include "ui_filters.h"
26
#include "ui_notifications.h"
27

28
typedef enum col_type_e
Cedric Roux's avatar
Cedric Roux committed
29 30
{
    COL_MSG_NUM = 0,
31
    COL_LTE_TIME,
32
    COL_MESSAGE,
Cedric Roux's avatar
Cedric Roux committed
33 34
    COL_FROM_TASK,
    COL_TO_TASK,
winckel's avatar
winckel committed
35 36
    COL_INSTANCE,

37
    COL_MESSAGE_ID,
winckel's avatar
winckel committed
38 39
    COL_FROM_TASK_ID,
    COL_TO_TASK_ID,
40
    COL_INSTANCE_ID,
41
    COL_FOREGROUND,
42
    COL_BACKGROUND,
43
    COL_STRIKETHROUGH,
winckel's avatar
winckel committed
44 45 46
    COL_STYLE,
    COL_WEIGHT,
    COL_UNDERLINE,
winckel's avatar
winckel committed
47

Cedric Roux's avatar
Cedric Roux committed
48 49
    COL_BUFFER,
    NUM_COLS
50 51 52 53 54 55 56 57 58 59 60 61 62 63
} 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;
64
    ui_filter_item_t *filter_item;
65 66
} ui_tree_view_menu_enable_t;

67 68 69 70 71 72
typedef struct ui_tree_view_menu_color_s
{
    gboolean foreground;
    ui_tree_view_menu_enable_t *menu_enable;
} ui_tree_view_menu_color_t;

73 74
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
75

winckel's avatar
winckel committed
76 77
extern GdkEventButton *ui_tree_view_last_event;

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

80
int ui_tree_view_new_signal_ind(const uint32_t message_number, const gchar *lte_time,
81 82 83 84
                                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
85 86 87

void ui_tree_view_destroy_list(GtkWidget *list);

winckel's avatar
winckel committed
88
void ui_tree_view_select_row(gint row);
89

90 91
void ui_tree_view_refilter(void);

92 93
void ui_tree_view_foreach_message(message_write_callback_t callback, gboolean filter);

94 95
guint ui_tree_view_get_filtered_number(void);

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