diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llviewermenu.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.h | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.h b/linden/indra/newview/llviewermenu.h new file mode 100644 index 0000000..9847e41 --- /dev/null +++ b/linden/indra/newview/llviewermenu.h | |||
@@ -0,0 +1,193 @@ | |||
1 | /** | ||
2 | * @file llviewermenu.h | ||
3 | * @brief Builds menus out of objects | ||
4 | * | ||
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLVIEWERMENU_H | ||
29 | #define LL_LLVIEWERMENU_H | ||
30 | |||
31 | #include "llassetstorage.h" | ||
32 | #include "llinventory.h" | ||
33 | #include "llmenugl.h" | ||
34 | |||
35 | //newview includes | ||
36 | #include "llfilepicker.h" | ||
37 | |||
38 | class LLUICtrl; | ||
39 | class LLView; | ||
40 | |||
41 | struct LLResourceData | ||
42 | { | ||
43 | LLAssetInfo mAssetInfo; | ||
44 | LLAssetType::EType mPreferredLocation; | ||
45 | LLInventoryType::EType mInventoryType; | ||
46 | U32 mNextOwnerPerm; | ||
47 | void *mUserData; | ||
48 | }; | ||
49 | |||
50 | void pre_init_menus(); | ||
51 | void init_menus(); | ||
52 | void cleanup_menus(); | ||
53 | |||
54 | void show_debug_menus(); // checks for if menus should be shown first. | ||
55 | void show_context_menu( S32 x, S32 y, MASK mask ); | ||
56 | void show_build_mode_context_menu(S32 x, S32 y, MASK mask); | ||
57 | void load_url_local_file(const char *file_name); | ||
58 | BOOL enable_save_into_inventory(void*); | ||
59 | void handle_reset_view(); | ||
60 | void handle_cut(void*); | ||
61 | void handle_copy(void*); | ||
62 | void handle_paste(void*); | ||
63 | void handle_delete(void*); | ||
64 | void handle_redo(void*); | ||
65 | void handle_undo(void*); | ||
66 | void handle_select_all(void*); | ||
67 | void handle_deselect(void*); | ||
68 | void handle_delete_object(); | ||
69 | void handle_duplicate(void*); | ||
70 | void handle_duplicate_in_place(void*); | ||
71 | BOOL enable_not_have_card(void *userdata); | ||
72 | void process_grant_godlike_powers(LLMessageSystem* msg, void**); | ||
73 | |||
74 | BOOL enable_cut(void*); | ||
75 | BOOL enable_copy(void*); | ||
76 | BOOL enable_paste(void*); | ||
77 | BOOL enable_select_all(void*); | ||
78 | BOOL enable_deselect(void*); | ||
79 | BOOL enable_undo(void*); | ||
80 | BOOL enable_redo(void*); | ||
81 | |||
82 | // returns TRUE if we have a friend relationship with agent_id | ||
83 | BOOL is_agent_friend(const LLUUID& agent_id); | ||
84 | BOOL is_agent_mappable(const LLUUID& agent_id); | ||
85 | |||
86 | void menu_toggle_control( void* user_data ); | ||
87 | void check_toggle_control( LLUICtrl *, void* user_data ); | ||
88 | void handle_attach_to_avatar(void* user_data); | ||
89 | void confirm_replace_attachment(S32 option, void* user_data); | ||
90 | void handle_detach_from_avatar(void* user_data); | ||
91 | void attach_label(LLString& label, void* user_data); | ||
92 | void detach_label(LLString& label, void* user_data); | ||
93 | BOOL object_selected_and_point_valid(void* user_data); | ||
94 | BOOL object_attached(void* user_data); | ||
95 | void handle_detach(void*); | ||
96 | BOOL enable_god_full(void* user_data); | ||
97 | BOOL enable_god_liaison(void* user_data); | ||
98 | BOOL enable_god_customer_service(void* user_data); | ||
99 | BOOL enable_god_basic(void* user_data); | ||
100 | void handle_show_newest_map(void*); | ||
101 | |||
102 | void exchange_callingcard(const LLUUID& dest_id); | ||
103 | |||
104 | void handle_gestures(void*); | ||
105 | void handle_sit_down(void*); | ||
106 | bool toggle_build_mode(); | ||
107 | void handle_object_build(void*); | ||
108 | void handle_save_snapshot(void *); | ||
109 | |||
110 | bool handle_sit_or_stand(); | ||
111 | bool handle_give_money_dialog(); | ||
112 | bool handle_object_open(); | ||
113 | bool handle_go_to(); | ||
114 | |||
115 | void upload_new_resource(const LLString& src_filename, std::string name, | ||
116 | std::string desc, S32 compression_info, | ||
117 | LLAssetType::EType destination_folder_type, | ||
118 | LLInventoryType::EType inv_type, | ||
119 | U32 next_owner_perm = PERM_NONE, | ||
120 | const LLString& display_name = LLString::null, | ||
121 | LLAssetStorage::LLStoreAssetCallback callback = NULL, | ||
122 | void *userdata = NULL); | ||
123 | |||
124 | void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType type, | ||
125 | std::string name, | ||
126 | std::string desc, S32 compression_info, | ||
127 | LLAssetType::EType destination_folder_type, | ||
128 | LLInventoryType::EType inv_type, | ||
129 | U32 next_owner_perm = PERM_NONE, | ||
130 | const LLString& display_name = LLString::null, | ||
131 | LLAssetStorage::LLStoreAssetCallback callback = NULL, | ||
132 | void *userdata = NULL); | ||
133 | |||
134 | // Export to XML or Collada | ||
135 | void handle_export_selected( void * ); | ||
136 | |||
137 | //Retrieve a list of valid extensions for a given file "type" | ||
138 | const char* build_extensions_string(LLFilePicker::ELoadFilter filter); | ||
139 | |||
140 | // Pass in an empty string and this function will build a string that | ||
141 | // describes buyer permissions. | ||
142 | class LLSaleInfo; | ||
143 | class LLPermissions; | ||
144 | |||
145 | class LLViewerMenuHolderGL : public LLMenuHolderGL | ||
146 | { | ||
147 | public: | ||
148 | LLViewerMenuHolderGL() : LLMenuHolderGL() {}; | ||
149 | |||
150 | virtual BOOL hideMenus(); | ||
151 | //virtual BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent); | ||
152 | }; | ||
153 | |||
154 | extern const LLString SAVE_INTO_INVENTORY; | ||
155 | |||
156 | extern LLMenuBarGL* gMenuBarView; | ||
157 | //extern LLView* gMenuBarHolder; | ||
158 | extern LLMenuGL* gPopupMenuView; | ||
159 | extern LLViewerMenuHolderGL* gMenuHolder; | ||
160 | |||
161 | // Pie menus | ||
162 | extern LLPieMenu *gPieSelf; | ||
163 | extern LLPieMenu *gPieAvatar; | ||
164 | extern LLPieMenu *gPieObject; | ||
165 | extern LLPieMenu *gPieAttachment; | ||
166 | extern LLPieMenu *gPieLand; | ||
167 | extern LLPieMenu* gPieRate; | ||
168 | |||
169 | // Pie menus | ||
170 | extern LLPieMenu *gPieSelfSimple; | ||
171 | extern LLPieMenu *gPieAvatarSimple; | ||
172 | extern LLPieMenu *gPieObjectSimple; | ||
173 | extern LLPieMenu *gPieAttachmentSimple; | ||
174 | extern LLPieMenu *gPieLandSimple; | ||
175 | |||
176 | // Needed to build menus when attachment site list available | ||
177 | extern LLMenuGL* gAttachSubMenu; | ||
178 | extern LLMenuGL* gDetachSubMenu; | ||
179 | extern LLMenuGL* gTakeOffClothes; | ||
180 | extern LLPieMenu* gAttachScreenPieMenu; | ||
181 | extern LLPieMenu* gDetachScreenPieMenu; | ||
182 | extern LLPieMenu* gAttachPieMenu; | ||
183 | extern LLPieMenu* gDetachPieMenu; | ||
184 | extern LLPieMenu* gAttachBodyPartPieMenus[8]; | ||
185 | extern LLPieMenu* gDetachBodyPartPieMenus[8]; | ||
186 | |||
187 | extern LLMenuItemCallGL* gAFKMenu; | ||
188 | extern LLMenuItemCallGL* gBusyMenu; | ||
189 | extern LLMenuItemCallGL* gMutePieMenu; | ||
190 | extern LLMenuItemCallGL* gMuteObjectPieMenu; | ||
191 | extern LLMenuItemCallGL* gBuyPassPieMenu; | ||
192 | |||
193 | #endif | ||