added tools menu buttons

This commit is contained in:
karthikmv 2022-08-11 14:13:57 +05:30
parent 1e7a4f0441
commit 145193cfb7
3 changed files with 215 additions and 142 deletions

View File

@ -1,105 +1,122 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <requires lib="gtk+" version="3.0"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkAccelGroup" id="accelgroup1"/> <object class="GtkAccelGroup" id="accelgroup1"/>
<object class="GtkImage" id="image1"> <object class="GtkImage" id="image1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-properties</property> <property name="stock">gtk-properties</property>
</object> </object>
<object class="GtkImage" id="image10"> <object class="GtkImage" id="image10">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-go-up</property> <property name="stock">gtk-go-up</property>
<property name="pixel_size">10</property> <property name="pixel-size">10</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image11"> <object class="GtkImage" id="image11">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-go-down</property> <property name="stock">gtk-go-down</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image12"> <object class="GtkImage" id="image12">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-select-color</property> <property name="stock">gtk-select-color</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image13"> <object class="GtkImage" id="image13">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-close</property> <property name="stock">gtk-close</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image14"> <object class="GtkImage" id="image14">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-add</property> <property name="stock">gtk-add</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image15"> <object class="GtkImage" id="image15">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-about</property> <property name="stock">gtk-about</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image2"> <object class="GtkImage" id="image2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-missing-image</property> <property name="stock">gtk-missing-image</property>
</object> </object>
<object class="GtkImage" id="image3"> <object class="GtkImage" id="image3">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-quit</property> <property name="stock">gtk-quit</property>
<property name="pixel_size">10</property> <property name="pixel-size">10</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image4"> <object class="GtkImage" id="image4">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-open</property> <property name="stock">gtk-open</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image5"> <object class="GtkImage" id="image5">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-properties</property> <property name="stock">gtk-properties</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image6"> <object class="GtkImage" id="image6">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-new</property> <property name="stock">gtk-new</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image7"> <object class="GtkImage" id="image7">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-sort-ascending</property> <property name="stock">gtk-sort-ascending</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image8"> <object class="GtkImage" id="image8">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-remove</property> <property name="stock">gtk-remove</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkImage" id="image9"> <object class="GtkImage" id="image9">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="stock">gtk-media-stop</property> <property name="stock">gtk-media-stop</property>
<property name="icon-size">1</property> <property name="icon_size">1</property>
</object> </object>
<object class="GtkWindow" id="ipdc"> <object class="GtkWindow" id="ipdc">
<property name="tooltip_text" translatable="yes">iPDC - A Free Phasor Data Concentrator. <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> Supportive IEEE C37.118 Synchrophasor std.</property>
<property name="title" translatable="yes">iPDC - v1.3</property> <property name="title" translatable="yes">iPDC - v1.3</property>
<property name="window_position">center-on-parent</property> <property name="window-position">center-on-parent</property>
<property name="default_width">710</property> <property name="default-width">710</property>
<property name="default_height">590</property> <property name="default-height">590</property>
<property name="icon_name">gnome-obex-server</property> <property name="icon-name">gnome-obex-server</property>
<property name="focus_on_map">False</property> <property name="focus-on-map">False</property>
<property name="gravity">center</property> <property name="gravity">center</property>
<child> <child>
<object class="GtkLayout" id="layout1"> <object class="GtkLayout" id="layout1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<child> <child>
<object class="GtkButton" id="add_pmu_button"> <object class="GtkButton" id="add_pmu_button">
<property name="label" translatable="yes">Add a Source Device</property> <property name="label" translatable="yes">Add a Source Device</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">PMU/PDC device from which configuration <property name="tooltip-text" translatable="yes">PMU/PDC device from which configuration
and data frames would be received.</property> and data frames would be received.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -111,12 +128,12 @@ and data frames would be received.</property>
<child> <child>
<object class="GtkButton" id="remove_pmu_button"> <object class="GtkButton" id="remove_pmu_button">
<property name="label" translatable="yes">Remove a Source Device</property> <property name="label" translatable="yes">Remove a Source Device</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Remove PMU/PDC device from which <property name="tooltip-text" translatable="yes">Remove PMU/PDC device from which
data frames are being received.</property> data frames are being received.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -128,12 +145,12 @@ data frames are being received.</property>
<child> <child>
<object class="GtkButton" id="cmd_data_off_button"> <object class="GtkButton" id="cmd_data_off_button">
<property name="label" translatable="yes">Turn OFF Data Transmission</property> <property name="label" translatable="yes">Turn OFF Data Transmission</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Turn OFF data transmission of PMU/PDC device from <property name="tooltip-text" translatable="yes">Turn OFF data transmission of PMU/PDC device from
which data frames are being received.</property> which data frames are being received.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -145,12 +162,12 @@ which data frames are being received.</property>
<child> <child>
<object class="GtkButton" id="cmd_data_on_button"> <object class="GtkButton" id="cmd_data_on_button">
<property name="label" translatable="yes">Turn ON Data Transmission</property> <property name="label" translatable="yes">Turn ON Data Transmission</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Turn ON data transmission of PMU/PDC device whose <property name="tooltip-text" translatable="yes">Turn ON data transmission of PMU/PDC device whose
data transmission is put OFF.</property> data transmission is put OFF.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -162,12 +179,12 @@ data transmission is put OFF.</property>
<child> <child>
<object class="GtkButton" id="cmd_cfg_button"> <object class="GtkButton" id="cmd_cfg_button">
<property name="label" translatable="yes">Request Configuration Frame</property> <property name="label" translatable="yes">Request Configuration Frame</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Send Command frame to PMU/PDC device <property name="tooltip-text" translatable="yes">Send Command frame to PMU/PDC device
to get configuration frame.</property> to get configuration frame.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -179,12 +196,12 @@ to get configuration frame.</property>
<child> <child>
<object class="GtkButton" id="add_pdc_button"> <object class="GtkButton" id="add_pdc_button">
<property name="label" translatable="yes">Add a Destination Device</property> <property name="label" translatable="yes">Add a Destination Device</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">PDC device to whom iPDC sends <property name="tooltip-text" translatable="yes">PDC device to whom iPDC sends
configuration and data frames.</property> configuration and data frames.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -196,12 +213,12 @@ configuration and data frames.</property>
<child> <child>
<object class="GtkButton" id="remove_pdc_button"> <object class="GtkButton" id="remove_pdc_button">
<property name="label" translatable="yes">Remove a Destination Device</property> <property name="label" translatable="yes">Remove a Destination Device</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Remove PDC device to whom iPDC <property name="tooltip-text" translatable="yes">Remove PDC device to whom iPDC
sends data frames.</property> sends data frames.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
@ -213,12 +230,12 @@ sends data frames.</property>
<child> <child>
<object class="GtkButton" id="display_conn_table_button"> <object class="GtkButton" id="display_conn_table_button">
<property name="label" translatable="yes">iPDC Connection Table</property> <property name="label" translatable="yes">iPDC Connection Table</property>
<property name="width_request">240</property> <property name="width-request">240</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Display source and destination devices connection tables.</property> <property name="tooltip-text" translatable="yes">Display source and destination devices connection tables.</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>
@ -229,12 +246,12 @@ sends data frames.</property>
<child> <child>
<object class="GtkButton" id="exit_button"> <object class="GtkButton" id="exit_button">
<property name="label" translatable="yes">EXIT</property> <property name="label" translatable="yes">EXIT</property>
<property name="width_request">100</property> <property name="width-request">100</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Click to exit the iPDC Software.</property> <property name="tooltip-text" translatable="yes">Click to exit the iPDC Software.</property>
</object> </object>
<packing> <packing>
<property name="x">603</property> <property name="x">603</property>
@ -243,72 +260,80 @@ sends data frames.</property>
</child> </child>
<child> <child>
<object class="GtkMenuBar" id="menubar"> <object class="GtkMenuBar" id="menubar">
<property name="width_request">710</property> <property name="width-request">710</property>
<property name="height_request">40</property> <property name="height-request">40</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_default">True</property> <property name="can-focus">False</property>
<property name="has_tooltip">True</property> <property name="can-default">True</property>
<property name="resize_mode">immediate</property> <property name="has-tooltip">True</property>
<property name="resize-mode">immediate</property>
<child> <child>
<object class="GtkMenuItem" id="menuitem1"> <object class="GtkMenuItem" id="menuitem1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">_File</property> <property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<child type="submenu"> <child type="submenu">
<object class="GtkMenu" id="menu1"> <object class="GtkMenu" id="menu1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<child> <child>
<object class="GtkImageMenuItem" id="enter_pdc_detail_menuitem"> <object class="GtkImageMenuItem" id="enter_pdc_detail_menuitem">
<property name="label">New iPDC Setup</property> <property name="label">New iPDC Setup</property>
<property name="visible">True</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="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="tooltip-text" translatable="yes">Click to create a new iPDC setup file.</property>
<property name="image">image6</property> <property name="image">image6</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="open_ipdc_setup"> <object class="GtkImageMenuItem" id="open_ipdc_setup">
<property name="label">Open iPDC Setup</property> <property name="label">Open iPDC Setup</property>
<property name="visible">True</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="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="tooltip-text" translatable="yes">Click to open the saved iPDC setup file.</property>
<property name="image">image4</property> <property name="image">image4</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="pdc_details_menuitem"> <object class="GtkImageMenuItem" id="pdc_details_menuitem">
<property name="label" translatable="yes">iPDC Properties</property> <property name="label" translatable="yes">iPDC Properties</property>
<property name="visible">True</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="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="tooltip-text" translatable="yes">Click to view the iPDC setup informations.</property>
<property name="image">image5</property> <property name="image">image5</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_conn_table"> <object class="GtkImageMenuItem" id="menu_conn_table">
<property name="label" translatable="yes">Connection Table</property> <property name="label" translatable="yes">Connection Table</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip_text" translatable="yes">Display source and destination devices connection tables.</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="image">image12</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="exit_menuitem"> <object class="GtkImageMenuItem" id="exit_menuitem">
<property name="label" translatable="yes">Quit</property> <property name="label" translatable="yes">Quit</property>
<property name="visible">True</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="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="tooltip-text" translatable="yes">Click to exit the iPDC Software.</property>
<property name="image">image3</property> <property name="image">image3</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
</object> </object>
@ -318,90 +343,129 @@ sends data frames.</property>
<child> <child>
<object class="GtkMenuItem" id="menuitem2"> <object class="GtkMenuItem" id="menuitem2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Edit</property> <property name="label" translatable="yes">Edit</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<child type="submenu"> <child type="submenu">
<object class="GtkMenu" id="menu2"> <object class="GtkMenu" id="menu2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<child> <child>
<object class="GtkImageMenuItem" id="menu_add_source"> <object class="GtkImageMenuItem" id="menu_add_source">
<property name="label">Add Source</property> <property name="label">Add Source</property>
<property name="visible">True</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="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 <property name="tooltip-text" translatable="yes">PMU/PDC device from which configuration
and data frames would be received.</property> and data frames would be received.</property>
<property name="image">image7</property> <property name="image">image7</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_remove_source"> <object class="GtkImageMenuItem" id="menu_remove_source">
<property name="label">Remove Source</property> <property name="label">Remove Source</property>
<property name="visible">True</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="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 <property name="tooltip-text" translatable="yes">Remove PMU/PDC device from which
data frames are being received.</property> data frames are being received.</property>
<property name="image">image8</property> <property name="image">image8</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_data_off"> <object class="GtkImageMenuItem" id="menu_data_off">
<property name="label" translatable="yes">Data OFF</property> <property name="label" translatable="yes">Data OFF</property>
<property name="visible">True</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="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 <property name="tooltip-text" translatable="yes">Turn OFF data transmission of PMU/PDC device from
which data frames are being received.</property> which data frames are being received.</property>
<property name="image">image9</property> <property name="image">image9</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_data_on"> <object class="GtkImageMenuItem" id="menu_data_on">
<property name="label" translatable="yes">Data ON</property> <property name="label" translatable="yes">Data ON</property>
<property name="visible">True</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="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 <property name="tooltip-text" translatable="yes">Turn ON data transmission of PMU/PDC device whose
data transmission is put OFF.</property> data transmission is put OFF.</property>
<property name="image">image10</property> <property name="image">image10</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_request_cfg"> <object class="GtkImageMenuItem" id="menu_request_cfg">
<property name="label" translatable="yes">Request CFG</property> <property name="label" translatable="yes">Request CFG</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip_text" translatable="yes">Send Command frame to PMU/PDC device <property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Send Command frame to PMU/PDC device
to get configuration frame.</property> to get configuration frame.</property>
<property name="image">image11</property> <property name="image">image11</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_add_destination"> <object class="GtkImageMenuItem" id="menu_add_destination">
<property name="label" translatable="yes">Add Destination</property> <property name="label" translatable="yes">Add Destination</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip_text" translatable="yes">PDC device to whom iPDC sends <property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">PDC device to whom iPDC sends
configuration and data frames.</property> configuration and data frames.</property>
<property name="image">image14</property> <property name="image">image14</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkImageMenuItem" id="menu_remove_destination"> <object class="GtkImageMenuItem" id="menu_remove_destination">
<property name="label" translatable="yes">Remove Destination</property> <property name="label" translatable="yes">Remove Destination</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip_text" translatable="yes">Remove PDC device to whom iPDC <property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Remove PDC device to whom iPDC
sends data frames.</property> sends data frames.</property>
<property name="image">image13</property> <property name="image">image13</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</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> </object>
</child> </child>
</object> </object>
@ -411,20 +475,23 @@ sends data frames.</property>
<child> <child>
<object class="GtkMenuItem" id="menuitem4"> <object class="GtkMenuItem" id="menuitem4">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">_Help</property> <property name="label" translatable="yes">_Help</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<child type="submenu"> <child type="submenu">
<object class="GtkMenu" id="menu3"> <object class="GtkMenu" id="menu3">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<child> <child>
<object class="GtkImageMenuItem" id="about_menuitem"> <object class="GtkImageMenuItem" id="about_menuitem">
<property name="label">About</property> <property name="label">About</property>
<property name="visible">True</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="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="tooltip-text" translatable="yes">Click to see the publisher, licensing, and version details.</property>
<property name="image">image15</property> <property name="image">image15</property>
<property name="use_stock">False</property> <property name="use-stock">False</property>
<property name="always_show_image">True</property> <property name="always-show-image">True</property>
</object> </object>
</child> </child>
</object> </object>
@ -436,13 +503,13 @@ sends data frames.</property>
<child> <child>
<object class="GtkLinkButton" id="linkbutton1"> <object class="GtkLinkButton" id="linkbutton1">
<property name="label" translatable="yes">Go online</property> <property name="label" translatable="yes">Go online</property>
<property name="width_request">100</property> <property name="width-request">100</property>
<property name="height_request">35</property> <property name="height-request">35</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_text" translatable="yes">For more information visit the iPDC official web <property name="tooltip-text" translatable="yes">For more information visit the iPDC official web
'ipdc.codeplex.com/'.</property> 'ipdc.codeplex.com/'.</property>
<property name="image">image1</property> <property name="image">image1</property>
<property name="relief">none</property> <property name="relief">none</property>
@ -455,9 +522,10 @@ sends data frames.</property>
</child> </child>
<child> <child>
<object class="GtkLabel" id="admin_label"> <object class="GtkLabel" id="admin_label">
<property name="width_request">235</property> <property name="width-request">235</property>
<property name="height_request">40</property> <property name="height-request">40</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
</object> </object>
<packing> <packing>
<property name="x">20</property> <property name="x">20</property>
@ -466,9 +534,10 @@ sends data frames.</property>
</child> </child>
<child> <child>
<object class="GtkLabel" id="rights_label"> <object class="GtkLabel" id="rights_label">
<property name="width_request">180</property> <property name="width-request">180</property>
<property name="height_request">28</property> <property name="height-request">28</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
<property name="selectable">True</property> <property name="selectable">True</property>
</object> </object>
<packing> <packing>
@ -478,11 +547,12 @@ sends data frames.</property>
</child> </child>
<child> <child>
<object class="GtkTextView" id="text_view"> <object class="GtkTextView" id="text_view">
<property name="width_request">421</property> <property name="width-request">421</property>
<property name="height_request">350</property> <property name="height-request">350</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="tooltip_text" translatable="yes">iPDC - A Free Phasor Data Concentrator. <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> Supportive IEEE C37.118 Synchrophasor std.</property>
<property name="editable">False</property> <property name="editable">False</property>
<property name="justification">fill</property> <property name="justification">fill</property>
@ -494,13 +564,14 @@ Supportive IEEE C37.118 Synchrophasor std.</property>
</child> </child>
<child> <child>
<object class="GtkTextView" id="text_view1"> <object class="GtkTextView" id="text_view1">
<property name="width_request">720</property> <property name="width-request">720</property>
<property name="height_request">70</property> <property name="height-request">70</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="editable">False</property> <property name="editable">False</property>
<property name="justification">fill</property> <property name="justification">fill</property>
<property name="cursor_visible">False</property> <property name="cursor-visible">False</property>
</object> </object>
<packing> <packing>
<property name="y">36</property> <property name="y">36</property>
@ -508,9 +579,10 @@ Supportive IEEE C37.118 Synchrophasor std.</property>
</child> </child>
<child> <child>
<object class="GtkHSeparator" id="hseparator1"> <object class="GtkHSeparator" id="hseparator1">
<property name="width_request">800</property> <property name="width-request">800</property>
<property name="height_request">20</property> <property name="height-request">20</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property>
</object> </object>
<packing> <packing>
<property name="x">-20</property> <property name="x">-20</property>
@ -519,15 +591,16 @@ Supportive IEEE C37.118 Synchrophasor std.</property>
</child> </child>
<child> <child>
<object class="GtkLabel" id="time_lable"> <object class="GtkLabel" id="time_lable">
<property name="width_request">162</property> <property name="width-request">162</property>
<property name="height_request">20</property> <property name="height-request">20</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="tooltip_text" translatable="yes">Local Time of System</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="xalign">0</property>
<property name="yalign">0</property> <property name="yalign">0</property>
<property name="justify">right</property>
<property name="track_visited_links">False</property>
<attributes> <attributes>
<attribute name="style" value="normal"/> <attribute name="style" value="normal"/>
<attribute name="weight" value="heavy"/> <attribute name="weight" value="heavy"/>

View File

@ -47,7 +47,7 @@
#include "ipdcGui.h" #include "ipdcGui.h"
/* Common fixed path for storage of few common files */ /* 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->remove_pdc_button), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_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->menu_conn_table), FALSE);
gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), FALSE);

View File

@ -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->remove_pdc_button), TRUE);
gtk_widget_set_sensitive(GTK_WIDGET(data->display_conn_table_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->menu_conn_table), TRUE);
gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE); gtk_widget_set_visible(GTK_WIDGET(data->pdc_details_menuitem), TRUE);