diff options
Diffstat (limited to 'linden/indra/llui/llfloater.h')
-rw-r--r-- | linden/indra/llui/llfloater.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/linden/indra/llui/llfloater.h b/linden/indra/llui/llfloater.h index f0bbcaf..8068741 100644 --- a/linden/indra/llui/llfloater.h +++ b/linden/indra/llui/llfloater.h | |||
@@ -50,7 +50,7 @@ class LLMultiFloater; | |||
50 | const S32 LLFLOATER_VPAD = 6; | 50 | const S32 LLFLOATER_VPAD = 6; |
51 | const S32 LLFLOATER_HPAD = 6; | 51 | const S32 LLFLOATER_HPAD = 6; |
52 | const S32 LLFLOATER_CLOSE_BOX_SIZE = 16; | 52 | const S32 LLFLOATER_CLOSE_BOX_SIZE = 16; |
53 | const S32 LLFLOATER_HEADER_SIZE = 16; | 53 | const S32 LLFLOATER_HEADER_SIZE = 18; |
54 | 54 | ||
55 | const BOOL RESIZE_YES = TRUE; | 55 | const BOOL RESIZE_YES = TRUE; |
56 | const BOOL RESIZE_NO = FALSE; | 56 | const BOOL RESIZE_NO = FALSE; |
@@ -122,8 +122,6 @@ public: | |||
122 | virtual void initFloater(const LLString& title, BOOL resizable, | 122 | virtual void initFloater(const LLString& title, BOOL resizable, |
123 | S32 min_width, S32 min_height, BOOL drag_on_left, | 123 | S32 min_width, S32 min_height, BOOL drag_on_left, |
124 | BOOL minimizable, BOOL close_btn); | 124 | BOOL minimizable, BOOL close_btn); |
125 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_FLOATER; } | ||
126 | virtual LLString getWidgetTag() const { return LL_FLOATER_TAG; }; | ||
127 | 125 | ||
128 | virtual void open(); /* Flawfinder: ignore */ | 126 | virtual void open(); /* Flawfinder: ignore */ |
129 | 127 | ||
@@ -187,6 +185,8 @@ public: | |||
187 | // Defaults to destroy(). | 185 | // Defaults to destroy(). |
188 | virtual void onClose(bool app_quitting) { destroy(); } | 186 | virtual void onClose(bool app_quitting) { destroy(); } |
189 | 187 | ||
188 | // This cannot be "const" until all derived floater canClose() | ||
189 | // methods are const as well. JC | ||
190 | virtual BOOL canClose() { return TRUE; } | 190 | virtual BOOL canClose() { return TRUE; } |
191 | 191 | ||
192 | virtual void setVisible(BOOL visible); | 192 | virtual void setVisible(BOOL visible); |
@@ -302,9 +302,6 @@ class LLFloaterView : public LLUICtrl | |||
302 | public: | 302 | public: |
303 | LLFloaterView( const LLString& name, const LLRect& rect ); | 303 | LLFloaterView( const LLString& name, const LLRect& rect ); |
304 | 304 | ||
305 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_FLOATER_VIEW; } | ||
306 | virtual LLString getWidgetTag() const { return LL_FLOATER_VIEW_TAG; } | ||
307 | |||
308 | /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); | 305 | /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); |
309 | void reshapeFloater(S32 width, S32 height, BOOL called_from_parent, BOOL adjust_vertical); | 306 | void reshapeFloater(S32 width, S32 height, BOOL called_from_parent, BOOL adjust_vertical); |
310 | 307 | ||
@@ -373,9 +370,7 @@ public: | |||
373 | /*virtual*/ void onClose(bool app_quitting); | 370 | /*virtual*/ void onClose(bool app_quitting); |
374 | /*virtual*/ void draw(); | 371 | /*virtual*/ void draw(); |
375 | /*virtual*/ void setVisible(BOOL visible); | 372 | /*virtual*/ void setVisible(BOOL visible); |
376 | /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); | 373 | /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask); |
377 | /*virtual*/ EWidgetType getWidgetType() const { return WIDGET_TYPE_MULTI_FLOATER; } | ||
378 | /*virtual*/ LLString getWidgetTag() const { return LL_MULTI_FLOATER_TAG; }; | ||
379 | 374 | ||
380 | virtual void setCanResize(BOOL can_resize); | 375 | virtual void setCanResize(BOOL can_resize); |
381 | virtual void growToFit(S32 content_width, S32 content_height); | 376 | virtual void growToFit(S32 content_width, S32 content_height); |
@@ -418,6 +413,7 @@ protected: | |||
418 | 413 | ||
419 | LLTabContainer::TabPosition mTabPos; | 414 | LLTabContainer::TabPosition mTabPos; |
420 | BOOL mAutoResize; | 415 | BOOL mAutoResize; |
416 | S32 mOrigMinWidth, mOrigMinHeight; // logically const but initialized late | ||
421 | }; | 417 | }; |
422 | 418 | ||
423 | // visibility policy specialized for floaters | 419 | // visibility policy specialized for floaters |