From 4ca86dc606dd7d1e03aab1557bebb8d577995a6d Mon Sep 17 00:00:00 2001 From: karthikmurakonda Date: Sat, 12 Nov 2022 12:26:56 +0530 Subject: [PATCH] refractor3 --- iPDC/assets/utility_tools.ui | 161 +--------------------------------- iPDC/assets/utility_tools.ui~ | 157 +-------------------------------- iPDC/inc/attack_detection.h | 3 - iPDC/inc/data_vis.h | 3 - iPDC/inc/ipdcGui.h | 2 - iPDC/src/attack_detection.c | 19 ---- iPDC/src/data_vis.c | 19 ---- iPDC/src/ipdc.c | 3 - 8 files changed, 4 insertions(+), 363 deletions(-) delete mode 100644 iPDC/inc/attack_detection.h delete mode 100644 iPDC/inc/data_vis.h delete mode 100644 iPDC/src/attack_detection.c delete mode 100644 iPDC/src/data_vis.c diff --git a/iPDC/assets/utility_tools.ui b/iPDC/assets/utility_tools.ui index e14a489..705b934 100644 --- a/iPDC/assets/utility_tools.ui +++ b/iPDC/assets/utility_tools.ui @@ -13,166 +13,11 @@ 10 10 3 - - - 900 - True - False - True - immediate - - - True - False - _File - True - - - True - False - - - gtk-new - True - False - True - True - - - - - gtk-open - True - False - True - True - - - - - gtk-save - True - False - True - True - - - - - gtk-save-as - True - False - True - True - - - - - True - False - - - - - gtk-quit - True - False - True - True - - - - - - - - - True - False - _Edit - True - - - True - False - - - gtk-cut - True - False - True - True - - - - - gtk-copy - True - False - True - True - - - - - gtk-paste - True - False - True - True - - - - - gtk-delete - True - False - True - True - - - - - - - - - True - False - _View - True - - - - - True - False - _Help - True - - - True - False - - - gtk-about - True - False - True - True - - - - - - - - - 100 - 80 + 1309 + 1022 True True False @@ -1046,7 +891,7 @@ - 30 + 6 diff --git a/iPDC/assets/utility_tools.ui~ b/iPDC/assets/utility_tools.ui~ index bb9d77f..ff89665 100644 --- a/iPDC/assets/utility_tools.ui~ +++ b/iPDC/assets/utility_tools.ui~ @@ -13,161 +13,6 @@ 10 10 3 - - - 900 - True - False - True - immediate - - - True - False - _File - True - - - True - False - - - gtk-new - True - False - True - True - - - - - gtk-open - True - False - True - True - - - - - gtk-save - True - False - True - True - - - - - gtk-save-as - True - False - True - True - - - - - True - False - - - - - gtk-quit - True - False - True - True - - - - - - - - - True - False - _Edit - True - - - True - False - - - gtk-cut - True - False - True - True - - - - - gtk-copy - True - False - True - True - - - - - gtk-paste - True - False - True - True - - - - - gtk-delete - True - False - True - True - - - - - - - - - True - False - _View - True - - - - - True - False - _Help - True - - - True - False - - - gtk-about - True - False - True - True - - - - - - - - @@ -211,7 +56,7 @@ - Attack Detection + Event Detection True True True diff --git a/iPDC/inc/attack_detection.h b/iPDC/inc/attack_detection.h deleted file mode 100644 index 9747977..0000000 --- a/iPDC/inc/attack_detection.h +++ /dev/null @@ -1,3 +0,0 @@ -#include -void attack_detection_window(GtkButton *widget,gpointer udata); - diff --git a/iPDC/inc/data_vis.h b/iPDC/inc/data_vis.h deleted file mode 100644 index 83c913d..0000000 --- a/iPDC/inc/data_vis.h +++ /dev/null @@ -1,3 +0,0 @@ -#include - -void data_vis_window(GtkButton *widget,gpointer udata); \ No newline at end of file diff --git a/iPDC/inc/ipdcGui.h b/iPDC/inc/ipdcGui.h index 6193671..da7c8fd 100755 --- a/iPDC/inc/ipdcGui.h +++ b/iPDC/inc/ipdcGui.h @@ -90,9 +90,7 @@ struct _ChData /*Tools menu*/ GtkWidget *menuitem3; - GtkWidget *attack_detection; GtkWidget *data_vis; - }; /* ---------------------------------------------------------------- */ diff --git a/iPDC/src/attack_detection.c b/iPDC/src/attack_detection.c deleted file mode 100644 index e767c07..0000000 --- a/iPDC/src/attack_detection.c +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include - -void attack_detection_window(GtkButton *widget,gpointer udata) -{ - GtkWidget *new_window; - new_window = gtk_dialog_new(); - - //gtk_window_fullscreen(GTK_WINDOW(new_window)); - gtk_window_set_default_size(GTK_WINDOW(new_window), 800, 600); - gtk_window_set_resizable(GTK_WINDOW(new_window), FALSE); - gtk_window_set_position(GTK_WINDOW(new_window), GTK_WIN_POS_CENTER); - //gtk_window_set_icon(GTK_WINDOW(new_window), create_pixbuf("/usr/local/share/iPDC/logo.png")); - - /* Set the Title of Main Window */ - gtk_window_set_title (GTK_WINDOW (new_window), "iPDC"); - g_signal_connect (new_window, "destroy", G_CALLBACK(gtk_widget_destroy), new_window); - gtk_widget_show(new_window); -} \ No newline at end of file diff --git a/iPDC/src/data_vis.c b/iPDC/src/data_vis.c deleted file mode 100644 index 38713db..0000000 --- a/iPDC/src/data_vis.c +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include - -void data_vis_window(GtkButton *widget,gpointer udata) -{ - GtkWidget *new_window; - new_window = gtk_dialog_new(); - - //gtk_window_fullscreen(GTK_WINDOW(new_window)); - gtk_window_set_default_size(GTK_WINDOW(new_window), 800, 600); - gtk_window_set_resizable(GTK_WINDOW(new_window), FALSE); - gtk_window_set_position(GTK_WINDOW(new_window), GTK_WIN_POS_CENTER); - //gtk_window_set_icon(GTK_WINDOW(new_window), create_pixbuf("/usr/local/share/iPDC/logo.png")); - - /* Set the Title of Main Window */ - gtk_window_set_title (GTK_WINDOW (new_window), "iPDC"); - g_signal_connect (new_window, "destroy", G_CALLBACK(gtk_widget_destroy), new_window); - gtk_widget_show(new_window); -} \ No newline at end of file diff --git a/iPDC/src/ipdc.c b/iPDC/src/ipdc.c index 9c44e01..6d83271 100755 --- a/iPDC/src/ipdc.c +++ b/iPDC/src/ipdc.c @@ -45,8 +45,6 @@ #include "parser.h" #include "global.h" #include "ipdcGui.h" -#include "attack_detection.h" -#include "data_vis.h" #include "utility_tools.h" /* Common fixed path for storage of few common files */ @@ -122,7 +120,6 @@ int main(int argc, char **argv) GW(admin_label); GW(time_lable); GW(menuitem3); - GW(attack_detection); GW(data_vis); #undef GW