diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/llmodaldialog.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llui/llmodaldialog.h')
-rw-r--r-- | linden/indra/llui/llmodaldialog.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/llui/llmodaldialog.h b/linden/indra/llui/llmodaldialog.h index 342a0f6..dd82b25 100644 --- a/linden/indra/llui/llmodaldialog.h +++ b/linden/indra/llui/llmodaldialog.h | |||
@@ -40,7 +40,7 @@ class LLModalDialog; | |||
40 | // By default, a ModalDialog is modal, i.e. no other window can have focus | 40 | // By default, a ModalDialog is modal, i.e. no other window can have focus |
41 | // However, for the sake of code reuse and simplicity, if mModal == false, | 41 | // However, for the sake of code reuse and simplicity, if mModal == false, |
42 | // the dialog behaves like a normal floater | 42 | // the dialog behaves like a normal floater |
43 | 43 | // https://wiki.lindenlab.com/mediawiki/index.php?title=LLModalDialog&oldid=81385 | |
44 | class LLModalDialog : public LLFloater | 44 | class LLModalDialog : public LLFloater |
45 | { | 45 | { |
46 | public: | 46 | public: |
@@ -67,6 +67,8 @@ public: | |||
67 | /*virtual*/ void setVisible(BOOL visible); | 67 | /*virtual*/ void setVisible(BOOL visible); |
68 | /*virtual*/ void draw(); | 68 | /*virtual*/ void draw(); |
69 | 69 | ||
70 | BOOL isModal() const { return mModal; } | ||
71 | |||
70 | static void onAppFocusLost(); | 72 | static void onAppFocusLost(); |
71 | static void onAppFocusGained(); | 73 | static void onAppFocusGained(); |
72 | 74 | ||
@@ -75,9 +77,9 @@ public: | |||
75 | protected: | 77 | protected: |
76 | void centerOnScreen(); | 78 | void centerOnScreen(); |
77 | 79 | ||
78 | protected: | 80 | private: |
79 | LLFrameTimer mVisibleTime; | 81 | LLFrameTimer mVisibleTime; |
80 | BOOL mModal; // do not change this after creation! | 82 | const BOOL mModal; |
81 | 83 | ||
82 | static std::list<LLModalDialog*> sModalStack; // Top of stack is currently being displayed | 84 | static std::list<LLModalDialog*> sModalStack; // Top of stack is currently being displayed |
83 | }; | 85 | }; |