#ifndef MENU_CONTROL_H
#define MENU_CONTROL_H

#ifndef CONTROL_H
#include "Control.h"
#endif

namespace MM
{

class Text;
class Command;

class Menu_control : public Control
{
public:
/*    struct Handle
    {
        Handle & menu      (const Text &)=0;
        Handle & accelator (const Text &)=0;
        Handle & icon      (const Text &)=0;
    };*/
    virtual ~Menu_control() {}

    virtual void new_item (const Text & text, Command * command) =0;
    virtual void new_item (const Text & text, 
                           Command *    command, 
                           const Text & accelator) =0;
    virtual void new_separator() = 0;
};

}//MM

#endif //MENU_CONTROL_H
