#ifndef NAVBOOKS_H #define NAVBOOKS_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "utils.h" #include "WCString.h" #include "NavPage.h" class SimpleNavigator; class SwordIndex; class NavBooks: public NavPage { public: NavBooks(SimpleNavigator* navigator); virtual ~NavBooks(); // redraw the screen. This should use methods in ApplicationInterface.h to do the drawing void paint(); // signals that the user has tapped somewhere. // returns: the number that the user has tapped. -1 if no number void userTap(int x, int y); int getMaxRows() { return (GetSystemMetrics(SM_CYSCREEN) - 2*MENU_HEIGHT) / (BUTTON_HEIGHT + PADDING_HEIGHT) - 1; }; private: int numberAt(int x, int y); SwordIndex* position; WCString command; int maxNumber, maxOTNumber; }; #endif