Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 49 lines (38 sloc) 1.255 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#ifndef EDITOR_MODULE_PROPERTIES_DIALOG_HPP_INCLUDED
#define EDITOR_MODULE_PROPERTIES_DIALOG_HPP_INCLUDED
#ifndef NO_EDITOR


#include <string>
#include <vector>

#include "dialog.hpp"
#include "module.hpp"
#include "text_editor_widget.hpp"

class editor;

namespace editor_dialogs
{

class editor_module_properties_dialog : public gui::dialog
{
public:
explicit editor_module_properties_dialog(editor& e);
explicit editor_module_properties_dialog(editor& e, const std::string& modname);
void init();
const std::string on_exit();
private:
void change_id(const gui::text_editor_widget_ptr editor);
void change_name(const gui::text_editor_widget_ptr editor);
void change_prefix(const gui::text_editor_widget_ptr editor);
void change_module_includes();
void remove_module_include(const std::string& s);
void execute_change_module_includes(const std::vector<std::string>& choices, int index);
void save_module_properties();
void create_new_module();

bool new_mod_;
editor& editor_;
gui::widget_ptr context_menu_;
module::modules mod_;
std::vector<std::string> loaded_mod_;
std::vector<std::string> dirs_;
};

typedef boost::intrusive_ptr<editor_module_properties_dialog> editor_module_properties_dialog_ptr;

}

#endif // !NO_EDITOR
#endif
Something went wrong with that request. Please try again.