aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llwindowsdl.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llwindow/llwindowsdl.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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/llwindowsdl.h')
-rw-r--r--linden/indra/llwindow/llwindowsdl.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/linden/indra/llwindow/llwindowsdl.h b/linden/indra/llwindow/llwindowsdl.h
index 5aed4e6..a395ccd 100644
--- a/linden/indra/llwindow/llwindowsdl.h
+++ b/linden/indra/llwindow/llwindowsdl.h
@@ -92,11 +92,6 @@ public:
92 /*virtual*/ void gatherInput(); 92 /*virtual*/ void gatherInput();
93 /*virtual*/ void swapBuffers(); 93 /*virtual*/ void swapBuffers();
94 94
95 /*virtual*/ LLString getTempFileName();
96 /*virtual*/ void deleteFile( const char* file_name );
97 /*virtual*/ S32 stat( const char* file_name, struct stat* stat_info );
98 /*virtual*/ BOOL sendEmail(const char* address,const char* subject,const char* body_text,const char* attachment=NULL, const char* attachment_displayed_name=NULL);
99
100 /*virtual*/ void delayInputProcessing() { }; 95 /*virtual*/ void delayInputProcessing() { };
101 96
102 // handy coordinate space conversion routines 97 // handy coordinate space conversion routines
@@ -120,6 +115,8 @@ public:
120 /*virtual*/ void *getPlatformWindow(); 115 /*virtual*/ void *getPlatformWindow();
121 /*virtual*/ void bringToFront(); 116 /*virtual*/ void bringToFront();
122 117
118 /*virtual*/ void spawnWebBrowser(const std::string& escaped_url);
119
123 static std::string getFontListSans(); 120 static std::string getFontListSans();
124 121
125 // Not great that these are public, but they have to be accessible 122 // Not great that these are public, but they have to be accessible
@@ -134,7 +131,7 @@ public:
134 131
135protected: 132protected:
136 LLWindowSDL( 133 LLWindowSDL(
137 char *title, int x, int y, int width, int height, U32 flags, 134 const std::string& title, int x, int y, int width, int height, U32 flags,
138 BOOL fullscreen, BOOL clearBg, BOOL disable_vsync, BOOL use_gl, 135 BOOL fullscreen, BOOL clearBg, BOOL disable_vsync, BOOL use_gl,
139 BOOL ignore_pixel_depth, U32 fsaa_samples); 136 BOOL ignore_pixel_depth, U32 fsaa_samples);
140 ~LLWindowSDL(); 137 ~LLWindowSDL();
@@ -164,7 +161,7 @@ protected:
164 // create or re-create the GL context/window. Called from the constructor and switchContext(). 161 // create or re-create the GL context/window. Called from the constructor and switchContext().
165 BOOL createContext(int x, int y, int width, int height, int bits, BOOL fullscreen, BOOL disable_vsync); 162 BOOL createContext(int x, int y, int width, int height, int bits, BOOL fullscreen, BOOL disable_vsync);
166 void destroyContext(); 163 void destroyContext();
167 void setupFailure(const char* text, const char* caption, U32 type); 164 void setupFailure(const std::string& text, const std::string& caption, U32 type);
168 void adjustCursorDecouple(bool warpingMouse = false); 165 void adjustCursorDecouple(bool warpingMouse = false);
169 void fixWindowSize(void); 166 void fixWindowSize(void);
170 U32 SDLCheckGrabbyKeys(SDLKey keysym, BOOL gain); 167 U32 SDLCheckGrabbyKeys(SDLKey keysym, BOOL gain);
@@ -176,7 +173,7 @@ protected:
176 U32 mGrabbyKeyFlags; 173 U32 mGrabbyKeyFlags;
177 int mReallyCapturedCount; 174 int mReallyCapturedCount;
178 SDL_Surface * mWindow; 175 SDL_Surface * mWindow;
179 char * mWindowTitle; 176 std::string mWindowTitle;
180 double mOriginalAspectRatio; 177 double mOriginalAspectRatio;
181 BOOL mCursorDecoupled; 178 BOOL mCursorDecoupled;
182 S32 mCursorLastEventDeltaX; 179 S32 mCursorLastEventDeltaX;
@@ -220,11 +217,11 @@ public:
220 virtual ~LLSplashScreenSDL(); 217 virtual ~LLSplashScreenSDL();
221 218
222 /*virtual*/ void showImpl(); 219 /*virtual*/ void showImpl();
223 /*virtual*/ void updateImpl(const char* mesg); 220 /*virtual*/ void updateImpl(const std::string& mesg);
224 /*virtual*/ void hideImpl(); 221 /*virtual*/ void hideImpl();
225}; 222};
226 223
227S32 OSMessageBoxSDL(const char* text, const char* caption, U32 type); 224S32 OSMessageBoxSDL(const std::string& text, const std::string& caption, U32 type);
228 225
229void load_url_external(const char* url); 226void load_url_external(const char* url);
230 227