This small console application I wrote demonstrates the useage of a std::list in c++.
- navigable list
- adjustable row display size
- current- and maximum page number display, which adjusts according to row display size and list size
- invalid command input notification
- colorized text in order to improve the overview
- editable rows
|
|
help |
show all available commands |
draw |
print the list |
up |
navigate one page up (scrolling up) |
down |
navigate one page down(scrolling down) |
clearList |
delete all content of the entire list |
setViewRange |
set how many lines of the list you want to display |
addRow |
add a row to the bottom |
editRow |
edit a specific row |
loadDemoData |
load a demo list with 11 different rows (colors) |
quit |
exit the programm / close console |
main view |
navigate down |
![main view](/miwied/adjustable-cpp-list/raw/main/images/main_view.png) |
![down](/miwied/adjustable-cpp-list/raw/main/images/second_page.png) |
invalid command |
set view range to 8 |
![invalid comand](/miwied/adjustable-cpp-list/raw/main/images/invalid_command.png) |
![set view range](/miwied/adjustable-cpp-list/raw/main/images/set_view_range.png) |
clear list |
add row |
![clear list](/miwied/adjustable-cpp-list/raw/main/images/clear_list.png) |
![clear list](/miwied/adjustable-cpp-list/raw/main/images/add_row.png) |
help |
![all commands](/miwied/adjustable-cpp-list/raw/main/images/all_commands.png) |