Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 2.53 KB

README.md

File metadata and controls

62 lines (42 loc) · 2.53 KB

This Project was developed by Abdelrahman Mohamed Hamad

Table of Contents

Quote Generator

The Quote Generator app is designed to provide quotes based on user emotions, with a chain of responsibility pattern to handle different types of emotions.

About the App

The Quote Generator app categorizes quotes into different emotions (Happy, Sad, Angry, Neutral). Depending on the user's emotion, the app fetches a relevant quote from the appropriate category.

App Task

In this scenario, whenever the user interacts with the app (initiated by pressing Start Button), a quote is displayed based on the user's selected emotion. The app also supports storing and restoring quotes states using a backup mechanism.

Instructions

Prerequisites

  • Qt Creator
  • Qt 6.7.1 or higher
  • C++ compiler (e.g., GCC, MinGW)

Steps

  1. Clone the repository:
    git clone https://github.com/Abdelrahman822000/Random-Quote-Generator.git
    cd Random-Quote-Generator
  2. Build the project:
    • Open the Random-Quote-Generator in Qt Creator by choosing file -> Open file or Project then navigate to where you cloned the repository and choose Random_Quote_Generator.pro
    • Configure the project using your desired kit.
    • Build the project using the Build menu.
    • Run the project
    • Alternative: Go to build\Desktop_Qt_6_7_0_MinGW_64_bit-Release\release and run the Random_Quote_Generator.exe executable.

How to Use

  • Login: Enter your username then press Login. LoginPage

  • Generate new Quote: Choose your emotion and press StartNew Quote

  • Store & Restore: Store the current state of quote or restore a previously stored quote state. Store and Restore

  • Clear: Clear the Output field.

  • Exit: Press exit to return to the login page. Output and Exit

Contact

If you have any questions, feel free to contact me: