From 1a24b8b50e1c6956be96cd6f0337c963728ebc9b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 21:24:11 +0300 Subject: Autocommit at 05.05.2022 @ 21:24 --- src/ConsoleInterface/Toolbox.hpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src/ConsoleInterface/Toolbox.hpp') diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp index c302860..2398abc 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/ConsoleInterface/Toolbox.hpp @@ -7,6 +7,18 @@ #define MAX_LINE_WIDTH 1024 void clear(); +void title(const char* title); +void printSubTitle(const char* title); +void success(const char* message); +void warning(const char* message); +void error(const char* message); + +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 _printOrderedListBeginning(); template void read(T* storage) { @@ -38,7 +50,6 @@ void printLine(const T& item) { std::cout << item << std::endl; } -void _printOrderedListBeginning(); template void printOrderedListElem(const T& elem) { @@ -46,22 +57,10 @@ void printOrderedListElem(const T& elem) { printLine(elem); } -void resetOrderedList(int starter = 1); - -void _printInputBoxLabel(const char* label); -void _printAltInputBoxLabel(const char* label); - template void inputBox(const char* label, T* output) { _printInputBoxLabel(label); std::cin >> *output; } -void inputLineBox(const char* label, char* output, unsigned maxWidth); - -void printTitle(const char* title); -void printSuccess(const char* message); -void printWarning(const char* message); -void printError(const char* message); - #endif -- cgit v1.3.1-26-gb76a