mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* RobloxBasicDoc.cpp
|
||||
* Copyright (c) 2013 ROBLOX Corp. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "RobloxBasicDoc.h"
|
||||
|
||||
// Qt Headers
|
||||
#include <QString>
|
||||
|
||||
// Roblox Studio Headers
|
||||
#include "IExternalHandler.h"
|
||||
#include "UpdateUIManager.h"
|
||||
#include "RobloxDocManager.h"
|
||||
|
||||
RobloxBasicDoc::RobloxBasicDoc()
|
||||
: m_bActive(false)
|
||||
{
|
||||
}
|
||||
|
||||
RobloxBasicDoc::~RobloxBasicDoc()
|
||||
{
|
||||
}
|
||||
|
||||
void RobloxBasicDoc::addExternalHandler(IExternalHandler* extHandler)
|
||||
{
|
||||
if(extHandler == NULL)
|
||||
return;
|
||||
|
||||
if(extHandler->handlerId().isEmpty())
|
||||
return;
|
||||
|
||||
m_handlersMap[extHandler->handlerId()] = extHandler;
|
||||
}
|
||||
|
||||
void RobloxBasicDoc::removeExternalHandler(const QString &handlerId)
|
||||
{
|
||||
if(handlerId.isEmpty())
|
||||
return;
|
||||
|
||||
m_handlersMap.erase(handlerId);
|
||||
}
|
||||
|
||||
IExternalHandler* RobloxBasicDoc::getExternalHandler(const QString &handlerId)
|
||||
{
|
||||
return m_handlersMap[handlerId];
|
||||
}
|
||||
|
||||
bool RobloxBasicDoc::handleAction( const QString &actionID, bool isChecked /*= true*/ )
|
||||
{
|
||||
// Try to see if inherited class handles this action
|
||||
return doHandleAction(actionID, isChecked);
|
||||
}
|
||||
|
||||
/** do not override **/
|
||||
bool RobloxBasicDoc::close()
|
||||
{
|
||||
if (doClose())
|
||||
{
|
||||
RobloxDocManager::Instance().updateWindowMenu();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user