mirror of
https://github.com/m1ngsama/TUT.git
synced 2025-12-24 10:51:46 +00:00
Refactored the calendar functionality into a separate Calendar class. Created a TUI portal in main.cpp to allow for future feature expansion. The TUI portal provides a menu to select different features, with the calendar being the first one. Updated the build system to include the new files.
22 lines
385 B
C++
22 lines
385 B
C++
#include "tui_view.h"
|
|
#include "calendar.h"
|
|
|
|
int main() {
|
|
while (true) {
|
|
int choice = run_portal_tui();
|
|
|
|
switch (choice) {
|
|
case 0: { // Calendar
|
|
Calendar calendar;
|
|
calendar.run();
|
|
break;
|
|
}
|
|
case 1: { // Exit
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|