class CalculatorWindow : public ApplicationWindow { public: CalculatorWindow( const Rect &rFrame, const String& szTitle, unsigned int nWindowLayoutFlags, unsigned int uiFlags = 0); void OnCommand( const MessageCommand *pMessage); private: void Clear(); void doOperation( int next_operation); TextView * pText; String * line; double total; double operand; int operation; bool new_operand; };