This is a project that aims to create a system for issuing books in libraries
First of all, you will see a table. It contains all readers in ascending order and their reading status (book / start date / finish date) In the main menu (on the left top corner) you will see 6 sub menus: "Readers", "Books", "Giveaway", "Restore", "Language", "Help".
Reader menu: contains all actions that you can do with readers: Add, Remove, Change 1-st name, 2-nd name, mid. Name, get information. There are also two types of getting info: with books that reader is reading now and with all books that reader read (all existing books in a library, if you delete book, it will not be shown.) All these actions require your input. But you can simply click on reader you need in the main table and all needed action will be there (except adding reader, that's can't handle without input)
Book menu:
-
Add books (if a book in a library, it'll add new books, else it'll create new books in a library)
-
Remove a book. You can remove only one book in this action. Requires number of books.
-
Remove all specific books. It'll remove all books with the same title, author and number of pages.
-
Change title, author, number of pages. I think it'll be obvious.
-
Change the book's location. You'll change cabinet and shelf where book is located. I don't know anything about your library, so I can't control your input
-
Get type book's information. As for reader, you'll get a window with info and all actions for it.
-
Get the current book's information. You'll get info window about a current book. Also you can change location (cabinet and shelf) of book.
-
List of all books by authors. Window with all books sorted by authors. Authors sorted by ascending.
-
List of all books.
Genres menu:
- List of all books by genres. Sort all books by genres.
- Add genre / Remove genre. By default, it'll be no genre, so you need to add it. It can be anything, so you can use your imagination :)
- Customize book genres. You'll get a window with genres. You need to choose genre. If a book has some genres, it'll be a check mark near genre
Giveaway menu is a menu for giving and returning books.
- Give a book. Requires to be input for reader and book. In the end, you need to choose return date. Also, you can do it in reader info (or just click on reader)
- Get a book from reader. Requires reader input. Also, you can do it in reader info or click on reader.
- Change return date. You can also click on return date in the main table and change it.
Restore menu:
- Restore previous data. Also, you can use Ctrl-Z.
- Restore next date. Also, you can use Ctrl-Shift-Z.
In language menu you can choose language. My languages are Russian and English, so I don't add others, so I hope your english is not worse than mine :D
In the Help menu, you can read the same things if you forgot something.
- Rust 2021 edition
- FLTK-rs
- Yaml-Rust
- Install all necessary libraries for FLTK
- Clone from git and compile project:
git clone https://github.com/dinaraparanid/Library_rs.git
cd Library_rs
cargo run --release
MIT or Apache-2.0