mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 13:47:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* RobloxScriptReview.h
|
||||
* Copyright (c) 2013 ROBLOX Corp. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Standard C/C++ Headers
|
||||
#include <map>
|
||||
|
||||
// 3rd Party Headers
|
||||
#include "boost/shared_ptr.hpp"
|
||||
|
||||
// Roblox Studio Headers
|
||||
#include "RobloxReportView.h"
|
||||
|
||||
namespace RBX
|
||||
{
|
||||
class DataModel;
|
||||
namespace Reflection
|
||||
{
|
||||
class Variant;
|
||||
}
|
||||
}
|
||||
|
||||
class QTreeWidgetItem;
|
||||
|
||||
typedef std::map<std::string, QTreeWidgetItem*> RecordMap;
|
||||
|
||||
class RobloxScriptReview : public RobloxReportView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
RobloxScriptReview();
|
||||
virtual ~RobloxScriptReview();
|
||||
|
||||
class ScriptPerfUpdateJob;
|
||||
|
||||
void setDataModel(boost::shared_ptr<RBX::DataModel> pDataModel);
|
||||
boost::shared_ptr<RBX::DataModel> dataModel();
|
||||
|
||||
virtual void requestUpdate();
|
||||
|
||||
public Q_SLOTS:
|
||||
|
||||
void setVisible(bool visible);
|
||||
|
||||
protected:
|
||||
|
||||
void AddValue(const RBX::Reflection::Variant& value);
|
||||
void createUpdateItemsJob(boost::shared_ptr<RBX::DataModel> dataModel);
|
||||
void deleteUpdateItemsJob();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
void update();
|
||||
void onTimer();
|
||||
void onSectionClicked(int index);
|
||||
|
||||
private:
|
||||
|
||||
virtual bool event(QEvent * evt);
|
||||
|
||||
RecordMap m_records;
|
||||
|
||||
boost::shared_ptr<RBX::DataModel> m_pDataModel;
|
||||
boost::shared_ptr<ScriptPerfUpdateJob> m_pUpdateItemsJob;
|
||||
|
||||
QTimer* m_pTimer;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user