aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterimport.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterimport.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterimport.h')
-rw-r--r--linden/indra/newview/llfloaterimport.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/linden/indra/newview/llfloaterimport.h b/linden/indra/newview/llfloaterimport.h
deleted file mode 100644
index f633196..0000000
--- a/linden/indra/newview/llfloaterimport.h
+++ /dev/null
@@ -1,114 +0,0 @@
1/**
2 * @file llfloaterimport.h
3 * @brief LLFloaterImport class definition
4 *
5 * $LicenseInfo:firstyear=2006&license=viewergpl$
6 *
7 * Copyright (c) 2006-2008, Linden Research, Inc.
8 *
9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab
11 * to you under the terms of the GNU General Public License, version 2.0
12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 *
17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 *
22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above,
24 * and agree to abide by those obligations.
25 *
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
30 */
31
32// llfloaterimport.h
33//
34// copyright 2005, linden research inc
35
36#ifndef LL_LLFLOATERIMPORT_H
37#define LL_LLFLOATERIMPORT_H
38
39#include "lldynamictexture.h"
40#include "llfloater.h"
41#include "llresizehandle.h"
42#include "llscrolllistctrl.h"
43#include "lluploaddialog.h"
44#include "llxmlnode.h"
45#include "llquaternion.h"
46
47class LLComboBox;
48class LLJoint;
49class LLViewerJointMesh;
50class LLVOAvatar;
51class LLTextBox;
52
53struct ImportAssetInfo
54{
55 LLString Name;
56 LLString Desc;
57 LLString FilenameAndPath;
58 LLString SourcePath;
59 std::vector<LLString> ImageFileQueue;
60 std::vector<LLString> OldImageIDList;
61 std::vector<LLString> NewImageIDList;
62};
63
64class LLFloaterImport : public LLFloater
65{
66public:
67 LLFloaterImport(const std::string filename);
68 virtual ~LLFloaterImport();
69
70 virtual BOOL postBuild();
71
72 static void setOKText(const char* text) { sOKText = text; }
73
74 void recalcCost();
75
76 static LLUUID sImportRequestID;
77
78protected:
79 LLXMLNodePtr mObjectFile;
80
81 LLScrollListCtrl* mImportList;
82 LLLineEditor* mNameEditor;
83 LLLineEditor* mDescEditor;
84 LLButton* mOKBtn;
85 LLButton* mCancelBtn;
86 LLTextBox* mImageLabel;
87
88 LLString mFilenameAndPath;
89 LLString mFilename;
90 LLString mFilePath;
91 LLString mInventoryPath;
92
93 typedef std::map<LLUUID, LLPointer<LLImageRaw> > image_map_t;
94 image_map_t mPreviewImages;
95 LLPointer<LLImageRaw> mCurrentPreviewImage;
96 GLuint mGLName;
97
98 LLUploadDialog* mImportDialog;
99
100protected:
101 static LLString sOKText;
102
103 static void onBtnOK(void*);
104 static void onBtnCancel(void*);
105
106 static void asset_uploaded_callback(const LLUUID& uuid, void* user_data, S32 result, LLExtStat ext_status);
107 static void finishImport(ImportAssetInfo *fp);
108
109 void draw();
110 void LoadPreviewImage(LLString image_path, LLUUID image_uuid);
111 BOOL handleMouseDown(S32 x, S32 y, MASK mask);
112};
113
114#endif // LL_LLFLOATERIMPORT_H