97 lines
2.8 KiB
C
97 lines
2.8 KiB
C
/*
|
|
* 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
|
|
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
|
* 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
|
|
*/
|
|
|
|
#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_ */
|