git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5568 818b1a75-f10b-46b9-bf7c-635c3b92a50f
105 lines
3.1 KiB
C
105 lines
3.1 KiB
C
/*******************************************************************************
|
|
OpenAirInterface
|
|
Copyright(c) 1999 - 2014 Eurecom
|
|
|
|
OpenAirInterface is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
|
|
OpenAirInterface is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenAirInterface.The full GNU General Public License is
|
|
included in this distribution in the file called "COPYING". If not,
|
|
see <http://www.gnu.org/licenses/>.
|
|
|
|
Contact Information
|
|
OpenAirInterface Admin: openair_admin@eurecom.fr
|
|
OpenAirInterface Tech : openair_tech@eurecom.fr
|
|
OpenAirInterface Dev : openair4g-devel@eurecom.fr
|
|
|
|
Address : Eurecom, Compus SophiaTech 450, route des chappes, 06451 Biot, France.
|
|
|
|
*******************************************************************************/
|
|
|
|
#ifndef UI_TREE_VIEW_H_
|
|
#define UI_TREE_VIEW_H_
|
|
|
|
#include "ui_filters.h"
|
|
#include "ui_notifications.h"
|
|
|
|
typedef enum col_type_e
|
|
{
|
|
COL_MSG_NUM = 0,
|
|
COL_LTE_TIME,
|
|
COL_MESSAGE,
|
|
COL_FROM_TASK,
|
|
COL_TO_TASK,
|
|
COL_INSTANCE,
|
|
|
|
COL_MESSAGE_ID,
|
|
COL_FROM_TASK_ID,
|
|
COL_TO_TASK_ID,
|
|
COL_INSTANCE_ID,
|
|
COL_FOREGROUND,
|
|
COL_BACKGROUND,
|
|
COL_STRIKETHROUGH,
|
|
COL_STYLE,
|
|
COL_WEIGHT,
|
|
COL_UNDERLINE,
|
|
|
|
COL_BUFFER,
|
|
NUM_COLS
|
|
} 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;
|
|
ui_filter_item_t *filter_item;
|
|
} ui_tree_view_menu_enable_t;
|
|
|
|
typedef struct ui_tree_view_menu_color_s
|
|
{
|
|
gboolean foreground;
|
|
ui_tree_view_menu_enable_t *menu_enable;
|
|
} ui_tree_view_menu_color_t;
|
|
|
|
extern GtkWidget *ui_tree_view_menu;
|
|
extern ui_tree_view_menu_enable_t ui_tree_view_menu_enable[NUM_MENU_TYPE];
|
|
|
|
extern GdkEventButton *ui_tree_view_last_event;
|
|
|
|
int ui_tree_view_create(GtkWidget *window, GtkWidget *vbox);
|
|
|
|
int ui_tree_view_new_signal_ind(const uint32_t message_number, const gchar *lte_time,
|
|
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);
|
|
|
|
void ui_tree_view_destroy_list(GtkWidget *list);
|
|
|
|
void ui_tree_view_select_row(gint row);
|
|
|
|
void ui_tree_view_refilter(void);
|
|
|
|
void ui_tree_view_foreach_message(message_write_callback_t callback, gboolean filter);
|
|
|
|
guint ui_tree_view_get_filtered_number(void);
|
|
|
|
#endif /* UI_TREE_VIEW_H_ */
|