Moved some variables in datamodelinstance from public to private

This commit is contained in:
andreja6
2019-11-08 17:55:59 -08:00
parent f965c82b58
commit 4c51383bce
2 changed files with 4 additions and 7 deletions

View File

@@ -696,14 +696,11 @@ void Application::onKeyPressed(int key)
{
deleteInstance();
}
if (GetHoldKeyState(VK_RCONTROL))
{
if (key=='O')
if (GetHoldKeyState(VK_RCONTROL) && key=='O')
{
_dataModel->getOpen();
}
}
}
void Application::onKeyUp(int key)
{

View File

@@ -22,10 +22,7 @@ public:
bool readXMLFileStream(std::ifstream* file);
void drawMessage(RenderDevice*);
WorkspaceInstance* getWorkspace();
WorkspaceInstance* workspace;
LevelInstance * level;
LevelInstance * getLevel();
GuiRoot* guiRoot;
std::string message;
std::string _loadedFileName;
bool showMessage;
@@ -51,4 +48,7 @@ private:
std::string _errMsg;
bool _legacyLoad;
float _modY;
WorkspaceInstance* workspace;
LevelInstance * level;
GuiRoot* guiRoot;
};