aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llviewermenu.h
parentREADME.txt (diff)
downloadmeta-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.h193
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
38class LLUICtrl;
39class LLView;
40
41struct LLResourceData
42{
43 LLAssetInfo mAssetInfo;
44 LLAssetType::EType mPreferredLocation;
45 LLInventoryType::EType mInventoryType;
46 U32 mNextOwnerPerm;
47 void *mUserData;
48};
49
50void pre_init_menus();
51void init_menus();
52void cleanup_menus();
53
54void show_debug_menus(); // checks for if menus should be shown first.
55void show_context_menu( S32 x, S32 y, MASK mask );
56void show_build_mode_context_menu(S32 x, S32 y, MASK mask);
57void load_url_local_file(const char *file_name);
58BOOL enable_save_into_inventory(void*);
59void handle_reset_view();
60void handle_cut(void*);
61void handle_copy(void*);
62void handle_paste(void*);
63void handle_delete(void*);
64void handle_redo(void*);
65void handle_undo(void*);
66void handle_select_all(void*);
67void handle_deselect(void*);
68void handle_delete_object();
69void handle_duplicate(void*);
70void handle_duplicate_in_place(void*);
71BOOL enable_not_have_card(void *userdata);
72void process_grant_godlike_powers(LLMessageSystem* msg, void**);
73
74BOOL enable_cut(void*);
75BOOL enable_copy(void*);
76BOOL enable_paste(void*);
77BOOL enable_select_all(void*);
78BOOL enable_deselect(void*);
79BOOL enable_undo(void*);
80BOOL enable_redo(void*);
81
82// returns TRUE if we have a friend relationship with agent_id
83BOOL is_agent_friend(const LLUUID& agent_id);
84BOOL is_agent_mappable(const LLUUID& agent_id);
85
86void menu_toggle_control( void* user_data );
87void check_toggle_control( LLUICtrl *, void* user_data );
88void handle_attach_to_avatar(void* user_data);
89void confirm_replace_attachment(S32 option, void* user_data);
90void handle_detach_from_avatar(void* user_data);
91void attach_label(LLString& label, void* user_data);
92void detach_label(LLString& label, void* user_data);
93BOOL object_selected_and_point_valid(void* user_data);
94BOOL object_attached(void* user_data);
95void handle_detach(void*);
96BOOL enable_god_full(void* user_data);
97BOOL enable_god_liaison(void* user_data);
98BOOL enable_god_customer_service(void* user_data);
99BOOL enable_god_basic(void* user_data);
100void handle_show_newest_map(void*);
101
102void exchange_callingcard(const LLUUID& dest_id);
103
104void handle_gestures(void*);
105void handle_sit_down(void*);
106bool toggle_build_mode();
107void handle_object_build(void*);
108void handle_save_snapshot(void *);
109
110bool handle_sit_or_stand();
111bool handle_give_money_dialog();
112bool handle_object_open();
113bool handle_go_to();
114
115void 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
124void 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
135void handle_export_selected( void * );
136
137//Retrieve a list of valid extensions for a given file "type"
138const 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.
142class LLSaleInfo;
143class LLPermissions;
144
145class LLViewerMenuHolderGL : public LLMenuHolderGL
146{
147public:
148 LLViewerMenuHolderGL() : LLMenuHolderGL() {};
149
150 virtual BOOL hideMenus();
151 //virtual BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent);
152};
153
154extern const LLString SAVE_INTO_INVENTORY;
155
156extern LLMenuBarGL* gMenuBarView;
157//extern LLView* gMenuBarHolder;
158extern LLMenuGL* gPopupMenuView;
159extern LLViewerMenuHolderGL* gMenuHolder;
160
161// Pie menus
162extern LLPieMenu *gPieSelf;
163extern LLPieMenu *gPieAvatar;
164extern LLPieMenu *gPieObject;
165extern LLPieMenu *gPieAttachment;
166extern LLPieMenu *gPieLand;
167extern LLPieMenu* gPieRate;
168
169// Pie menus
170extern LLPieMenu *gPieSelfSimple;
171extern LLPieMenu *gPieAvatarSimple;
172extern LLPieMenu *gPieObjectSimple;
173extern LLPieMenu *gPieAttachmentSimple;
174extern LLPieMenu *gPieLandSimple;
175
176// Needed to build menus when attachment site list available
177extern LLMenuGL* gAttachSubMenu;
178extern LLMenuGL* gDetachSubMenu;
179extern LLMenuGL* gTakeOffClothes;
180extern LLPieMenu* gAttachScreenPieMenu;
181extern LLPieMenu* gDetachScreenPieMenu;
182extern LLPieMenu* gAttachPieMenu;
183extern LLPieMenu* gDetachPieMenu;
184extern LLPieMenu* gAttachBodyPartPieMenus[8];
185extern LLPieMenu* gDetachBodyPartPieMenus[8];
186
187extern LLMenuItemCallGL* gAFKMenu;
188extern LLMenuItemCallGL* gBusyMenu;
189extern LLMenuItemCallGL* gMutePieMenu;
190extern LLMenuItemCallGL* gMuteObjectPieMenu;
191extern LLMenuItemCallGL* gBuyPassPieMenu;
192
193#endif