PageRenderTime 419ms CodeModel.GetById 217ms app.highlight 2ms RepoModel.GetById 199ms app.codeStats 0ms

/indra/newview/llsavedsettingsglue.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 46 lines | 13 code | 4 blank | 29 comment | 0 complexity | 5ea20f7cbeed837ea236bbc54b040b84 MD5 | raw file
 1/** 
 2 * @file llsavedsettingsglue.h
 3 * @author James Cook
 4 * @brief LLSavedSettingsGlue class definition
 5 *
 6 * $LicenseInfo:firstyear=2006&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28#ifndef LL_LLSAVEDSETTINGSGLUE_H
29#define LL_LLSAVEDSETTINGSGLUE_H
30
31class LLUICtrl;
32
33// Helper to change gSavedSettings from UI widget commit callbacks.
34// Set the widget callback to be one of the setFoo() calls below,
35// and assign the control name as a const char* to the userdata.
36class LLSavedSettingsGlue
37{
38public:
39	static void setBOOL(LLUICtrl* ctrl, const std::string& name);
40	static void setS32(LLUICtrl* ctrl, const std::string& name);
41	static void setF32(LLUICtrl* ctrl, const std::string& name);
42	static void setU32(LLUICtrl* ctrl, const std::string& name);
43	static void setString(LLUICtrl* ctrl, const std::string& name);
44};
45
46#endif