diff --git a/src/ui/textView/textView.h b/src/ui/textView/textView.h index 8c2f3a5..f8747ab 100644 --- a/src/ui/textView/textView.h +++ b/src/ui/textView/textView.h @@ -31,11 +31,11 @@ class TextView final : public View ~TextView(); /** - * Checkes if the listview has been clicked and either changes the page or returns item ID + * Checkes if the buttons on the bottom have been clicked, if they have been, executes function * * @param x x-coordinate * @param y y-coordinate - * @return true if was clicked + * @return always false as changing cursor is currently not supported */ bool checkIfEntryClicked(int x, int y) override; @@ -65,10 +65,41 @@ class TextView final : public View int _textHeight; ifont *_textFont; + //TODO documention and different methods in one + + /** + * Draws a Char to the screen, if there is no more space, either calls addPage or jumps to next line + * + * @param char that shall be drawn + * @return width of the char + */ int drawChar(const char &c); + + /** + * loads a Keymap into the application to replicate keys + * + * @return true on sucess, false on error + */ bool loadKeyMaps(); + + /** + * handles the keyevents that pop up + * + * @param eventID of the input device + * @param path of the file that shall be written + */ void handleKeyEvents(int eventID, const std::string &path); + + /** + * adds a new, empty Page + * + */ void addPage(); + + /** + * removes a page + * + */ void removePage(); }; diff --git a/src/ui/view.h b/src/ui/view.h index c5a9693..e5389b1 100644 --- a/src/ui/view.h +++ b/src/ui/view.h @@ -62,11 +62,15 @@ class View virtual bool checkIfEntryClicked(int x, int y) = 0; /** - * Clears the screen and draws entries and footer + * Clears the screen, rereads in the arguments and draws entries and footer * */ virtual void draw() = 0; + /** + * Clears the screen and draws entries and footer for _shownPage + * + */ virtual void drawPage() = 0;