Merge branch 'UICleanup' of git://github.com/Shyotl/SingularityViewer
Conflicts: indra/llappearance/llwearable.h indra/llui/llcombobox.h indra/newview/jcfloaterareasearch.cpp indra/newview/jcfloaterareasearch.h indra/newview/llpanelgrouproles.cpp indra/newview/llpanelgrouproles.h indra/newview/llviewermenu.cpp - Plugged in new MenuFloaterDict for AssetBlacklist and SoundExplorer in menu_viewer.xml and removed the old listeners for them. indra/newview/skins/default/xui/es/floater_inventory.xml Compile Fixes: indra/llcommon/llstl.h - error: expected nested-name-specifier before ‘const’ indra/llui/llmultisliderctrl.cpp:283:12: error: ‘caller’ was not declared in this scope indra/llui/lltexteditor.cpp - error: operands to ?: have different types ‘const LLPointer<LLTextSegment>’ and ‘long int’ - error: passing ‘const LLPointer<LLTextSegment>’ as ‘this’ argument of ‘LLPointer<Type>& LLPointer<Type>::operator=(const LLPointer<Type>&) [with Type = LLTextSegment]’ discards qualifiers indra/newview/llfloaterpermissionsmgr.cpp - Silly Shyotl, boost bind, not std bind. indra/newview/llfloaterproperties.* - error: ‘LLInstanceTracker<LLFloaterProperties, LLUUID>’ is an inaccessible base of ‘LLFloaterProperties’ indra/newview/llgivemoney.cpp - Again, boost::ref, not std::ref indra/newview/llpreviewscript.cpp - no known conversion for argument 1 from ‘std::vector<const LLPointer<LLTextSegment> >’ to ‘std::vector<LLPointer<LLTextSegment> >&
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include <map>
|
||||
#include "llmultifloater.h"
|
||||
#include "lliconctrl.h"
|
||||
#include "llinstancetracker.h"
|
||||
#include "lluuid.h"
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLFloaterProperties
|
||||
@@ -50,7 +52,7 @@ class LLTextBox;
|
||||
|
||||
class LLPropertiesObserver;
|
||||
|
||||
class LLFloaterProperties : public LLFloater
|
||||
class LLFloaterProperties : public LLFloater, public LLInstanceTracker<LLFloaterProperties, LLUUID>
|
||||
{
|
||||
public:
|
||||
static LLFloaterProperties* find(const LLUUID& item_id,
|
||||
@@ -62,21 +64,23 @@ public:
|
||||
static void closeByID(const LLUUID& item_id, const LLUUID& object_id);
|
||||
|
||||
LLFloaterProperties(const std::string& name, const LLRect& rect, const std::string& title, const LLUUID& item_id, const LLUUID& object_id);
|
||||
virtual ~LLFloaterProperties();
|
||||
/*virtual*/ ~LLFloaterProperties();
|
||||
/*virtual*/ BOOL postBuild();
|
||||
/*virtual*/ void onOpen();
|
||||
|
||||
// do everything necessary
|
||||
void dirty() { mDirty = TRUE; }
|
||||
void refresh();
|
||||
|
||||
|
||||
protected:
|
||||
// ui callbacks
|
||||
static void onClickCreator(void* data);
|
||||
static void onClickOwner(void* data);
|
||||
static void onCommitName(LLUICtrl* ctrl, void* data);
|
||||
static void onCommitDescription(LLUICtrl* ctrl, void* data);
|
||||
static void onCommitPermissions(LLUICtrl* ctrl, void* data);
|
||||
static void onCommitSaleInfo(LLUICtrl* ctrl, void* data);
|
||||
static void onCommitSaleType(LLUICtrl* ctrl, void* data);
|
||||
void onClickCreator();
|
||||
void onClickOwner();
|
||||
void onCommitName();
|
||||
void onCommitDescription();
|
||||
void onCommitPermissions();
|
||||
void onCommitSaleInfo();
|
||||
void onCommitSaleType();
|
||||
void updateSaleInfo();
|
||||
|
||||
LLInventoryItem* findItem() const;
|
||||
@@ -95,10 +99,7 @@ protected:
|
||||
|
||||
BOOL mDirty;
|
||||
|
||||
typedef std::map<LLUUID, LLFloaterProperties*, lluuid_less> instance_map;
|
||||
static instance_map sInstances;
|
||||
static LLPropertiesObserver* sPropertiesObserver;
|
||||
static S32 sPropertiesObserverCount;
|
||||
LLPropertiesObserver* mPropertiesObserver;
|
||||
};
|
||||
|
||||
class LLMultiProperties : public LLMultiFloater
|
||||
|
||||
Reference in New Issue
Block a user