PageRenderTime 50ms CodeModel.GetById 19ms app.highlight 27ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llwindow/llwindowcallbacks.cpp

https://bitbucket.org/lindenlab/viewer-beta/
C++ | 200 lines | 127 code | 43 blank | 30 comment | 0 complexity | 68aeb85ee16497f590d31e9f994743b7 MD5 | raw file
  1/** 
  2 * @file llwindowcallbacks.cpp
  3 * @brief OS event callback class
  4 *
  5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  6 * Second Life Viewer Source Code
  7 * Copyright (C) 2010, Linden Research, Inc.
  8 * 
  9 * This library is free software; you can redistribute it and/or
 10 * modify it under the terms of the GNU Lesser General Public
 11 * License as published by the Free Software Foundation;
 12 * version 2.1 of the License only.
 13 * 
 14 * This library is distributed in the hope that it will be useful,
 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 17 * Lesser General Public License for more details.
 18 * 
 19 * You should have received a copy of the GNU Lesser General Public
 20 * License along with this library; if not, write to the Free Software
 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 22 * 
 23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
 24 * $/LicenseInfo$
 25 */
 26
 27#include "linden_common.h"
 28
 29#include "llwindowcallbacks.h"
 30
 31#include "llcoord.h"
 32
 33//
 34// LLWindowCallbacks
 35//
 36
 37BOOL LLWindowCallbacks::handleTranslatedKeyDown(const KEY key, const MASK mask, BOOL repeated)
 38{
 39	return FALSE;
 40}
 41
 42
 43BOOL LLWindowCallbacks::handleTranslatedKeyUp(const KEY key, const MASK mask)
 44{
 45	return FALSE;
 46}
 47
 48void LLWindowCallbacks::handleScanKey(KEY key, BOOL key_down, BOOL key_up, BOOL key_level)
 49{
 50}
 51
 52BOOL LLWindowCallbacks::handleUnicodeChar(llwchar uni_char, MASK mask)
 53{
 54	return FALSE;
 55}
 56
 57
 58BOOL LLWindowCallbacks::handleMouseDown(LLWindow *window, const LLCoordGL pos, MASK mask)
 59{
 60	return FALSE;
 61}
 62
 63BOOL LLWindowCallbacks::handleMouseUp(LLWindow *window, const LLCoordGL pos, MASK mask)
 64{
 65	return FALSE;
 66}
 67
 68void LLWindowCallbacks::handleMouseLeave(LLWindow *window)
 69{
 70	return;
 71}
 72
 73BOOL LLWindowCallbacks::handleCloseRequest(LLWindow *window)
 74{
 75	//allow the window to close
 76	return TRUE;
 77}
 78
 79void LLWindowCallbacks::handleQuit(LLWindow *window)
 80{
 81}
 82
 83BOOL LLWindowCallbacks::handleRightMouseDown(LLWindow *window, const LLCoordGL pos, MASK mask)
 84{
 85	return FALSE;
 86}
 87
 88BOOL LLWindowCallbacks::handleRightMouseUp(LLWindow *window, const LLCoordGL pos, MASK mask)
 89{
 90	return FALSE;
 91}
 92
 93BOOL LLWindowCallbacks::handleMiddleMouseDown(LLWindow *window, const LLCoordGL pos, MASK mask)
 94{
 95	return FALSE;
 96}
 97
 98BOOL LLWindowCallbacks::handleMiddleMouseUp(LLWindow *window, const LLCoordGL pos, MASK mask)
 99{
100	return FALSE;
101}
102
103BOOL LLWindowCallbacks::handleActivate(LLWindow *window, BOOL activated)
104{
105	return FALSE;
106}
107
108BOOL LLWindowCallbacks::handleActivateApp(LLWindow *window, BOOL activating)
109{
110	return FALSE;
111}
112
113void LLWindowCallbacks::handleMouseMove(LLWindow *window, const LLCoordGL pos, MASK mask)
114{
115}
116
117void LLWindowCallbacks::handleScrollWheel(LLWindow *window, S32 clicks)
118{
119}
120
121void LLWindowCallbacks::handleResize(LLWindow *window, const S32 width, const S32 height)
122{
123}
124
125void LLWindowCallbacks::handleFocus(LLWindow *window)
126{
127}
128
129void LLWindowCallbacks::handleFocusLost(LLWindow *window)
130{
131}
132
133void LLWindowCallbacks::handleMenuSelect(LLWindow *window, const S32 menu_item)
134{
135}
136
137BOOL LLWindowCallbacks::handlePaint(LLWindow *window, const S32 x, const S32 y, 
138									const S32 width, const S32 height)
139{
140	return FALSE;
141}
142
143BOOL LLWindowCallbacks::handleDoubleClick(LLWindow *window, const LLCoordGL pos, MASK mask)
144{
145	return FALSE;
146}
147
148void LLWindowCallbacks::handleWindowBlock(LLWindow *window)
149{
150}
151
152void LLWindowCallbacks::handleWindowUnblock(LLWindow *window)
153{
154}
155
156void LLWindowCallbacks::handleDataCopy(LLWindow *window, S32 data_type, void *data)
157{
158}
159
160LLWindowCallbacks::DragNDropResult LLWindowCallbacks::handleDragNDrop(LLWindow *window, LLCoordGL pos, MASK mask, DragNDropAction action, std::string data )
161{
162	return LLWindowCallbacks::DND_NONE;
163}
164
165BOOL LLWindowCallbacks::handleTimerEvent(LLWindow *window)
166{
167	return FALSE;
168}
169
170BOOL LLWindowCallbacks::handleDeviceChange(LLWindow *window)
171{
172	return FALSE;
173}
174
175void LLWindowCallbacks::handlePingWatchdog(LLWindow *window, const char * msg)
176{
177
178}
179
180void LLWindowCallbacks::handlePauseWatchdog(LLWindow *window)
181{
182
183}
184
185void LLWindowCallbacks::handleResumeWatchdog(LLWindow *window)
186{
187
188}
189
190std::string LLWindowCallbacks::translateString(const char* tag)
191{
192    return std::string();
193}
194
195//virtual
196std::string LLWindowCallbacks::translateString(const char* tag,
197		const std::map<std::string, std::string>& args)
198{
199	return std::string();
200}