blob: a5363458435b00faa366f0cdcf5c935700f3f420 (
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& inTable) : menu() {
if (!instantiated) {
table = inTable;
instantiated = true;
}
menu.addCommand(Command("print", &UserInterface::com_print));
menu.addCommand(Command("edit", &UserInterface::com_edit));
}
void UserInterface::run() {
menu.navigate();
}
|