

#ifndef MESSAGE_EDITOR_H
#define MESSAGE_EDITOR_H

#include "config.h"

#include <memory>

#include <gtkmm.h>

#include "messageaction.h"

namespace dfm {

class MessageEditor : public Gtk::Dialog {
public:
    MessageEditor(Gtk::Window& parent, MessageAction* action);

private:
    MessageAction* action;

    Gtk::Label messageLabel;
    Gtk::ScrolledWindow scrolledWindow;
    Gtk::TextView messageView;

    Glib::RefPtr<Gtk::TextBuffer> messageBuffer;

    void onResponse(int responseId);
};
} /* namespace dfm */

#endif /* MESSAGE_EDITOR_H */
