Collect project related code into project/
parent
4af82d6b71
commit
b807feb42f
|
@ -33,23 +33,28 @@ set(NBE_SRC
|
|||
src/EditorState.cpp
|
||||
src/MenuState.cpp
|
||||
src/Editor.cpp
|
||||
src/minetest.cpp
|
||||
|
||||
src/project/project.cpp
|
||||
src/project/media.cpp
|
||||
src/project/node.cpp
|
||||
src/project/nodebox.cpp
|
||||
|
||||
src/modes/NBEditor.cpp
|
||||
src/modes/NodeEditor.cpp
|
||||
src/modes/TextureEditor.cpp
|
||||
|
||||
src/dialogs/FileDialog.cpp
|
||||
src/dialogs/TextureDialog.cpp
|
||||
src/dialogs/ImageDialog.cpp
|
||||
src/Project.cpp
|
||||
src/MediaManager.cpp
|
||||
src/Node.cpp
|
||||
src/NodeBox.cpp
|
||||
src/minetest.cpp
|
||||
|
||||
src/FileFormat/FileFormat.cpp
|
||||
src/FileFormat/helpers.cpp
|
||||
src/FileFormat/NBE.cpp
|
||||
src/FileFormat/Lua.cpp
|
||||
src/FileFormat/CPP.cpp
|
||||
src/FileFormat/obj.cpp
|
||||
|
||||
src/util/string.cpp
|
||||
src/util/filesys.cpp
|
||||
src/util/SimpleFileCombiner.cpp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "Editor.hpp"
|
||||
#include "Node.hpp"
|
||||
#include "project/node.hpp"
|
||||
#include "modes/NBEditor.hpp"
|
||||
#include "modes/TextureEditor.hpp"
|
||||
#include "modes/NodeEditor.hpp"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "common.hpp"
|
||||
#include "EditorState.hpp"
|
||||
#include "Project.hpp"
|
||||
#include "project/project.hpp"
|
||||
|
||||
class Editor : public IEventReceiver
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define EDITORSTATE_HPP_INCLUDED
|
||||
#include "common.hpp"
|
||||
#include "Configuration.hpp"
|
||||
#include "Project.hpp"
|
||||
#include "project/project.hpp"
|
||||
#include "MenuState.hpp"
|
||||
|
||||
#define NUMBER_OF_KEYS 252
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#include <list>
|
||||
#include <stdexcept>
|
||||
#include "../common.hpp"
|
||||
#include "../Project.hpp"
|
||||
#include "../Node.hpp"
|
||||
#include "../project/project.hpp"
|
||||
#include "../project/node.hpp"
|
||||
#include "CPP.hpp"
|
||||
|
||||
bool CPPFileFormat::write(Project * project, const std::string & filename){
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef FILEFORMAT_HPP_INCLUDED
|
||||
#define FILEFORMAT_HPP_INCLUDED
|
||||
#include <string>
|
||||
#include "../Project.hpp"
|
||||
#include "../project/project.hpp"
|
||||
#include "../EditorState.hpp"
|
||||
|
||||
enum FileFormatError
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#include <list>
|
||||
#include <stdexcept>
|
||||
#include "../common.hpp"
|
||||
#include "../Project.hpp"
|
||||
#include "../Node.hpp"
|
||||
#include "../project/project.hpp"
|
||||
#include "../project/node.hpp"
|
||||
#include "Lua.hpp"
|
||||
#include <sstream>
|
||||
#include "../util/filesys.hpp"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define NBEFILEFORMAT_HPP_INCLUDED
|
||||
|
||||
#include "FileFormat.hpp"
|
||||
#include "../Node.hpp"
|
||||
#include "../project/node.hpp"
|
||||
|
||||
class NBEFileFormat : public FileFormat
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef OBJ_HPP_INCLUDED
|
||||
#define OBJ_HPP_INCLUDED
|
||||
|
||||
#include "../Node.hpp"
|
||||
#include "../project/node.hpp"
|
||||
|
||||
std::string nodeToObj(Node *node, std::string filenameNoExt = "out");
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#include <vector>
|
||||
#include "../GUIHelpers.hpp"
|
||||
#include "../util/string.hpp"
|
||||
#include "../Node.hpp"
|
||||
#include "../NodeBox.hpp"
|
||||
#include "../project/node.hpp"
|
||||
#include "../project/nodebox.hpp"
|
||||
|
||||
// The gui id numbers for this mode
|
||||
// NOTE: the maximum that can be here is 20
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "NodeEditor.hpp"
|
||||
#include <list>
|
||||
#include "../Node.hpp"
|
||||
#include "../project/node.hpp"
|
||||
#include "../GUIHelpers.hpp"
|
||||
#include "../util/string.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "MediaManager.hpp"
|
||||
#include "util/filesys.hpp"
|
||||
#include "media.hpp"
|
||||
#include "../util/filesys.hpp"
|
||||
|
||||
Media::~Media()
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef MEDIAMANAGER_HPP_INCLUDED
|
||||
#define MEDIAMANAGER_HPP_INCLUDED
|
||||
#include "common.hpp"
|
||||
#include "../common.hpp"
|
||||
#include <assert.h>
|
||||
#include <map>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "util/string.hpp"
|
||||
#include "Node.hpp"
|
||||
#include "../util/string.hpp"
|
||||
#include "node.hpp"
|
||||
|
||||
Node::Node(IrrlichtDevice* device, EditorState* state, unsigned int id) :
|
||||
device(device),
|
|
@ -2,10 +2,10 @@
|
|||
#define NODE_HPP_INCLUDED
|
||||
|
||||
#include <vector>
|
||||
#include "common.hpp"
|
||||
#include "EditorState.hpp"
|
||||
#include "NodeBox.hpp"
|
||||
#include "MediaManager.hpp"
|
||||
#include "../common.hpp"
|
||||
#include "../EditorState.hpp"
|
||||
#include "nodebox.hpp"
|
||||
#include "media.hpp"
|
||||
|
||||
class EditorState;
|
||||
class NodeBox;
|
|
@ -1,4 +1,4 @@
|
|||
#include "NodeBox.hpp"
|
||||
#include "nodebox.hpp"
|
||||
|
||||
void NodeBox::resizeNodeBoxFace(EditorState* editor, ECDR_DIR type,
|
||||
vector3df position, bool both)
|
|
@ -2,9 +2,9 @@
|
|||
#define NODEBOX_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
#include "common.hpp"
|
||||
#include "EditorState.hpp"
|
||||
#include "MediaManager.hpp"
|
||||
#include "../common.hpp"
|
||||
#include "../EditorState.hpp"
|
||||
#include "media.hpp"
|
||||
|
||||
class EditorState;
|
||||
class NodeBox
|
|
@ -1,6 +1,6 @@
|
|||
#include "Project.hpp"
|
||||
#include "Node.hpp"
|
||||
#include "util/string.hpp"
|
||||
#include "project.hpp"
|
||||
#include "node.hpp"
|
||||
#include "../util/string.hpp"
|
||||
|
||||
Project::Project() :
|
||||
name("test"),
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include "common.hpp"
|
||||
#include "EditorState.hpp"
|
||||
#include "MediaManager.hpp"
|
||||
#include "Node.hpp"
|
||||
#include "../common.hpp"
|
||||
#include "../EditorState.hpp"
|
||||
#include "media.hpp"
|
||||
#include "node.hpp"
|
||||
|
||||
class Node;
|
||||
class EditorState;
|
Loading…
Reference in New Issue