Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WalkEdit.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_WalkEdit_h
00003 #define INCLUDED_WalkEdit_h
00004 
00005 #include "Behaviors/Controls/ControlBase.h"
00006 #include <stack>
00007 
00008 //! Editor for the CMPack-based Aibo walk engine
00009 class WalkEdit : public ControlBase {
00010 public:
00011   //! default constructor
00012   WalkEdit() : ControlBase("Walk Edit","Editor for the CMPack-based Aibo walk engine"), menuStack() { init(); }
00013 
00014   //! destructor
00015   virtual ~WalkEdit() {}
00016 
00017 protected:
00018   //! initialization
00019   virtual void init();
00020   
00021   //! subsequent addItem() calls will be placed in the specified menu until matching endSubMenu()
00022   void startSubMenu(const std::string& nm, const std::string& desc);
00023   
00024   //! adds a specified control to the current submenu
00025   void addItem(ControlBase* control);
00026   
00027   //! closes the current submenu, moves to its parent
00028   void endSubMenu();
00029   
00030   //! maintains stack of current submenus when building via init()
00031   std::stack<ControlBase*> menuStack;
00032 
00033 private:
00034   WalkEdit(const WalkEdit&); //!< you can override, but don't call this...
00035   WalkEdit& operator=(const WalkEdit&); //!< you can override, but don't call this...
00036 };
00037 
00038 /*! @file
00039  * @brief Describes WalkEdit, which provides an editor for the CMPack-based Aibo walk engine
00040  * @author Ethan Tira-Thompson (ejt) (Creator)
00041  */
00042 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:52 2016 by Doxygen 1.6.3