Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / UserInterface.cpp
blob: 8698a71d2792b6e880c4bfb8de4ecdae682c0abc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "UserInterface.h"
#include "../Generic/List/List.hpp"
#include "../Generic/String/String.h"
#include <stdexcept>

/* Private (static) */

void UserInterface::com_print(const char* params) {
	List<String> cells = table.getAllCells();
}

/* Public */

UserInterface::UserInterface(Table& table) : menu() {
	if (!instantiated) {
		this->table = table;
		instantiated = true;
	}

	menu.addCommand(Command("print", com_print));
	menu.addCommand(Command("edit", com_edit));
}

void UserInterface::run() {
	menu.navigate();
}