From 145193cfb74b0dcf062e67548ad4b5cf57c7fca7 Mon Sep 17 00:00:00 2001 From: karthikmv Date: Thu, 11 Aug 2022 14:13:57 +0530 Subject: [PATCH] added tools menu buttons --- iPDC/iPDC.ui | 351 +++++++++++++++++++++++++++++-------------------- iPDC/ipdc.c | 4 +- iPDC/ipdcGui.c | 2 +- 3 files changed, 215 insertions(+), 142 deletions(-) diff --git a/iPDC/iPDC.ui b/iPDC/iPDC.ui index 5bc42e1..ba33434 100644 --- a/iPDC/iPDC.ui +++ b/iPDC/iPDC.ui @@ -1,105 +1,122 @@ - + + - - + True + False gtk-properties True + False gtk-go-up - 10 - 1 + 10 + 1 True + False gtk-go-down - 1 + 1 True + False gtk-select-color - 1 + 1 True + False gtk-close - 1 + 1 True + False gtk-add - 1 + 1 True + False gtk-about - 1 + 1 True + False gtk-missing-image True + False gtk-quit - 10 - 1 + 10 + 1 True + False gtk-open - 1 + 1 True + False gtk-properties - 1 + 1 True + False gtk-new - 1 + 1 True + False gtk-sort-ascending - 1 + 1 True + False gtk-remove - 1 + 1 True + False gtk-media-stop - 1 + 1 - iPDC - A Free Phasor Data Concentrator. + False + iPDC - A Free Phasor Data Concentrator. Supportive IEEE C37.118 Synchrophasor std. iPDC - v1.3 - center-on-parent - 710 - 590 - gnome-obex-server - False + center-on-parent + 710 + 590 + gnome-obex-server + False center True + False Add a Source Device - 240 - 35 + 240 + 35 True - True - True - PMU/PDC device from which configuration + True + True + PMU/PDC device from which configuration and data frames would be received. 0 @@ -111,12 +128,12 @@ and data frames would be received. Remove a Source Device - 240 - 35 + 240 + 35 True - True - True - Remove PMU/PDC device from which + True + True + Remove PMU/PDC device from which data frames are being received. 0 @@ -128,12 +145,12 @@ data frames are being received. Turn OFF Data Transmission - 240 - 35 + 240 + 35 True - True - True - Turn OFF data transmission of PMU/PDC device from + True + True + Turn OFF data transmission of PMU/PDC device from which data frames are being received. 0 @@ -145,12 +162,12 @@ which data frames are being received. Turn ON Data Transmission - 240 - 35 + 240 + 35 True - True - True - Turn ON data transmission of PMU/PDC device whose + True + True + Turn ON data transmission of PMU/PDC device whose data transmission is put OFF. 0 @@ -162,12 +179,12 @@ data transmission is put OFF. Request Configuration Frame - 240 - 35 + 240 + 35 True - True - True - Send Command frame to PMU/PDC device + True + True + Send Command frame to PMU/PDC device to get configuration frame. 0 @@ -179,12 +196,12 @@ to get configuration frame. Add a Destination Device - 240 - 35 + 240 + 35 True - True - True - PDC device to whom iPDC sends + True + True + PDC device to whom iPDC sends configuration and data frames. 0 @@ -196,12 +213,12 @@ configuration and data frames. Remove a Destination Device - 240 - 35 + 240 + 35 True - True - True - Remove PDC device to whom iPDC + True + True + Remove PDC device to whom iPDC sends data frames. 0 @@ -213,12 +230,12 @@ sends data frames. iPDC Connection Table - 240 - 35 + 240 + 35 True - True - True - Display source and destination devices connection tables. + True + True + Display source and destination devices connection tables. 0 @@ -229,12 +246,12 @@ sends data frames. EXIT - 100 - 35 + 100 + 35 True - True - True - Click to exit the iPDC Software. + True + True + Click to exit the iPDC Software. 603 @@ -243,72 +260,80 @@ sends data frames. - 710 - 40 + 710 + 40 True - True - True - immediate + False + True + True + immediate True + False _File - True + True True + False New iPDC Setup True + False GDK_POINTER_MOTION_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Click to create a new iPDC setup file. + Click to create a new iPDC setup file. image6 - False - True + False + True Open iPDC Setup True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Click to open the saved iPDC setup file. + Click to open the saved iPDC setup file. image4 - False - True + False + True iPDC Properties True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Click to view the iPDC setup informations. + Click to view the iPDC setup informations. image5 - False - True + False + True Connection Table True - Display source and destination devices connection tables. + False + Display source and destination devices connection tables. image12 - False - True + False + True Quit True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Click to exit the iPDC Software. + Click to exit the iPDC Software. image3 - False - True + False + True @@ -318,90 +343,129 @@ sends data frames. True + False Edit - True + True True + False Add Source True + False GDK_POINTER_MOTION_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - PMU/PDC device from which configuration + PMU/PDC device from which configuration and data frames would be received. image7 - False - True + False + True Remove Source True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Remove PMU/PDC device from which + Remove PMU/PDC device from which data frames are being received. image8 - False - True + False + True Data OFF True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Turn OFF data transmission of PMU/PDC device from + Turn OFF data transmission of PMU/PDC device from which data frames are being received. image9 - False - True + False + True Data ON True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Turn ON data transmission of PMU/PDC device whose + Turn ON data transmission of PMU/PDC device whose data transmission is put OFF. image10 - False - True + False + True Request CFG True - Send Command frame to PMU/PDC device + False + Send Command frame to PMU/PDC device to get configuration frame. image11 - False - True + False + True Add Destination True - PDC device to whom iPDC sends + False + PDC device to whom iPDC sends configuration and data frames. image14 - False - True + False + True Remove Destination True - Remove PDC device to whom iPDC + False + Remove PDC device to whom iPDC sends data frames. image13 - False - True + False + True + + + + + + + + + True + False + service tools + Tools + + + True + False + + + True + False + Attack Detection + True + + + + + True + False + Data Visualization + True @@ -411,20 +475,23 @@ sends data frames. True + False _Help - True + True True + False About True + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK - Click to see the publisher, licensing, and version details. + Click to see the publisher, licensing, and version details. image15 - False - True + False + True @@ -436,13 +503,13 @@ sends data frames. Go online - 100 - 35 + 100 + 35 True - True - True - True - For more information visit the iPDC official web + True + True + True + For more information visit the iPDC official web 'ipdc.codeplex.com/'. image1 none @@ -455,9 +522,10 @@ sends data frames. - 235 - 40 + 235 + 40 True + False 20 @@ -466,9 +534,10 @@ sends data frames. - 180 - 28 + 180 + 28 True + False True @@ -478,11 +547,12 @@ sends data frames. - 421 - 350 + 421 + 350 True False - iPDC - A Free Phasor Data Concentrator. + False + iPDC - A Free Phasor Data Concentrator. Supportive IEEE C37.118 Synchrophasor std. False fill @@ -494,13 +564,14 @@ Supportive IEEE C37.118 Synchrophasor std. - 720 - 70 + 720 + 70 True False + False False fill - False + False 36 @@ -508,9 +579,10 @@ Supportive IEEE C37.118 Synchrophasor std. - 800 - 20 + 800 + 20 True + False -20 @@ -519,15 +591,16 @@ Supportive IEEE C37.118 Synchrophasor std. - 162 - 20 + 162 + 20 True False - Local Time of System + False + Local Time of System + right + False 0 0 - right - False diff --git a/iPDC/ipdc.c b/iPDC/ipdc.c index 8a7f152..4e3087c 100755 --- a/iPDC/ipdc.c +++ b/iPDC/ipdc.c @@ -47,7 +47,7 @@ #include "ipdcGui.h" /* Common fixed path for storage of few common files */ -#define UI_fILE "/usr/local/share/iPDC/iPDC.xml" +#define UI_fILE "/home/chasingcar/dev/iPDC-v1.3.1/iPDC/iPDC.ui" /* ---------------------------------------------------------------- */ @@ -143,7 +143,7 @@ int main(int argc, char **argv) gtk_widget_set_sensitive(GTK_WIDGET(data->remove_pdc_button), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_button), FALSE); - gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), FALSE); + // gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE); diff --git a/iPDC/ipdcGui.c b/iPDC/ipdcGui.c index 8f96734..e0a0c38 100755 --- a/iPDC/ipdcGui.c +++ b/iPDC/ipdcGui.c @@ -1096,7 +1096,7 @@ void fill_pdc_details (char *filePath) gtk_widget_set_sensitive(GTK_WIDGET(data->remove_pdc_button), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_button), TRUE); - gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), TRUE); + // gtk_widget_set_visible(GTK_WIDGET(data->menuitem2), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->menu_conn_table), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE);