-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwin-on_easteregg_click.cpp
48 lines (40 loc) · 1.9 KB
/
mainwin-on_easteregg_click.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "mainwin.h"
void Mainwin::on_easteregg_click() {
//(std::string name, std::string description, double cost, double price);
// C O N T A I N E R
_emp->add_container(
Mice::Container{"Cone", "Crispy airy delight", 0.25, 0.50, 2});
_emp->add_container(
Mice::Container{"Waffle Cone", "Crunchy wrapped waffle cake", 0.35, 0.75, 3});
// S C O O P
_emp->add_scoop(
Mice::Scoop{"Chocolate", "Rich smooth chocolate ice cream", 0.20, 0.50});
_emp->add_scoop(
Mice::Scoop{"Vanilla", "Real vanilla bean ice cream", 0.20, 0.50});
_emp->add_scoop(
Mice::Scoop{"Strawberry", "Chunks of strawberry wrapped in vanilla ice cream", 0.20, 0.50});
// T O P P I N G
_emp->add_topping(
Mice::Topping{"Cherry", "Classic marichino cherry", 0.1, 0.2, 0});
_emp->add_topping(
Mice::Topping{"Chocolate Sauce", "Rich thick chocolate", 0.1, 0.25, 0});
_emp->add_topping(
Mice::Topping{"Whipped Cream", "Real sweet cream whipped to perfection", 0.1, 0.2, 0});
_emp->topping(0).set_photo("photo_file");
// S E R V E R
_emp->add_server(
Mice::Server{"Penny", "BBT", "817-555-1212", 10.25});
_emp->add_server(
Mice::Server{"Bezabed Gonzalez", "Son", "817-555-1213", 8.75});
_emp->add_server(
Mice::Server{"George F. Rice", "Good Professor", "817-555-1214", 15.00});
// C U S T O M E R
_emp->add_customer(
Mice::Customer{"Yissel Gonzalez", "ESTUPID", "817-555-1999"});
_emp->add_customer(
Mice::Customer{"Hy Nguyen", "Not Michael", "817-555-1313"});
// Display acknowledgement
Gtk::MessageDialog dialog{*this, "Added 2 containers, 3 scoops, 3 toppings,\n3 servers, 2 customers"};
dialog.run();
dialog.close();
}