summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelface.h
diff options
context:
space:
mode:
authorKadah_Coba <kadah.coba@gmail.com>2019-10-14 20:35:44 -0700
committerKadah_Coba <kadah.coba@gmail.com>2019-10-14 20:35:44 -0700
commit1e1707d532560583744bb877adfed11864f2db31 (patch)
tree75af0c48a490a799532748ae2d4fe63be48facfd /indra/newview/llpanelface.h
parentce48cb4303c10dbc9d3044271035153569226040 (diff)
[Project Copy/Paste] Texture support
Diffstat (limited to 'indra/newview/llpanelface.h')
-rw-r--r--indra/newview/llpanelface.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/indra/newview/llpanelface.h b/indra/newview/llpanelface.h
index 0b40d7d41a..064262a312 100644
--- a/indra/newview/llpanelface.h
+++ b/indra/newview/llpanelface.h
@@ -47,6 +47,7 @@ class LLUICtrl;
class LLViewerObject;
class LLFloater;
class LLMaterialID;
+class LLMenuButton;
// Represents an edit for use in replicating the op across one or more materials in the selection set.
//
@@ -113,6 +114,8 @@ public:
LLRender::eTexIndex getTextureChannelToEdit();
+ void pasteFace(LLViewerObject* object, S32 te);
+
protected:
void getState();
@@ -203,9 +206,13 @@ protected:
static void onCommitRepeatsPerMeter( LLUICtrl* ctrl, void* userinfo);
static void onClickAutoFix(void*);
- static F32 valueGlow(LLViewerObject* object, S32 face);
+ void onCopyFaces();
+ void onPasteFaces();
+ bool pasteCheckMenuItem(const LLSD& userdata);
+ void pasteDoMenuItem(const LLSD& userdata);
+ bool pasteEnabletMenuItem(const LLSD& userdata);
-
+ static F32 valueGlow(LLViewerObject* object, S32 face);
private:
@@ -232,6 +239,20 @@ private:
F32 getCurrentShinyOffsetU();
F32 getCurrentShinyOffsetV();
+ LLButton *mBtnCopyFaces;
+ LLButton *mBtnPasteFaces;
+ LLMenuButton *mBtnPasteMenu;
+
+ LLSD mClipboard;
+ BOOL mPasteColor;
+ BOOL mPasteAlpha;
+ BOOL mPasteGlow;
+ BOOL mPasteDiffuse;
+ BOOL mPasteNormal;
+ BOOL mPasteSpecular;
+ BOOL mPasteMapping;
+ BOOL mPasteMedia;
+
// Update visibility of controls to match current UI mode
// (e.g. materials vs media editing)
//
@@ -495,6 +516,8 @@ public:
DEF_EDIT_MAT_STATE(LLUUID,const LLUUID&,setNormalID);
DEF_EDIT_MAT_STATE(LLUUID,const LLUUID&,setSpecularID);
DEF_EDIT_MAT_STATE(LLColor4U, const LLColor4U&,setSpecularLightColor);
+
+ DEF_EDIT_MAT_STATE(LLSD, const LLSD&, fromLLSD);
};
class LLSelectedTE