From 7b87f2ddbd0ae0ab707d436719810332707fd0e7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 6 May 2022 11:51:57 +0300 Subject: Autocommit at 06.05.2022 @ 11:51 --- src/ConsoleInterface/Toolbox.cpp | 8 ++++++-- src/ConsoleInterface/Toolbox.hpp | 8 +++++++- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'src/ConsoleInterface') diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index 55ac708..fc871ae 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -74,11 +74,11 @@ void _printOrderedListBeginning() { std::cout << "[" << orderedListIndex++ << "] "; } -void _printInputBoxLabel(const char* label) { +void _printInputBoxSubLabel(const char* label) { std::cout << " (+) " << label; } -void _printAltInputBoxLabel(const char* label) { +void _printInputBoxLabel(const char* label) { std::cout << "(+) " << label; } @@ -87,3 +87,7 @@ void inputLineBox(const char* label, char* output, unsigned maxWidth) { std::cin.ignore(); std::cin.getline(output, maxWidth); } + +void inputLineSubBox(const char* label, char* output, unsigned maxWidth) { + +} diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp index daf8db4..2844682 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/ConsoleInterface/Toolbox.hpp @@ -20,7 +20,7 @@ void inputLineBox(const char* label, char* output, unsigned maxWidth); void resetOrderedList(int starter = 1); void _printInputBoxLabel(const char* label); -void _printAltInputBoxLabel(const char* label); +void _printInputBoxSubLabel(const char* label); void _printOrderedListBeginning(); template @@ -66,4 +66,10 @@ void inputBox(const char* label, T* output) { std::cin >> *output; } +template +void inputSubBox(const char* label, T* output) { + _printInputSubBoxLabel(label); + std::cin >> *output; +} + #endif -- cgit v1.3.1-23-gd82d