Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c1899435
Commit
c1899435
authored
15 years ago
by
Lynx Linden
Browse files
Options
Downloads
Plain Diff
Automated merge with
ssh://hg.lindenlab.com/viewer/viewer-2-0
parents
56281bef
1c591c06
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/newview/lltoastalertpanel.cpp
+4
-1
4 additions, 1 deletion
indra/newview/lltoastalertpanel.cpp
indra/newview/lltoastalertpanel.h
+7
-9
7 additions, 9 deletions
indra/newview/lltoastalertpanel.h
indra/newview/llweb.cpp
+3
-1
3 additions, 1 deletion
indra/newview/llweb.cpp
with
14 additions
and
11 deletions
indra/newview/lltoastalertpanel.cpp
+
4
−
1
View file @
c1899435
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
* $/LicenseInfo$
* $/LicenseInfo$
*/
*/
// *NOTE: this module is a copy-paste of llui/llalertdialog.h
// Can we re-implement this as a subclass of LLAlertDialog and
// avoid all this code duplication? It already caused EXT-2232.
#include
"llviewerprecompiledheaders.h"
// must be first include
#include
"llviewerprecompiledheaders.h"
// must be first include
...
@@ -56,7 +59,7 @@ const F32 DEFAULT_BUTTON_DELAY = 0.5f;
...
@@ -56,7 +59,7 @@ const F32 DEFAULT_BUTTON_DELAY = 0.5f;
const
S32
MSG_PAD
=
8
;
const
S32
MSG_PAD
=
8
;
/*static*/
LLControlGroup
*
LLToastAlertPanel
::
sSettings
=
NULL
;
/*static*/
LLControlGroup
*
LLToastAlertPanel
::
sSettings
=
NULL
;
/*static*/
LL
ToastAlertPanel
::
URLLoader
*
LLToastAlertPanel
::
sURLLoader
;
/*static*/
LL
Alert
URLLoader
*
LLToastAlertPanel
::
sURLLoader
;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Private methods
// Private methods
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lltoastalertpanel.h
+
7
−
9
View file @
c1899435
...
@@ -30,6 +30,10 @@
...
@@ -30,6 +30,10 @@
* $/LicenseInfo$
* $/LicenseInfo$
*/
*/
// *NOTE: this module is a copy-paste of llui/llalertdialog.h
// Can we re-implement this as a subclass of LLAlertDialog and
// avoid all this code duplication? It already caused EXT-2232.
#ifndef LL_TOASTALERTPANEL_H
#ifndef LL_TOASTALERTPANEL_H
#define LL_TOASTALERTPANEL_H
#define LL_TOASTALERTPANEL_H
...
@@ -37,6 +41,7 @@
...
@@ -37,6 +41,7 @@
#include
"llfloater.h"
#include
"llfloater.h"
#include
"llui.h"
#include
"llui.h"
#include
"llnotifications.h"
#include
"llnotifications.h"
#include
"llalertdialog.h"
class
LLButton
;
class
LLButton
;
class
LLCheckBoxCtrl
;
class
LLCheckBoxCtrl
;
...
@@ -57,14 +62,7 @@ class LLToastAlertPanel
...
@@ -57,14 +62,7 @@ class LLToastAlertPanel
public:
public:
typedef
bool
(
*
display_callback_t
)(
S32
modal
);
typedef
bool
(
*
display_callback_t
)(
S32
modal
);
class
URLLoader
static
void
setURLLoader
(
LLAlertURLLoader
*
loader
)
{
public:
virtual
void
load
(
const
std
::
string
&
url
,
bool
force_open_externally
=
0
)
=
0
;
virtual
~
URLLoader
()
{}
};
static
void
setURLLoader
(
URLLoader
*
loader
)
{
{
sURLLoader
=
loader
;
sURLLoader
=
loader
;
}
}
...
@@ -97,7 +95,7 @@ class LLToastAlertPanel
...
@@ -97,7 +95,7 @@ class LLToastAlertPanel
BOOL
hasTitleBar
()
const
;
BOOL
hasTitleBar
()
const
;
private
:
private
:
static
URLLoader
*
sURLLoader
;
static
LLAlert
URLLoader
*
sURLLoader
;
static
LLControlGroup
*
sSettings
;
static
LLControlGroup
*
sSettings
;
struct
ButtonData
struct
ButtonData
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llweb.cpp
+
3
−
1
View file @
c1899435
...
@@ -43,8 +43,9 @@
...
@@ -43,8 +43,9 @@
#include
"llfloatermediabrowser.h"
#include
"llfloatermediabrowser.h"
#include
"llfloaterreg.h"
#include
"llfloaterreg.h"
#include
"llalertdialog.h"
#include
"llalertdialog.h"
#include
"lltoastalertpanel.h"
class
URLLoader
:
public
LLAlert
Dialog
::
URLLoader
class
URLLoader
:
public
LLAlertURLLoader
{
{
virtual
void
load
(
const
std
::
string
&
url
,
bool
force_open_externally
)
virtual
void
load
(
const
std
::
string
&
url
,
bool
force_open_externally
)
{
{
...
@@ -65,6 +66,7 @@ static URLLoader sAlertURLLoader;
...
@@ -65,6 +66,7 @@ static URLLoader sAlertURLLoader;
void
LLWeb
::
initClass
()
void
LLWeb
::
initClass
()
{
{
LLAlertDialog
::
setURLLoader
(
&
sAlertURLLoader
);
LLAlertDialog
::
setURLLoader
(
&
sAlertURLLoader
);
LLToastAlertPanel
::
setURLLoader
(
&
sAlertURLLoader
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment