Need to test: localassetbrowser preview related floaters hgfloatertexteditor maps media textures! Currently very hacky web browser alpha masks on avatars bumpmaps Are all sky components appearing? LLViewerDynamicTexture (texture baking, browser, animated textures, anim previews, etc) Snapshot related features Customize avatar vfs floater UI textures in general Texture priority issues
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
/**
|
|
* @file hgfloatertexteditor.h
|
|
* @brief Asset Text Editor floater made by Hazim Gazov (based on hex editor floater by Day Oh)
|
|
* @author Hazim Gazov
|
|
*
|
|
* $LicenseInfo:firstyear=2010&license=WTFPLV2$
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef HG_HGFLOATERTEXT_H
|
|
#define HG_HGFLOATERTEXT_H
|
|
|
|
#include "llfloater.h"
|
|
#include "lltexteditor.h"
|
|
#include "llinventory.h"
|
|
#include "llviewertexture.h"
|
|
|
|
class HGFloaterTextEditor
|
|
: public LLFloater
|
|
{
|
|
public:
|
|
HGFloaterTextEditor(LLInventoryItem* item);
|
|
static void show(LLUUID item_id);
|
|
BOOL postBuild(void);
|
|
void close(bool app_quitting);
|
|
static void imageCallback(BOOL success,
|
|
LLViewerFetchedTexture *src_vi,
|
|
LLImageRaw* src,
|
|
LLImageRaw* aux_src,
|
|
S32 discard_level,
|
|
BOOL final,
|
|
void* userdata);
|
|
static void assetCallback(LLVFS *vfs,
|
|
const LLUUID& asset_uuid,
|
|
LLAssetType::EType type,
|
|
void* user_data, S32 status, LLExtStat ext_status);
|
|
static void onClickSave(void* user_data);
|
|
static void onClickUpload(void* user_data);
|
|
static void onSaveComplete(const LLUUID& asset_uuid, void* user_data, S32 status, LLExtStat ext_status);
|
|
LLInventoryItem* mItem;
|
|
LLTextEditor* mEditor;
|
|
static std::list<HGFloaterTextEditor*> sInstances;
|
|
private:
|
|
virtual ~HGFloaterTextEditor();
|
|
protected:
|
|
static S32 sUploadAmount;
|
|
};
|
|
|
|
#endif
|