diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llwindow/llwindowmacosx.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llwindow/llwindowmacosx.h')
-rw-r--r-- | linden/indra/llwindow/llwindowmacosx.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/linden/indra/llwindow/llwindowmacosx.h b/linden/indra/llwindow/llwindowmacosx.h index d8a0788..bc0b7d4 100644 --- a/linden/indra/llwindow/llwindowmacosx.h +++ b/linden/indra/llwindow/llwindowmacosx.h | |||
@@ -86,12 +86,6 @@ public: | |||
86 | /*virtual*/ void delayInputProcessing() {}; | 86 | /*virtual*/ void delayInputProcessing() {}; |
87 | /*virtual*/ void swapBuffers(); | 87 | /*virtual*/ void swapBuffers(); |
88 | 88 | ||
89 | /*virtual*/ LLString getTempFileName(); | ||
90 | /*virtual*/ void deleteFile( const char* file_name ); | ||
91 | /*virtual*/ S32 stat( const char* file_name, struct stat* stat_info ); | ||
92 | /*virtual*/ BOOL sendEmail(const char* address,const char* subject,const char* body_text,const char* attachment=NULL, const char* attachment_displayed_name=NULL); | ||
93 | |||
94 | |||
95 | // handy coordinate space conversion routines | 89 | // handy coordinate space conversion routines |
96 | /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to); | 90 | /*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to); |
97 | /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to); | 91 | /*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to); |
@@ -111,16 +105,18 @@ public: | |||
111 | /*virtual*/ BOOL dialog_color_picker(F32 *r, F32 *g, F32 *b); | 105 | /*virtual*/ BOOL dialog_color_picker(F32 *r, F32 *g, F32 *b); |
112 | 106 | ||
113 | /*virtual*/ void *getPlatformWindow(); | 107 | /*virtual*/ void *getPlatformWindow(); |
108 | /*virtual*/ void *getMediaWindow(); | ||
114 | /*virtual*/ void bringToFront() {}; | 109 | /*virtual*/ void bringToFront() {}; |
115 | 110 | ||
116 | /*virtual*/ void allowLanguageTextInput(LLPreeditor *preeditor, BOOL b); | 111 | /*virtual*/ void allowLanguageTextInput(LLPreeditor *preeditor, BOOL b); |
117 | /*virtual*/ void interruptLanguageTextInput(); | 112 | /*virtual*/ void interruptLanguageTextInput(); |
113 | /*virtual*/ void spawnWebBrowser(const std::string& escaped_url); | ||
118 | 114 | ||
119 | static std::string getFontListSans(); | 115 | static std::string getFontListSans(); |
120 | 116 | ||
121 | protected: | 117 | protected: |
122 | LLWindowMacOSX( | 118 | LLWindowMacOSX( |
123 | char *title, char *name, int x, int y, int width, int height, U32 flags, | 119 | const std::string& title, const std::string& name, int x, int y, int width, int height, U32 flags, |
124 | BOOL fullscreen, BOOL clearBg, BOOL disable_vsync, BOOL use_gl, | 120 | BOOL fullscreen, BOOL clearBg, BOOL disable_vsync, BOOL use_gl, |
125 | BOOL ignore_pixel_depth, | 121 | BOOL ignore_pixel_depth, |
126 | U32 fsaa_samples); | 122 | U32 fsaa_samples); |
@@ -154,8 +150,9 @@ protected: | |||
154 | // create or re-create the GL context/window. Called from the constructor and switchContext(). | 150 | // create or re-create the GL context/window. Called from the constructor and switchContext(). |
155 | BOOL createContext(int x, int y, int width, int height, int bits, BOOL fullscreen, BOOL disable_vsync); | 151 | BOOL createContext(int x, int y, int width, int height, int bits, BOOL fullscreen, BOOL disable_vsync); |
156 | void destroyContext(); | 152 | void destroyContext(); |
157 | void setupFailure(const char* text, const char* caption, U32 type); | 153 | void setupFailure(const std::string& text, const std::string& caption, U32 type); |
158 | static pascal OSStatus staticEventHandler (EventHandlerCallRef myHandler, EventRef event, void* userData); | 154 | static pascal OSStatus staticEventHandler (EventHandlerCallRef myHandler, EventRef event, void* userData); |
155 | static pascal Boolean staticMoveEventComparator( EventRef event, void* data); | ||
159 | OSStatus eventHandler (EventHandlerCallRef myHandler, EventRef event); | 156 | OSStatus eventHandler (EventHandlerCallRef myHandler, EventRef event); |
160 | void adjustCursorDecouple(bool warpingMouse = false); | 157 | void adjustCursorDecouple(bool warpingMouse = false); |
161 | void fixWindowSize(void); | 158 | void fixWindowSize(void); |
@@ -174,6 +171,8 @@ protected: | |||
174 | EventHandlerUPP mEventHandlerUPP; | 171 | EventHandlerUPP mEventHandlerUPP; |
175 | EventHandlerRef mGlobalHandlerRef; | 172 | EventHandlerRef mGlobalHandlerRef; |
176 | EventHandlerRef mWindowHandlerRef; | 173 | EventHandlerRef mWindowHandlerRef; |
174 | EventComparatorUPP mMoveEventCampartorUPP; | ||
175 | |||
177 | Rect mOldMouseClip; // Screen rect to which the mouse cursor was globally constrained before we changed it in clipMouse() | 176 | Rect mOldMouseClip; // Screen rect to which the mouse cursor was globally constrained before we changed it in clipMouse() |
178 | Str255 mWindowTitle; | 177 | Str255 mWindowTitle; |
179 | double mOriginalAspectRatio; | 178 | double mOriginalAspectRatio; |
@@ -203,7 +202,11 @@ protected: | |||
203 | LangCode mTSMLangCode; | 202 | LangCode mTSMLangCode; |
204 | LLPreeditor* mPreeditor; | 203 | LLPreeditor* mPreeditor; |
205 | 204 | ||
205 | static BOOL sUseMultGL; | ||
206 | |||
206 | friend class LLWindowManager; | 207 | friend class LLWindowManager; |
208 | static WindowRef sMediaWindow; | ||
209 | |||
207 | }; | 210 | }; |
208 | 211 | ||
209 | 212 | ||
@@ -214,14 +217,14 @@ public: | |||
214 | virtual ~LLSplashScreenMacOSX(); | 217 | virtual ~LLSplashScreenMacOSX(); |
215 | 218 | ||
216 | /*virtual*/ void showImpl(); | 219 | /*virtual*/ void showImpl(); |
217 | /*virtual*/ void updateImpl(const char* mesg); | 220 | /*virtual*/ void updateImpl(const std::string& mesg); |
218 | /*virtual*/ void hideImpl(); | 221 | /*virtual*/ void hideImpl(); |
219 | 222 | ||
220 | private: | 223 | private: |
221 | WindowRef mWindow; | 224 | WindowRef mWindow; |
222 | }; | 225 | }; |
223 | 226 | ||
224 | S32 OSMessageBoxMacOSX(const char* text, const char* caption, U32 type); | 227 | S32 OSMessageBoxMacOSX(const std::string& text, const std::string& caption, U32 type); |
225 | 228 | ||
226 | void load_url_external(const char* url); | 229 | void load_url_external(const char* url); |
227 | 230 | ||