/* * Class FaceAndButtons contains a button with a face on it, and three other * buttons with specialized backgrounds (i.e., not the standard rounded * rectangle that InterViews uses for a push button. */ #ifndef faceIncluded #define faceIncluded #include #include <441/include/paintbutton.h> class FaceButton; class WhoButton; class WhyButton; class WhatButton; class FaceAndButtons : public MonoScene { public: void Compose(World* world); /* * Compose the interface into a couple boxes. */ protected: FaceButton* facebutton; /* The button with the ugly face */ WhoButton* whobutton; /* The "Who is this" button */ WhyButton* whybutton; /* The "Who do I ..." button */ WhatButton* whatbutton; /* The "What do I do ..." button */ }; /* * FaceButton contains a face picture. */ class FaceButton : public PaintedPushButton { public: FaceButton(World* world); protected: virtual void Press(); World* world; }; /* * The next three buttons have drawn shapes as backgrounds. */ class WhoButton : public PaintedPushButton { public: WhoButton(World* world); protected: virtual void Press(); World* world; }; class WhyButton : public PaintedPushButton { public: WhyButton(World* world); protected: virtual void Press(); World* world; }; class WhatButton : public PaintedPushButton { public: WhatButton(World* world); protected: virtual void Press(); World* world; }; #endif