diff options
author | Jacek Antonelli | 2009-09-10 02:38:36 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-10 02:38:36 -0500 |
commit | b3c39a47e76f595fd953d9ccffc58b0dfb8359db (patch) | |
tree | a4bfdb28caf5f42c7ff1878b359aa3fa6a79bc2c /linden/indra/newview/floaterlogin.h | |
parent | Fixed line endings on hippo and grid manager files. (diff) | |
download | meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.zip meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.gz meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.bz2 meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.xz |
Updated Grid Manager from Meerkat's SVN (as of r215).
Diffstat (limited to 'linden/indra/newview/floaterlogin.h')
-rw-r--r-- | linden/indra/newview/floaterlogin.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/linden/indra/newview/floaterlogin.h b/linden/indra/newview/floaterlogin.h index 1800897..cdb60b0 100644 --- a/linden/indra/newview/floaterlogin.h +++ b/linden/indra/newview/floaterlogin.h | |||
@@ -1,10 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * floaterlogin.h | 2 | * floaterlogin.h (floatergridmanager.h pls) |
3 | * SecondLife | 3 | * This is Meerkats grid manager, and I accidentally finished it with the wrong name :) |
4 | * | 4 | * -Patrick Sapinski (Monday, August 17, 2009) |
5 | * Created by RMS on 7/15/08. | ||
6 | * | ||
7 | */ | 5 | */ |
6 | |||
8 | #ifndef PL_floaterlogin_H | 7 | #ifndef PL_floaterlogin_H |
9 | #define PL_floaterlogin_H | 8 | #define PL_floaterlogin_H |
10 | 9 | ||
@@ -19,8 +18,7 @@ class AuthenticationModel; | |||
19 | class LoginFloater : public LLFloater | 18 | class LoginFloater : public LLFloater |
20 | { | 19 | { |
21 | public: | 20 | public: |
22 | LoginFloater(void (*callback)(S32 option, void *user_data), | 21 | LoginFloater(); |
23 | void *callback_data); | ||
24 | virtual ~LoginFloater(); | 22 | virtual ~LoginFloater(); |
25 | 23 | ||
26 | virtual BOOL postBuild(); | 24 | virtual BOOL postBuild(); |
@@ -31,11 +29,7 @@ public: | |||
31 | void cancel(); | 29 | void cancel(); |
32 | 30 | ||
33 | // new-style login methods | 31 | // new-style login methods |
34 | static void newShow(const std::string &grid, bool initialLogin, | 32 | static void newShow(const std::string &grid, bool initialLogin); |
35 | void (*callback)(S32 option, void *user_data), | ||
36 | void *callback_data); | ||
37 | static void testShow(void *lies); | ||
38 | static void testCallback(S32 option, void *user_data); | ||
39 | virtual std::string& getPassword(); | 33 | virtual std::string& getPassword(); |
40 | virtual void setPassword(std::string &password); | 34 | virtual void setPassword(std::string &password); |
41 | virtual bool isSamePassword(std::string &password); | 35 | virtual bool isSamePassword(std::string &password); |
@@ -54,14 +48,9 @@ public: | |||
54 | static void refreshLocation(bool force_visible); | 48 | static void refreshLocation(bool force_visible); |
55 | virtual void setFocus(BOOL b); | 49 | virtual void setFocus(BOOL b); |
56 | static void giveFocus(); | 50 | static void giveFocus(); |
57 | static void getFields(std::string& firstname, std::string& lastname, | ||
58 | std::string& password, BOOL& remember); | ||
59 | static void setFields(const std::string& firstname, const std::string &lastname, | ||
60 | const std::string& password, BOOL remember); | ||
61 | static void getLocation(std::string &location); | 51 | static void getLocation(std::string &location); |
62 | static BOOL isGridComboDirty(); | 52 | static BOOL isGridComboDirty(); |
63 | static void addServer(const std::string& server, S32 domain_name); | 53 | static void addServer(const std::string& server, S32 domain_name); |
64 | static void accept(); | ||
65 | static void cancel_old(); | 54 | static void cancel_old(); |
66 | static void hashPassword(const std::string& password, std::string& hashedPassword); | 55 | static void hashPassword(const std::string& password, std::string& hashedPassword); |
67 | protected: | 56 | protected: |
@@ -78,13 +67,16 @@ private: | |||
78 | void applyChanges(); | 67 | void applyChanges(); |
79 | bool createNewGrid(); | 68 | bool createNewGrid(); |
80 | void update(); | 69 | void update(); |
70 | void retrieveGridInfo(); | ||
81 | 71 | ||
82 | static void onSelectGrid(LLUICtrl *ctrl, void *data); | 72 | static void onSelectGrid(LLUICtrl *ctrl, void *data); |
83 | static void onClickDelete(void *data); | 73 | static void onClickDelete(void *data); |
84 | static void onClickAdd(void *data); | 74 | static void onClickAdd(void *data); |
85 | static void onClickCopy(void *data); | 75 | static void onClickCopy(void *data); |
76 | static void onClickOk(void *data); | ||
86 | static void onClickApply(void *data); | 77 | static void onClickApply(void *data); |
87 | static void onClickDefault(void *data); | 78 | static void onClickDefault(void *data); |
79 | static void onClickGridInfo(void *data); | ||
88 | static void onClickCancel(void *data); | 80 | static void onClickCancel(void *data); |
89 | 81 | ||
90 | static LoginFloater *sInstance; | 82 | static LoginFloater *sInstance; |