#ifndef QT_INTERFACE_H
#define QT_INTERFACE_H

#ifndef USER_INTERFACE_H
#include "User_interface.h"
#endif

#ifndef TEXT_H
#include "Text.h"
#endif

#include <map>
class QAction;

namespace MM
{
class Text;

class Qt_interface : public User_interface
{
    static std::map <Text, QAction*>    map_;

public:
    static QAction *    action (Text const& name);

    Command *           handle_apply (Module_void_handle & handle);
    Command_1 <bool> *  handle_apply (Module_bool_handle & handle);

    void            handle_insert_menu_separator (Text const& menu);
};

}//MM

#endif //QT_INTERFACE_H
