From 9097bced161430813b6dd1980b0b2f6c2bd09b32 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 May 2022 07:58:46 +0300 Subject: Autocommit at 29.05.2022 @ 07:58 --- src/Generic/ConsoleInterface/Toolbox.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/Generic/ConsoleInterface/Toolbox.hpp') diff --git a/src/Generic/ConsoleInterface/Toolbox.hpp b/src/Generic/ConsoleInterface/Toolbox.hpp index 4fb8214..e590a25 100644 --- a/src/Generic/ConsoleInterface/Toolbox.hpp +++ b/src/Generic/ConsoleInterface/Toolbox.hpp @@ -2,6 +2,8 @@ #define HEADER_CONSOLEINTERFACE_TOOLBOX #include +#include "../List/List.hpp" +#include "../String/String.h" /*! \file Toolbox.hpp * \brief Stores a wide range of functions for simpler/more automated printing. @@ -19,11 +21,8 @@ void clear(); //! Prints label, gets a whole line of input and stores it to output void inputLineBox(const char* label, char* output, unsigned maxWidth, bool ignore = true); -//! Prints a string as a table -void table(unsigned startNumber, unsigned columns, const char* items); - -//! Semi-internal function that prints the label of an input box -void _printInputBoxLabel(const char* label); +//! Prints a string list as a table +void table(const List& items); //! Reads user input and stores it template @@ -64,7 +63,7 @@ void printLine(const T& item) { //! Prints a label and then reads user input and stores it template void inputBox(const char* label, T* output) { - _printInputBoxLabel(label); + print(label); std::cin >> *output; } -- cgit v1.3.1-26-gb76a