aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.h
diff options
context:
space:
mode:
authorDavid Seikel2011-04-03 23:03:16 +1000
committerDavid Seikel2011-04-03 23:03:16 +1000
commitbe06ecd74c3af1ab5f05a3e4dc543dbee1c7aeb2 (patch)
tree342cc5a544940b370a129dcdf93cadb2ef46f06c /linden/indra/newview/llpanellogin.h
parentPush some of the trivial changes from the accountList branch. (diff)
parentChanged version to Experimental 2011.04.02. (diff)
downloadmeta-impy-be06ecd74c3af1ab5f05a3e4dc543dbee1c7aeb2.zip
meta-impy-be06ecd74c3af1ab5f05a3e4dc543dbee1c7aeb2.tar.gz
meta-impy-be06ecd74c3af1ab5f05a3e4dc543dbee1c7aeb2.tar.bz2
meta-impy-be06ecd74c3af1ab5f05a3e4dc543dbee1c7aeb2.tar.xz
Merge remote-tracking branch 'jacek/exp' into exp
Conflicts: .gitignore linden/indra/newview/English.lproj/InfoPlist.strings linden/indra/newview/llpanellogin.cpp linden/indra/newview/res/viewerRes.rc linden/indra/newview/skins/default/xui/en-us/panel_login.xml linden/install.xml Mostly went with my originals, manually merged llpaterrogin.cpp and panel_login.xml.
Diffstat (limited to 'linden/indra/newview/llpanellogin.h')
-rw-r--r--linden/indra/newview/llpanellogin.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h
index c99fa30..d077f32 100644
--- a/linden/indra/newview/llpanellogin.h
+++ b/linden/indra/newview/llpanellogin.h
@@ -59,9 +59,9 @@ public:
59 void (*callback)(S32 option, void* user_data), 59 void (*callback)(S32 option, void* user_data),
60 void* callback_data); 60 void* callback_data);
61 61
62 // Remember password checkbox is set via gSavedSettings "RememberPassword" 62 // Sets the login screen's name and password editors. Remember password checkbox is set via gSavedSettings "RememberPassword"
63 static void setFields(const std::string& firstname, const std::string& lastname, 63 static void setFields(const std::string& firstname, const std::string& lastname, const std::string& password);
64 const std::string& password); 64 static void setFields(const std::string& username, const std::string& password);
65 65
66 static void addServer(const std::string& server); 66 static void addServer(const std::string& server);
67 static void refreshLocation( bool force_visible ); 67 static void refreshLocation( bool force_visible );
@@ -78,6 +78,7 @@ public:
78 78
79 void setSiteIsAlive( bool alive ); 79 void setSiteIsAlive( bool alive );
80 80
81 static void loadLoginForm();
81 static void loadLoginPage(); 82 static void loadLoginPage();
82 static void refreshLoginPage(); 83 static void refreshLoginPage();
83 static void giveFocus(); 84 static void giveFocus();
@@ -98,8 +99,19 @@ private:
98 static void onPassKey(LLLineEditor* caller, void* user_data); 99 static void onPassKey(LLLineEditor* caller, void* user_data);
99 static void onSelectServer(LLUICtrl*, void*); 100 static void onSelectServer(LLUICtrl*, void*);
100 static void onServerComboLostFocus(LLFocusableElement*, void*); 101 static void onServerComboLostFocus(LLFocusableElement*, void*);
102
103 // converts the following login name formats into valid firstname lastname combos:
104 // username
105 // username.Resident
106 // first.last
107 // first+" "+last
108 // " "+first+" "+last+" "
109 // returns true if name conversion successful
110 static bool convertUsernameToLegacy(std::string& username, std::string& firstname, std::string& lastname);
111
112 // set the password for the login screen
113 static void setPassword(const std::string& password);
101 114
102private:
103 LLPointer<LLUIImage> mLogoImage; 115 LLPointer<LLUIImage> mLogoImage;
104 116
105 void (*mCallback)(S32 option, void *userdata); 117 void (*mCallback)(S32 option, void *userdata);