diff options
| Commit | 69e02405f9afea835e2d39d761ea04cb6f830d9f (patch) | |
|---|---|---|
| Author | 2022-06-14 15:14:45 +0300 | |
| Committer | 2022-06-14 15:14:45 +0300 | |
| Files | 8640c9290b4b33e0352dbb893f2e30937d706fea /src | |
| FMI-OOP-P2_Tables-69e02405f9afea835e2d39d761ea04cb6f830d9f.tar FMI-OOP-P2_Tables-69e02405f9afea835e2d39d761ea04cb6f830d9f.tar.gz FMI-OOP-P2_Tables-69e02405f9afea835e2d39d761ea04cb6f830d9f.zip | ||
| Parent | 7ea4dd641d9b69e19ccc59871094b65e4baf6c8e (diff) | |
Autocommit at 14.06.2022 @ 15:14
2 files changed, 12 insertions, 6 deletions
| -rw-r--r-- | src/UserInterface/UserInterface.h | 8 | ||||
| -rw-r--r-- | src/main.cpp | 10 |
diff --git a/src/UserInterface/UserInterface.h b/src/UserInterface/UserInterface.h index 56ad0ff..3557da8 100644 --- a/src/UserInterface/UserInterface.h +++ b/src/UserInterface/UserInterface.h @@ -18,14 +18,22 @@ class UserInterface { static String fileName; static bool saved; + //! Opens a file static void com_open(const char* params); + //! Closes a file static void com_close(const char* params); + //! Saves a file to the location it was opened from static void com_save(const char* params); + //! Saves a file to a given location static void com_saveas(const char* params); + //! Prints the help message static void com_help(const char* params); + //! Exists the appliction static void com_exit(const char* params); + //! Prints the currently opened table static void com_print(const char* params); + //! Edits a cell of the currently opened table static void com_edit(const char* params); public: diff --git a/src/main.cpp b/src/main.cpp index a14647f..d7f6f5d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,12 +1,10 @@ #include "UserInterface/UserInterface.h" +/*! \file main.cpp + * \brief Creates a defualt instance of UserInterface and runs it + */ + int main() { - // Table table(5, 5); - // table.putCell(0, 0, "8.6"); - // table.putCell(0, 1, "0"); - // table.putCell(0, 2, "\"String"); - // table.putCell(0, 3, "\"= 3 * R0C1 + R0C0 ^ R0C1 * 27 / R0C1 - 2 * 2.5 * 2 * 2 + R0C2 ^ R0C2 + R9999C999999"); - // // table.putCell(0, 3, "= 1 + 2 * 3 + 4 + 5"); UserInterface ui; ui.run(); } |
