Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitd5ff44b2802b77e461a69018a20a75f41f7cbb1a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 15:18:23 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 15:18:23 +0300
Filescda15edc3556d6213d87a5493d7e6d00467e564c /src
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.tar
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.tar.gz
FMI-OOP-P1_TicketSystem-d5ff44b2802b77e461a69018a20a75f41f7cbb1a.zip
Parent9ca88a57353e3f36c430dda1bb714d205f06379d (diff)
Autocommit at 07.05.2022 @ 15:18
3 files changed, 6 insertions, 6 deletions
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.cpp4
-rw-r--r--src/Generic/ConsoleInterface/Toolbox.hpp6
-rw-r--r--src/UserInterface/VenueConsoleUI.cpp2
diff --git a/src/Generic/ConsoleInterface/Toolbox.cpp b/src/Generic/ConsoleInterface/Toolbox.cpp
index 49d4360..78ca240 100644
--- a/src/Generic/ConsoleInterface/Toolbox.cpp
+++ b/src/Generic/ConsoleInterface/Toolbox.cpp
@@ -72,9 +72,9 @@ void inputLineSubBox(const char* label, char* output, unsigned maxWidth, bool ig
__inputLineBoxGetInput(output, maxWidth, ignore);
}
-void pressEnterToContinue() {
+void pressEnterToContinue(bool ignore) {
char tmp;
- inputLineBox("[Press enter to continue]", &tmp, 1);
+ inputLineBox("[Press enter to continue]", &tmp, 1, ignore);
}
/* Ordered list */
diff --git a/src/Generic/ConsoleInterface/Toolbox.hpp b/src/Generic/ConsoleInterface/Toolbox.hpp
index 98a2002..a1a310b 100644
--- a/src/Generic/ConsoleInterface/Toolbox.hpp
+++ b/src/Generic/ConsoleInterface/Toolbox.hpp
@@ -16,9 +16,9 @@ void warningSubBox(const char* message);
void errorBox(const char* message);
void errorSubBox(const char* message);
-void inputLineBox(const char* label, char* output, unsigned maxWidth);
-void inputLineSubBox(const char* label, char* output, unsigned maxWidth);
-void pressEnterToContinue();
+void inputLineBox(const char* label, char* output, unsigned maxWidth, bool ignore = true);
+void inputLineSubBox(const char* label, char* output, unsigned maxWidth, bool ignore = true);
+void pressEnterToContinue(bool ignore = true);
void resetOrderedList(int starter = 1);
diff --git a/src/UserInterface/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp
index 63816c6..043ea81 100644
--- a/src/UserInterface/VenueConsoleUI.cpp
+++ b/src/UserInterface/VenueConsoleUI.cpp
@@ -66,7 +66,7 @@ void command_reserveTicket() {
char password[PASSWORD_LEN];
inputLineSubBox("Enter password [Max 8 characters]: ", password, PASSWORD_LEN);
char note[NOTE_LEN];
- inputLineSubBox("Enter note [Max 32 characters]: ", note, NOTE_LEN);
+ inputLineSubBox("Enter note [Max 32 characters]: ", note, NOTE_LEN, false);
StatusCode s = es->reserveTicket(name, date, password, note, tic);
handleStatusCode(s, ticketManagementMenu);