NETRAVE/Glade/NETRAVE.glade
VetheonGames 6768cf14b3 Enhancing User Experience by Streamlining Database Connection Setup
In this commit, we have made significant improvements to the user experience of the NETRAVE project by streamlining the process of setting up the database connection. This was achieved by modifying the first_run_setup method in the FirstRunInit class to intelligently handle the presence or absence of a configuration file (config.yml).

The key changes include:

    Checking for the existence of config.yml: Before prompting the user for database details, the program now checks if a config.yml file already exists. This file holds the necessary details for connecting to the database.

    Reading and using existing configuration: If a config.yml file is found, the program attempts to connect to the database using the details from the file. This eliminates the need for the user to re-enter database details every time the program runs, thereby improving the user experience.

    Handling unsuccessful connections: If the connection attempt using the details from config.yml is unsuccessful, the program prompts the user for new database details. These new details are then used to overwrite the existing config.yml file. This ensures that the program can recover from changes in the database setup, such as a change in password.

    Creating config.yml if it does not exist: If no config.yml file is found, the program creates one and then prompts the user for the database details. This makes the initial setup process smoother for new users.

These changes have several benefits:

    Improved User Experience: By avoiding unnecessary prompts for database details, the program becomes more user-friendly.

    Efficient Onboarding: The streamlined process makes onboarding new users more efficient.

    Cost Savings: By reducing the number of requests for help with database details, we can potentially save on support staff time.

    Employee Satisfaction: Improving user experience can lead to greater employee satisfaction and advocacy for the product.

    Ethical Considerations: These changes respect the rights of the users by giving them control over their personal data and ensuring transparency in how their data is handled.

This commit represents a significant step forward in making the NETRAVE project more user-friendly and efficient. We believe these changes will improve the usage and adoption of the product while also respecting the rights of the users.
2023-06-07 13:16:49 -06:00

134 lines
5.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.40.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkPopover" id="popover1">
<property name="can-focus">False</property>
<child>
<object class="GtkButton" id="settings_menu_entry">
<property name="label" translatable="yes">Settings</property>
<property name="name">settings_menu_entry</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
</child>
</object>
<object class="GtkWindow" id="main_window">
<property name="name">main_window</property>
<property name="can-focus">False</property>
<property name="title" translatable="yes">NETRAVE</property>
<property name="window-position">center-always</property>
<property name="default-width">1080</property>
<property name="default-height">720</property>
<property name="gravity">center</property>
<child>
<object class="GtkLayout" id="layout_grid">
<property name="name">layout_grid</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="double-buffered">False</property>
<property name="hscroll-policy">natural</property>
<property name="vscroll-policy">natural</property>
<child>
<object class="GtkLabel" id="title_label">
<property name="name">title_label</property>
<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="label" translatable="yes">NETRAVE: A Network Monitor for the Future</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="1.5"/>
</attributes>
</object>
<packing>
<property name="x">300</property>
</packing>
</child>
<child>
<object class="GtkSeparator" id="label_separator">
<property name="name">label_separator</property>
<property name="width-request">1085</property>
<property name="height-request">5</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">False</property>
<property name="double-buffered">False</property>
</object>
<packing>
<property name="y">91</property>
</packing>
</child>
<child>
<object class="GtkButton" id="monitor_button">
<property name="label" translatable="yes">Open the Monitor</property>
<property name="name">monitor_button</property>
<property name="width-request">154</property>
<property name="height-request">80</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="double-buffered">False</property>
</object>
<packing>
<property name="x">150</property>
<property name="y">115</property>
</packing>
</child>
<child>
<object class="GtkButton" id="logger_button">
<property name="label" translatable="yes">Open the Logger</property>
<property name="name">logger_button</property>
<property name="width-request">146</property>
<property name="height-request">80</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="x">415</property>
<property name="y">115</property>
</packing>
</child>
<child>
<object class="GtkButton" id="exterminator_button">
<property name="label" translatable="yes">Open the Exterminator</property>
<property name="name">exterminator_button</property>
<property name="width-request">274</property>
<property name="height-request">80</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="x">670</property>
<property name="y">115</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="menu_button">
<property name="related-action"/>
<property name="name">menu_button</property>
<property name="width-request">100</property>
<property name="height-request">80</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="popover">popover1</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="x">6</property>
<property name="y">6</property>
</packing>
</child>
</object>
</child>
</object>
</interface>