summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpick.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llpanelpick.h
Print done when done.
Diffstat (limited to 'indra/newview/llpanelpick.h')
-rw-r--r--indra/newview/llpanelpick.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/indra/newview/llpanelpick.h b/indra/newview/llpanelpick.h
new file mode 100644
index 0000000000..bdc7ef1f3e
--- /dev/null
+++ b/indra/newview/llpanelpick.h
@@ -0,0 +1,99 @@
+/**
+ * @file llpanelpick.h
+ * @brief LLPanelPick class definition
+ *
+ * Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+// Display of a "Top Pick" used both for the global top picks in the
+// Find directory, and also for each individual user's picks in their
+// profile.
+
+#ifndef LL_LLPANELPICK_H
+#define LL_LLPANELPICK_H
+
+#include "llpanel.h"
+#include "v3dmath.h"
+#include "lluuid.h"
+
+class LLButton;
+class LLCheckBoxCtrl;
+class LLIconCtrl;
+class LLLineEditor;
+class LLTextBox;
+class LLTextEditor;
+class LLTextureCtrl;
+class LLUICtrl;
+class LLMessageSystem;
+
+class LLPanelPick : public LLPanel
+{
+public:
+ LLPanelPick(BOOL top_pick);
+ /*virtual*/ ~LLPanelPick();
+
+ void reset();
+
+ /*virtual*/ BOOL postBuild();
+
+ /*virtual*/ void draw();
+
+ void refresh();
+
+ // Setup a new pick, including creating an id, giving a sane
+ // initial position, etc.
+ void initNewPick();
+
+ void setPickID(const LLUUID& id);
+
+ // Schedules the panel to request data
+ // from the server next time it is drawn.
+ void markForServerRequest();
+
+ std::string getPickName();
+ const LLUUID& getPickID() const { return mPickID; }
+
+ void sendPickInfoRequest();
+ void sendPickInfoUpdate();
+
+ static void processPickInfoReply(LLMessageSystem* msg, void**);
+
+protected:
+ static void onClickTeleport(void* data);
+ static void onClickMap(void* data);
+ //static void onClickLandmark(void* data);
+ static void onClickSet(void* data);
+
+ static void onCommitAny(LLUICtrl* ctrl, void* data);
+
+protected:
+ BOOL mTopPick;
+ LLUUID mPickID;
+ LLUUID mCreatorID;
+ LLUUID mParcelID;
+
+ // Data will be requested on first draw
+ BOOL mDataRequested;
+ BOOL mDataReceived;
+
+ LLString mSimName;
+ LLVector3d mPosGlobal;
+
+ LLTextureCtrl* mSnapshotCtrl;
+ LLLineEditor* mNameEditor;
+ LLTextEditor* mDescEditor;
+ LLLineEditor* mLocationEditor;
+
+ LLButton* mTeleportBtn;
+ LLButton* mMapBtn;
+
+ LLTextBox* mSortOrderText;
+ LLLineEditor* mSortOrderEditor;
+ LLCheckBoxCtrl* mEnabledCheck;
+ LLButton* mSetBtn;
+
+ static LLLinkedList<LLPanelPick> sAllPanels;
+};
+
+#endif // LL_LLPANELPICK_H