refractor2
This commit is contained in:
parent
a194c58812
commit
476930b457
|
@ -71,8 +71,7 @@ bin/%.o: src/%.c
|
||||||
|
|
||||||
|
|
||||||
install: $(PROGRAM)
|
install: $(PROGRAM)
|
||||||
gtk-builder-convert assets/iPDC.glade assets/iPDC.xml
|
mkdir -p $(CREATE_DIR)iPDC/
|
||||||
mkdir -p $(CREATE_DIR)iPDC/$
|
|
||||||
cp -f assets/$(FILE1) $(CREATE_DIR)iPDC/$(FILE1)
|
cp -f assets/$(FILE1) $(CREATE_DIR)iPDC/$(FILE1)
|
||||||
cp -f assets/$(FILE2) $(CREATE_DIR)iPDC/$(FILE2)
|
cp -f assets/$(FILE2) $(CREATE_DIR)iPDC/$(FILE2)
|
||||||
cp -f assets/$(FILE3) $(CREATE_DIR)iPDC/$(FILE3)
|
cp -f assets/$(FILE3) $(CREATE_DIR)iPDC/$(FILE3)
|
||||||
|
|
|
@ -322,14 +322,6 @@ sends data frames.</property>
|
||||||
<object class="GtkMenu">
|
<object class="GtkMenu">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<child>
|
|
||||||
<object class="GtkMenuItem" id="attack_detection">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">False</property>
|
|
||||||
<property name="label" translatable="yes">Attack Detection</property>
|
|
||||||
<property name="use-underline">True</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkMenuItem" id="data_vis">
|
<object class="GtkMenuItem" id="data_vis">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
|
@ -0,0 +1,663 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.38.2 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.0"/>
|
||||||
|
<object class="GtkSizeGroup"/>
|
||||||
|
<object class="GtkAccelGroup" id="accelgroup1"/>
|
||||||
|
<object class="GtkImage" id="image1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-properties</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image10">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-go-up</property>
|
||||||
|
<property name="pixel-size">10</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image11">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-go-down</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image12">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-select-color</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image13">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-close</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image14">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-add</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image15">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-about</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-missing-image</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-quit</property>
|
||||||
|
<property name="pixel-size">10</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-open</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-properties</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image6">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-new</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image7">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-sort-ascending</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image8">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-remove</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkImage" id="image9">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="stock">gtk-media-stop</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkWindow" id="ipdc">
|
||||||
|
<property name="width-request">800</property>
|
||||||
|
<property name="height-request">600</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">iPDC - A Free Phasor Data Concentrator.
|
||||||
|
Supportive IEEE C37.118 Synchrophasor std.</property>
|
||||||
|
<property name="title" translatable="yes">iPDC - v1.3</property>
|
||||||
|
<property name="window-position">center-on-parent</property>
|
||||||
|
<property name="default-width">710</property>
|
||||||
|
<property name="default-height">590</property>
|
||||||
|
<property name="icon-name">gnome-obex-server</property>
|
||||||
|
<property name="focus-on-map">False</property>
|
||||||
|
<property name="gravity">center</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLayout" id="layout1">
|
||||||
|
<property name="width-request">800</property>
|
||||||
|
<property name="height-request">600</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="exit_button">
|
||||||
|
<property name="label" translatable="yes">EXIT</property>
|
||||||
|
<property name="width-request">0</property>
|
||||||
|
<property name="height-request">0</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to exit the iPDC Software.</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">700</property>
|
||||||
|
<property name="y">555</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuBar" id="menubar">
|
||||||
|
<property name="width-request">710</property>
|
||||||
|
<property name="height-request">40</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="can-default">True</property>
|
||||||
|
<property name="has-tooltip">True</property>
|
||||||
|
<property name="resize-mode">immediate</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="menuitem1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">_File</property>
|
||||||
|
<property name="use-underline">True</property>
|
||||||
|
<child type="submenu">
|
||||||
|
<object class="GtkMenu" id="menu1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="enter_pdc_detail_menuitem">
|
||||||
|
<property name="label">New iPDC Setup</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to create a new iPDC setup file.</property>
|
||||||
|
<property name="image">image6</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="open_ipdc_setup">
|
||||||
|
<property name="label">Open iPDC Setup</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to open the saved iPDC setup file.</property>
|
||||||
|
<property name="image">image4</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="pdc_details_menuitem">
|
||||||
|
<property name="label" translatable="yes">iPDC Properties</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">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</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to view the iPDC setup informations.</property>
|
||||||
|
<property name="image">image5</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_conn_table">
|
||||||
|
<property name="label" translatable="yes">Connection Table</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Display source and destination devices connection tables.</property>
|
||||||
|
<property name="image">image12</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="exit_menuitem">
|
||||||
|
<property name="label" translatable="yes">Quit</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">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</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to exit the iPDC Software.</property>
|
||||||
|
<property name="image">image3</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="menuitem2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Edit</property>
|
||||||
|
<property name="use-underline">True</property>
|
||||||
|
<child type="submenu">
|
||||||
|
<object class="GtkMenu" id="menu2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_add_source">
|
||||||
|
<property name="label">Add Source</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">PMU/PDC device from which configuration
|
||||||
|
and data frames would be received.</property>
|
||||||
|
<property name="image">image7</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_remove_source">
|
||||||
|
<property name="label">Remove Source</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_ENTER_NOTIFY_MASK | GDK_STRUCTURE_MASK</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Remove PMU/PDC device from which
|
||||||
|
data frames are being received.</property>
|
||||||
|
<property name="image">image8</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_data_off">
|
||||||
|
<property name="label" translatable="yes">Data OFF</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">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</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Turn OFF data transmission of PMU/PDC device from
|
||||||
|
which data frames are being received.</property>
|
||||||
|
<property name="image">image9</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_data_on">
|
||||||
|
<property name="label" translatable="yes">Data ON</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">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</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Turn ON data transmission of PMU/PDC device whose
|
||||||
|
data transmission is put OFF.</property>
|
||||||
|
<property name="image">image10</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_request_cfg">
|
||||||
|
<property name="label" translatable="yes">Request CFG</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Send Command frame to PMU/PDC device
|
||||||
|
to get configuration frame.</property>
|
||||||
|
<property name="image">image11</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_add_destination">
|
||||||
|
<property name="label" translatable="yes">Add Destination</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">PDC device to whom iPDC sends
|
||||||
|
configuration and data frames.</property>
|
||||||
|
<property name="image">image14</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menu_remove_destination">
|
||||||
|
<property name="label" translatable="yes">Remove Destination</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Remove PDC device to whom iPDC
|
||||||
|
sends data frames.</property>
|
||||||
|
<property name="image">image13</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="menuitem3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">service tools</property>
|
||||||
|
<property name="label" translatable="yes">Tools</property>
|
||||||
|
<child type="submenu">
|
||||||
|
<object class="GtkMenu">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="attack_detection">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Attack Detection</property>
|
||||||
|
<property name="use-underline">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="data_vis">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Data Visualization</property>
|
||||||
|
<property name="use-underline">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="menuitem4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">_Help</property>
|
||||||
|
<property name="use-underline">True</property>
|
||||||
|
<child type="submenu">
|
||||||
|
<object class="GtkMenu" id="menu3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="about_menuitem">
|
||||||
|
<property name="label">About</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="events">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</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Click to see the publisher, licensing, and version details.</property>
|
||||||
|
<property name="image">image15</property>
|
||||||
|
<property name="use-stock">False</property>
|
||||||
|
<property name="always-show-image">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLinkButton" id="linkbutton1">
|
||||||
|
<property name="label" translatable="yes">Go online</property>
|
||||||
|
<property name="width-request">100</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="has-tooltip">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">For more information visit the iPDC official web
|
||||||
|
'https://github.com/karthikmurakonda/iPDC-suite/discussions'.</property>
|
||||||
|
<property name="image">image1</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<property name="uri">https://github.com/karthikmurakonda/iPDC-suite/discussions</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">500</property>
|
||||||
|
<property name="y">555</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="admin_label">
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">40</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">20</property>
|
||||||
|
<property name="y">137</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="rights_label">
|
||||||
|
<property name="width-request">180</property>
|
||||||
|
<property name="height-request">28</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="selectable">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">335</property>
|
||||||
|
<property name="y">560</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTextView" id="text_view1">
|
||||||
|
<property name="width-request">800</property>
|
||||||
|
<property name="height-request">70</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="editable">False</property>
|
||||||
|
<property name="justification">fill</property>
|
||||||
|
<property name="cursor-visible">False</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="y">40</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="time_lable">
|
||||||
|
<property name="width-request">162</property>
|
||||||
|
<property name="height-request">20</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Local Time of System</property>
|
||||||
|
<property name="justify">right</property>
|
||||||
|
<property name="track-visited-links">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="style" value="normal"/>
|
||||||
|
<attribute name="weight" value="heavy"/>
|
||||||
|
<attribute name="gravity" value="west"/>
|
||||||
|
<attribute name="foreground" value="#712204430000"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">545</property>
|
||||||
|
<property name="y">115</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkHSeparator" id="hseparator1">
|
||||||
|
<property name="width-request">800</property>
|
||||||
|
<property name="height-request">1</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="y">536</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<!-- n-columns=1 n-rows=9 -->
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="width-request">100</property>
|
||||||
|
<property name="height-request">80</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="row-spacing">9</property>
|
||||||
|
<property name="row-homogeneous">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="add_pmu_button">
|
||||||
|
<property name="label" translatable="yes">Add a Source Device</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">PMU/PDC device from which configuration
|
||||||
|
and data frames would be received.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="utility_tools">
|
||||||
|
<property name="label" translatable="yes">Utility tools</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">8</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="display_conn_table_button">
|
||||||
|
<property name="label" translatable="yes">iPDC Connection Table</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Display source and destination devices connection tables.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">7</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="remove_pdc_button">
|
||||||
|
<property name="label" translatable="yes">Remove a Destination Device</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Remove PDC device to whom iPDC
|
||||||
|
sends data frames.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">6</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="add_pdc_button">
|
||||||
|
<property name="label" translatable="yes">Add a Destination Device</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">PDC device to whom iPDC sends
|
||||||
|
configuration and data frames.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">5</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="cmd_cfg_button">
|
||||||
|
<property name="label" translatable="yes">Request Configuration Frame</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Send Command frame to PMU/PDC device
|
||||||
|
to get configuration frame.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">4</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="cmd_data_on_button">
|
||||||
|
<property name="label" translatable="yes">Turn ON Data Transmission</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Turn ON data transmission of PMU/PDC device whose
|
||||||
|
data transmission is put OFF.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="remove_pmu_button">
|
||||||
|
<property name="label" translatable="yes">Remove a Source Device</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Remove PMU/PDC device from which
|
||||||
|
data frames are being received.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="cmd_data_off_button">
|
||||||
|
<property name="label" translatable="yes">Turn OFF Data Transmission</property>
|
||||||
|
<property name="width-request">284</property>
|
||||||
|
<property name="height-request">35</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Turn OFF data transmission of PMU/PDC device from
|
||||||
|
which data frames are being received.</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">20</property>
|
||||||
|
<property name="y">163</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment">
|
||||||
|
<property name="width-request">100</property>
|
||||||
|
<property name="height-request">80</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTextView" id="text_view">
|
||||||
|
<property name="width-request">475</property>
|
||||||
|
<property name="height-request">375</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">iPDC - A Free Phasor Data Concentrator.
|
||||||
|
Supportive IEEE C37.118 Synchrophasor std.</property>
|
||||||
|
<property name="editable">False</property>
|
||||||
|
<property name="justification">fill</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="x">320</property>
|
||||||
|
<property name="y">165</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
|
@ -25,4 +25,4 @@ struct vis_data{
|
||||||
|
|
||||||
struct vis_data *vis_data_head;
|
struct vis_data *vis_data_head;
|
||||||
|
|
||||||
gboolean update_images(gpointer* pars);
|
gboolean update_vis(gpointer* pars);
|
|
@ -124,7 +124,6 @@ int main(int argc, char **argv)
|
||||||
GW(menuitem3);
|
GW(menuitem3);
|
||||||
GW(attack_detection);
|
GW(attack_detection);
|
||||||
GW(data_vis);
|
GW(data_vis);
|
||||||
GW(utility_tools);
|
|
||||||
#undef GW
|
#undef GW
|
||||||
|
|
||||||
/* Connect signals */
|
/* Connect signals */
|
||||||
|
@ -292,8 +291,7 @@ int main(int argc, char **argv)
|
||||||
g_signal_connect (data->about_menuitem, "activate", G_CALLBACK(about_ipdc), NULL);
|
g_signal_connect (data->about_menuitem, "activate", G_CALLBACK(about_ipdc), NULL);
|
||||||
g_signal_connect (data->ipdc, "destroy", G_CALLBACK(destroy), NULL);
|
g_signal_connect (data->ipdc, "destroy", G_CALLBACK(destroy), NULL);
|
||||||
|
|
||||||
g_signal_connect(data->attack_detection,"activate",G_CALLBACK(attack_detection_window),NULL);
|
g_signal_connect(data->data_vis, "activate", G_CALLBACK(utility_tools), NULL);
|
||||||
g_signal_connect(data->data_vis, "activate", G_CALLBACK(data_vis_window), NULL);
|
|
||||||
|
|
||||||
|
|
||||||
/* Destroy builder, since we don't need it anymore */
|
/* Destroy builder, since we don't need it anymore */
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
int loops = 0;
|
int loops = 0;
|
||||||
|
|
||||||
gboolean update_images(gpointer* pars){
|
gboolean update_vis(gpointer* pars){
|
||||||
int match=0,id, cfg_match=0;
|
int match=0,id, cfg_match=0;
|
||||||
myParameters* parameters = (myParameters*) pars;
|
myParameters* parameters = (myParameters*) pars;
|
||||||
struct cfg_frame* temp_cfg;
|
struct cfg_frame* temp_cfg;
|
||||||
|
|
|
@ -454,7 +454,7 @@ void utility_tools(GtkButton *but, gpointer udata)
|
||||||
}
|
}
|
||||||
temp_visptr->next = NULL;
|
temp_visptr->next = NULL;
|
||||||
|
|
||||||
guint pid = g_timeout_add(20, (GSourceFunc)update_images, data);
|
guint pid = g_timeout_add(20, (GSourceFunc)update_vis, data);
|
||||||
|
|
||||||
|
|
||||||
// gtk_widget_set_hexpand(GTK_WIDGET(chart), TRUE);
|
// gtk_widget_set_hexpand(GTK_WIDGET(chart), TRUE);
|
||||||
|
|
Loading…
Reference in New Issue