Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Ivan Remus edited this page Jun 9, 2022 · 11 revisions

This page will describe the MyP2P GUI


First Page

Design Picture

FirstPage

Description

In the first page we have a text field in which we wait for the user of the application to introduce a port number for which the application will be run onto.A number between 1024 and 65353 that is available(no other process is using it) is valid for the port chosen for this application.

Connect Button

The button Connect has the role of checking whether the text given as input is a valid port number.The text given for the port number is considered invalid if one of these cases are true:

-contains a character that is not a digit

-the length of the text is bigger than 6

-is a negative number

-is a number between 1 and 1023 inclusive(being a reserved port number 'well-known'

-is a port number that is already taken by another process

In each of these cases ,an error message will be displayed that specifies the problem with the input given.The error message may look like this:

ErrorMessage

In the port number is valid,then the page switches to the Files Page of the application.Otherwise,you can try to input another text as port number after closing the error message.


Menu Bar

Design Picture

MenuBar

Description

The Menu Bar is responsible with changing the current page to another page by pressing a button.It contains 4 buttons ,and each button has associated a page which will be displayed if pressed.

Connections Button

If pressed,this button will open the Connections Page

File Button

If pressed ,this button will open the Files Page

Sync Button

If pressed,this button will open the Sync Page.

Settings

If pressed ,this button will open the Settings Page


Connections Page

Design Picture

ConnectionPage

Description

Connections Panel

Synchronized Devices Table

Scan Button

New Connections Table

Options Panel

Remove Button

Sync Button


Files Page

Design Picture

Description

Sync Button

New Button

No Backup Button


Sync Page

Design Picture

Description

Files Table

Scan for files Button

Operations Panel

Synchronize Button

Delete Button

Fetch File Button

Browse Directory Button


Settings Page

Design Picture

SettingsPage

Description

This page allows the changing of visual settings such as whether to have the application in light or dark mode and the font size.It also has a field for introducing the name of the device(the name with which the machine will be seen as),a History Button and a Disconnect Button.

Rename Device field

Allows changing the name of the device which currently runs the application.

Access History Button

Light Theme Button

Font Dimension selection

By selecting from 1 of 3 options,you can change the size of the font to your liking.

Disconnect Button

The disconnect button will make the app go back to the first page and free the port that was used up to this point,allowing for changing the port value for the application.