aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterlandmark.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:16 -0500
committerJacek Antonelli2008-08-15 23:45:16 -0500
commit3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch)
tree504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llfloaterlandmark.h
parentSecond Life viewer sources 1.18.4.3 (diff)
downloadmeta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/newview/llfloaterlandmark.h')
-rw-r--r--linden/indra/newview/llfloaterlandmark.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterlandmark.h b/linden/indra/newview/llfloaterlandmark.h
new file mode 100644
index 0000000..ad52596
--- /dev/null
+++ b/linden/indra/newview/llfloaterlandmark.h
@@ -0,0 +1,107 @@
1/**
2 * @file lltexturectrl.h
3 * @author Richard Nelson, James Cook
4 * @brief LLTextureCtrl class header file including related functions
5 *
6 * $LicenseInfo:firstyear=2002&license=internal$
7 *
8 * Copyright (c) 2002-2007, Linden Research, Inc.
9 *
10 * The following source code is PROPRIETARY AND CONFIDENTIAL. Use of
11 * this source code is governed by the Linden Lab Source Code Disclosure
12 * Agreement ("Agreement") previously entered between you and Linden
13 * Lab. By accessing, using, copying, modifying or distributing this
14 * software, you acknowledge that you have been informed of your
15 * obligations under the Agreement and agree to abide by those obligations.
16 *
17 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
18 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
19 * COMPLETENESS OR PERFORMANCE.
20 * $/LicenseInfo$
21 */
22
23#ifndef LL_LLFLOATERLANDMARK_H
24#define LL_LLFLOATERLANDMARK_H
25
26#include "llcoord.h"
27#include "llfloater.h"
28#include "llstring.h"
29#include "lluictrl.h"
30#include "llpermissionsflags.h"
31
32class LLButton;
33class LLFloaterTexturePicker;
34class LLInventoryItem;
35class LLTextBox;
36class LLViewBorder;
37class LLFolderViewItem;
38class LLSearchEditor;
39class LLInventoryPanel;
40class LLSaveFolderState;
41
42// used for setting drag & drop callbacks.
43typedef BOOL (*drag_n_drop_callback)(LLUICtrl*, LLInventoryItem*, void*);
44
45
46//////////////////////////////////////////////////////////////////////////////////////////
47// LLFloaterLandmark
48
49class LLFloaterLandmark: public LLFloater, public LLUISingleton<LLFloaterLandmark>
50{
51public:
52 LLFloaterLandmark(const LLSD& data);
53 virtual ~LLFloaterLandmark();
54
55 // LLView overrides
56 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask,
57 BOOL drop, EDragAndDropType cargo_type, void *cargo_data,
58 EAcceptance *accept,
59 LLString& tooltip_msg);
60 virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent);
61
62 // LLFloater overrides
63 virtual void onClose(bool app_quitting);
64
65 const LLUUID& getAssetID() { return mImageAssetID; }
66 const LLUUID& findItemID(const LLUUID& asset_id, BOOL copyable_only);
67
68 void setDirty( BOOL b ) { mIsDirty = b; }
69 BOOL isDirty() { return mIsDirty; }
70 void setActive( BOOL active );
71
72 static void onBtnClose( void* userdata );
73 static void onBtnNew( void* userdata );
74 static void onBtnEdit( void* userdata );
75 static void onBtnDelete( void* userdata );
76 static void onBtnNewFolder( void* userdata );
77 static void onBtnRename( void* userdata );
78 static void onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action, void* data);
79 static void onShowFolders(LLUICtrl* ctrl, void* userdata);
80 static void onSearchEdit(const LLString& search_string, void* user_data );
81
82protected:
83 LLPointer<LLViewerImage> mLandmarkp;
84
85 LLUUID mImageAssetID; // Currently selected texture
86
87 LLUUID mWhiteImageAssetID;
88 LLUUID mSpecialCurrentImageAssetID; // Used when the asset id has no corresponding texture in the user's inventory.
89 LLUUID mOriginalImageAssetID;
90
91 LLTextBox* mTentativeLabel;
92 LLTextBox* mResolutionLabel;
93
94 LLString mPendingName;
95 BOOL mIsDirty;
96 BOOL mActive;
97
98 LLSearchEditor* mSearchEdit;
99 LLInventoryPanel* mInventoryPanel;
100 PermissionMask mImmediateFilterPermMask;
101 PermissionMask mNonImmediateFilterPermMask;
102 BOOL mNoCopyLandmarkSelected;
103 F32 mContextConeOpacity;
104 LLSaveFolderState* mSavedFolderState;
105};
106
107#endif // LL_FLOATERLANDMARK_H