Expose window minimize and restore in LLWindow interface.
Add secondlife:///app/login/reg handler for Reg-In-Client Reviewed with Ambroffmaster
parent
738dabede2
commit
7ff7709f9f
|
|
@ -70,6 +70,8 @@ public:
|
|||
virtual BOOL getMinimized() = 0;
|
||||
virtual BOOL getMaximized() = 0;
|
||||
virtual BOOL maximize() = 0;
|
||||
virtual void minimize() = 0;
|
||||
virtual void restore() = 0;
|
||||
BOOL getFullscreen() { return mFullscreen; };
|
||||
virtual BOOL getPosition(LLCoordScreen *position) = 0;
|
||||
virtual BOOL getSize(LLCoordScreen *size) = 0;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ public:
|
|||
/*virtual*/ BOOL getMinimized() {return FALSE;};
|
||||
/*virtual*/ BOOL getMaximized() {return FALSE;};
|
||||
/*virtual*/ BOOL maximize() {return FALSE;};
|
||||
/*virtual*/ void minimize() {};
|
||||
/*virtual*/ void restore() {};
|
||||
/*virtual*/ BOOL getFullscreen() {return FALSE;};
|
||||
/*virtual*/ BOOL getPosition(LLCoordScreen *position) {return FALSE;};
|
||||
/*virtual*/ BOOL getSize(LLCoordScreen *size) {return FALSE;};
|
||||
|
|
|
|||
|
|
@ -1033,6 +1033,7 @@ void LLWindowMacOSX::hide()
|
|||
HideWindow(mWindow);
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLWindowMacOSX::minimize()
|
||||
{
|
||||
setMouseClipping(FALSE);
|
||||
|
|
@ -1040,6 +1041,7 @@ void LLWindowMacOSX::minimize()
|
|||
CollapseWindow(mWindow, true);
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLWindowMacOSX::restore()
|
||||
{
|
||||
show();
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ public:
|
|||
/*virtual*/ BOOL getMinimized();
|
||||
/*virtual*/ BOOL getMaximized();
|
||||
/*virtual*/ BOOL maximize();
|
||||
/*virtual*/ void minimize();
|
||||
/*virtual*/ void restore();
|
||||
/*virtual*/ BOOL getFullscreen();
|
||||
/*virtual*/ BOOL getPosition(LLCoordScreen *position);
|
||||
/*virtual*/ BOOL getSize(LLCoordScreen *size);
|
||||
|
|
@ -139,9 +141,6 @@ protected:
|
|||
// Restore the display resolution to its value before we ran the app.
|
||||
BOOL resetDisplayResolution();
|
||||
|
||||
void minimize();
|
||||
void restore();
|
||||
|
||||
BOOL shouldPostQuit() { return mPostQuit; }
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ public:
|
|||
/*virtual*/ BOOL getMinimized() {return FALSE;};
|
||||
/*virtual*/ BOOL getMaximized() {return FALSE;};
|
||||
/*virtual*/ BOOL maximize() {return FALSE;};
|
||||
/*virtual*/ void minimize() {};
|
||||
/*virtual*/ void restore() {};
|
||||
/*virtual*/ BOOL getFullscreen() {return FALSE;};
|
||||
/*virtual*/ BOOL getPosition(LLCoordScreen *position) {return FALSE;};
|
||||
/*virtual*/ BOOL getSize(LLCoordScreen *size) {return FALSE;};
|
||||
|
|
|
|||
|
|
@ -839,11 +839,13 @@ void LLWindowSDL::hide()
|
|||
// *FIX: What to do with SDL?
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLWindowSDL::minimize()
|
||||
{
|
||||
// *FIX: What to do with SDL?
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLWindowSDL::restore()
|
||||
{
|
||||
// *FIX: What to do with SDL?
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ public:
|
|||
/*virtual*/ BOOL getMinimized();
|
||||
/*virtual*/ BOOL getMaximized();
|
||||
/*virtual*/ BOOL maximize();
|
||||
/*virtual*/ void minimize();
|
||||
/*virtual*/ void restore();
|
||||
/*virtual*/ BOOL getFullscreen();
|
||||
/*virtual*/ BOOL getPosition(LLCoordScreen *position);
|
||||
/*virtual*/ BOOL getSize(LLCoordScreen *size);
|
||||
|
|
@ -165,9 +167,6 @@ protected:
|
|||
// Go back to last fullscreen display resolution.
|
||||
BOOL setFullscreenResolution();
|
||||
|
||||
void minimize();
|
||||
void restore();
|
||||
|
||||
BOOL shouldPostQuit() { return mPostQuit; }
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -643,6 +643,7 @@ void LLWindowWin32::hide()
|
|||
ShowWindow(mWindowHandle, SW_HIDE);
|
||||
}
|
||||
|
||||
//virtual
|
||||
void LLWindowWin32::minimize()
|
||||
{
|
||||
setMouseClipping(FALSE);
|
||||
|
|
@ -650,7 +651,7 @@ void LLWindowWin32::minimize()
|
|||
ShowWindow(mWindowHandle, SW_MINIMIZE);
|
||||
}
|
||||
|
||||
|
||||
//virtual
|
||||
void LLWindowWin32::restore()
|
||||
{
|
||||
ShowWindow(mWindowHandle, SW_RESTORE);
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ public:
|
|||
/*virtual*/ BOOL getMinimized();
|
||||
/*virtual*/ BOOL getMaximized();
|
||||
/*virtual*/ BOOL maximize();
|
||||
/*virtual*/ void minimize();
|
||||
/*virtual*/ void restore();
|
||||
/*virtual*/ BOOL getFullscreen();
|
||||
/*virtual*/ BOOL getPosition(LLCoordScreen *position);
|
||||
/*virtual*/ BOOL getSize(LLCoordScreen *size);
|
||||
|
|
@ -137,9 +139,6 @@ protected:
|
|||
// Restore the display resolution to its value before we ran the app.
|
||||
BOOL resetDisplayResolution();
|
||||
|
||||
void minimize();
|
||||
void restore();
|
||||
|
||||
BOOL shouldPostQuit() { return mPostQuit; }
|
||||
|
||||
void fillCompositionForm(const LLRect& bounds, COMPOSITIONFORM *form);
|
||||
|
|
|
|||
|
|
@ -40,9 +40,12 @@
|
|||
#include "llurlsimstring.h"
|
||||
#include "llviewercontrol.h" // gSavedSettings
|
||||
#include "llviewernetwork.h" // EGridInfo
|
||||
#include "llviewerwindow.h" // getWindow()
|
||||
|
||||
// library includes
|
||||
#include "llmd5.h"
|
||||
#include "llweb.h"
|
||||
#include "llwindow.h"
|
||||
|
||||
|
||||
// Must have instance to auto-register with LLCommandDispatcher
|
||||
|
|
@ -174,6 +177,32 @@ bool LLLoginHandler::handle(const LLSD& tokens,
|
|||
return true;
|
||||
}
|
||||
|
||||
if (tokens.size() == 1
|
||||
&& tokens[0].asString() == "reg")
|
||||
{
|
||||
LLWindow* window = gViewerWindow->getWindow();
|
||||
window->incBusyCount();
|
||||
window->setCursor(UI_CURSOR_ARROW);
|
||||
|
||||
// Do this first, as it may be slow and we want to keep something
|
||||
// on the user's screen as long as possible
|
||||
LLWeb::loadURLExternal( "http://join.eniac15.lindenlab.com/" );
|
||||
|
||||
window->decBusyCount();
|
||||
window->setCursor(UI_CURSOR_ARROW);
|
||||
|
||||
// Then hide the window
|
||||
window->minimize();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make sure window is visible
|
||||
LLWindow* window = gViewerWindow->getWindow();
|
||||
if (window->getMinimized())
|
||||
{
|
||||
window->restore();
|
||||
}
|
||||
|
||||
parse(query_map);
|
||||
|
||||
//if we haven't initialized stuff yet, this is
|
||||
|
|
|
|||
Loading…
Reference in New Issue