phoenix-firestorm/indra/newview/llfloateropenobject.h

58 lines
1.1 KiB
C++

/**
* @file llfloateropenobject.h
* @brief LLFloaterOpenObject class definition
*
* Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
* $License$
*/
/*
* Shows the contents of an object and their permissions when you
* click "Buy..." on an object with "Sell Contents" checked.
*/
#ifndef LL_LLFLOATEROPENOBJECT_H
#define LL_LLFLOATEROPENOBJECT_H
#include "llfloater.h"
class LLObjectSelection;
class LLPanelInventory;
class LLFloaterOpenObject
: public LLFloater
{
public:
static void show();
static void dirty();
struct LLCatAndWear
{
LLUUID mCatID;
bool mWear;
};
protected:
LLFloaterOpenObject();
~LLFloaterOpenObject();
void refresh();
void draw();
void moveToInventory(bool wear);
static void onClickMoveToInventory(void* data);
static void onClickMoveAndWear(void* data);
static void callbackMoveInventory(S32 result, void* data);
static void* createPanelInventory(void* data);
protected:
static LLFloaterOpenObject* sInstance;
LLPanelInventory* mPanelInventory;
LLHandle<LLObjectSelection> mObjectSelection;
BOOL mDirty;
};
#endif