6 #include <unordered_map>
36 using std::unique_ptr;
37 using std::unordered_map;
108 enum TabType {
TABTYPE_UNKNOWN,
TABTYPE_EMPTYEDITOR,
TABTYPE_TRIGGEREDITOR,
TABTYPE_ENVMAPEDITOR,
TABTYPE_DECALEDITOR,
TABTYPE_MODELEDITOR,
TABTYPE_TERRAINEDITOR,
TABTYPE_PARTICLESYSTEMEDITOR,
TABTYPE_SCENEEDITOR,
TABTYPE_TEXTURE,
TABTYPE_FONT,
TABTYPE_UIEDITOR,
TABTYPE_SOUND,
TABTYPE_VIDEO,
TABTYPE_TEXT,
TABTYPE_MARKDOWN };
478 void browseTo(
const string& fileName);
544 void addFile(
const string& pathName,
const string& fileName,
const string& type);
558 void openFile(
const string& absoluteFileName);
568 void onOpenFileFinish(
const string& tabId,
FileType fileType,
const string& absoluteFileName, unique_ptr<Prototype> prototype, unique_ptr<Scene> scene);
647 void showInfoPopUp(
const string& caption,
const string& message);
657 void getViewPort(
GUINode* viewPortNode,
int& left,
int& top,
int& width,
int& height);
678 auto tabViewIt =
tabViews.find(tabId);
680 return &tabViewIt->second;
742 bool isDropOnNode(
int dropX,
int dropY,
const string& nodeId);
750 auto absoluteFileNameUnix = StringTools::replace(absoluteFileName,
"\\",
"/");
751 auto projectPathUnix = StringTools::replace(
projectPath,
"\\",
"/");
752 if (StringTools::startsWith(absoluteFileNameUnix, projectPathUnix +
"/") ==
false)
return absoluteFileNameUnix;
753 return StringTools::substring(absoluteFileNameUnix, projectPathUnix.size() + 1);
760 void onDrop(
const vector<string>& paths);
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
void unlock()
Unlocks this mutex.
void lock()
Locks the mutex, additionally mutex locks will block until other locks have been unlocked.
GUI action listener interface.
GUI change listener interface.
GUI drag request listener.
GUI focus listener interface.
#define FORBID_CLASS_COPY(CLASS)