aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgrouplandmoney.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/llpanelgrouplandmoney.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/llpanelgrouplandmoney.h146
1 files changed, 146 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgrouplandmoney.h b/linden/indra/newview/llpanelgrouplandmoney.h
new file mode 100644
index 0000000..c2d860e
--- /dev/null
+++ b/linden/indra/newview/llpanelgrouplandmoney.h
@@ -0,0 +1,146 @@
1/**
2 * @file llpanelgrouplandmoney.h
3 * @brief Panel for group land and money.
4 *
5 * Copyright (c) 2006-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_PANEL_GROUP_LAND_MONEY_H
29#define LL_PANEL_GROUP_LAND_MONEY_H
30
31#include "llpanelgroup.h"
32#include "llmap.h"
33#include "lluuid.h"
34
35#include "llbutton.h"
36#include "lltexteditor.h"
37#include "llpanel.h"
38
39class LLPanelGroupLandMoney : public LLPanelGroupTab
40{
41public:
42 LLPanelGroupLandMoney(const std::string& name, const LLUUID& group_id);
43 virtual ~LLPanelGroupLandMoney();
44 virtual BOOL postBuild();
45 virtual BOOL isVisibleByAgent(LLAgent* agentp);
46
47 static void* createTab(void* data);
48
49 virtual void activate();
50 virtual bool needsApply(LLString& mesg);
51 virtual bool apply(LLString& mesg);
52 virtual void cancel();
53 virtual void update(LLGroupChange gc);
54
55 static void processPlacesReply(LLMessageSystem* msg, void**);
56
57 static LLMap<LLUUID, LLPanelGroupLandMoney*> sGroupIDs;
58protected:
59 class impl;
60 impl* mImplementationp;
61};
62
63class LLGroupMoneyTabEventHandler
64{
65public:
66 LLGroupMoneyTabEventHandler(LLButton* earlier_button,
67 LLButton* later_button,
68 LLTextEditor* text_editor,
69 LLTabContainerCommon* tab_containerp,
70 LLPanel* panelp,
71 const LLUUID& group_id,
72 S32 interval_length_days,
73 S32 max_interval_days);
74 virtual ~LLGroupMoneyTabEventHandler();
75
76 virtual void requestData(LLMessageSystem* msg);
77 virtual void processReply(LLMessageSystem* msg, void** data);
78
79 virtual void onClickEarlier();
80 virtual void onClickLater();
81 virtual void onClickTab();
82
83 static void clickEarlierCallback(void* data);
84 static void clickLaterCallback(void* data);
85 static void clickTabCallback(void* user_data, bool from_click);
86
87 static LLMap<LLUUID, LLGroupMoneyTabEventHandler*> sInstanceIDs;
88 static std::map<LLPanel*, LLGroupMoneyTabEventHandler*> sTabsToHandlers;
89protected:
90 class impl;
91 impl* mImplementationp;
92};
93
94class LLGroupMoneyDetailsTabEventHandler : public LLGroupMoneyTabEventHandler
95{
96public:
97 LLGroupMoneyDetailsTabEventHandler(LLButton* earlier_buttonp,
98 LLButton* later_buttonp,
99 LLTextEditor* text_editorp,
100 LLTabContainerCommon* tab_containerp,
101 LLPanel* panelp,
102 const LLUUID& group_id);
103 virtual ~LLGroupMoneyDetailsTabEventHandler();
104
105 virtual void requestData(LLMessageSystem* msg);
106 virtual void processReply(LLMessageSystem* msg, void** data);
107
108 static void processGroupAccountDetailsReply(LLMessageSystem* msg,
109 void** data);
110};
111
112class LLGroupMoneySalesTabEventHandler : public LLGroupMoneyTabEventHandler
113{
114public:
115 LLGroupMoneySalesTabEventHandler(LLButton* earlier_buttonp,
116 LLButton* later_buttonp,
117 LLTextEditor* text_editorp,
118 LLTabContainerCommon* tab_containerp,
119 LLPanel* panelp,
120 const LLUUID& group_id);
121 virtual ~LLGroupMoneySalesTabEventHandler();
122
123 virtual void requestData(LLMessageSystem* msg);
124 virtual void processReply(LLMessageSystem* msg, void** data);
125
126 static void processGroupAccountTransactionsReply(LLMessageSystem* msg,
127 void** data);
128};
129
130class LLGroupMoneyPlanningTabEventHandler : public LLGroupMoneyTabEventHandler
131{
132public:
133 LLGroupMoneyPlanningTabEventHandler(LLTextEditor* text_editor,
134 LLTabContainerCommon* tab_containerp,
135 LLPanel* panelp,
136 const LLUUID& group_id);
137 virtual ~LLGroupMoneyPlanningTabEventHandler();
138
139 virtual void requestData(LLMessageSystem* msg);
140 virtual void processReply(LLMessageSystem* msg, void** data);
141
142 static void processGroupAccountSummaryReply(LLMessageSystem* msg,
143 void** data);
144};
145
146#endif // LL_PANEL_GROUP_LAND_MONEY_H