#ifndef NAVNUMBERS_H #define NAVNUMBERS_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "utils.h" #include "NavPage.h" #include "ApplicationInterface.h" class SimpleNavigator; class NavNumbers: public NavPage { public: NavNumbers(SimpleNavigator* navigator); virtual ~NavNumbers(); // initialize with this maximum number void show(); // 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 int numberAt(int x, int y); int getMaxRows() { return (GetSystemMetrics(SM_CYSCREEN) - 2*MENU_HEIGHT) / (BUTTON_HEIGHT + PADDING_HEIGHT) - 1; }; protected: int maxNumber; WCString command; int start; }; #endif