diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llfloaterlandmark.h | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-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.h | 107 |
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 | |||
32 | class LLButton; | ||
33 | class LLFloaterTexturePicker; | ||
34 | class LLInventoryItem; | ||
35 | class LLTextBox; | ||
36 | class LLViewBorder; | ||
37 | class LLFolderViewItem; | ||
38 | class LLSearchEditor; | ||
39 | class LLInventoryPanel; | ||
40 | class LLSaveFolderState; | ||
41 | |||
42 | // used for setting drag & drop callbacks. | ||
43 | typedef BOOL (*drag_n_drop_callback)(LLUICtrl*, LLInventoryItem*, void*); | ||
44 | |||
45 | |||
46 | ////////////////////////////////////////////////////////////////////////////////////////// | ||
47 | // LLFloaterLandmark | ||
48 | |||
49 | class LLFloaterLandmark: public LLFloater, public LLUISingleton<LLFloaterLandmark> | ||
50 | { | ||
51 | public: | ||
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 | |||
82 | protected: | ||
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 | ||