diff options
Diffstat (limited to 'indra/newview/lltoastpanel.h')
-rw-r--r-- | indra/newview/lltoastpanel.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/indra/newview/lltoastpanel.h b/indra/newview/lltoastpanel.h index f4c758ade9..eae3718398 100644 --- a/indra/newview/lltoastpanel.h +++ b/indra/newview/lltoastpanel.h @@ -1,25 +1,25 @@ -/** +/** * @file lltoastpanel.h * @brief Creates a panel of a specific kind for a toast. * * $LicenseInfo:firstyear=2003&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License only. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * + * * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * $/LicenseInfo$ */ @@ -41,27 +41,27 @@ */ class LLToastPanel : public LLPanel { public: - LLToastPanel(const LLNotificationPtr&); - virtual ~LLToastPanel() = 0; + LLToastPanel(const LLNotificationPtr&); + virtual ~LLToastPanel() = 0; - virtual std::string getTitle(); - virtual const std::string& getNotificationName(); - virtual const LLUUID& getID(); + virtual std::string getTitle(); + virtual const std::string& getNotificationName(); + virtual const LLUUID& getID(); - static const S32 MIN_PANEL_HEIGHT; - static const S32 MAX_TEXT_LENGTH; + static const S32 MIN_PANEL_HEIGHT; + static const S32 MAX_TEXT_LENGTH; - /** - * Builder method for constructing notification specific panels. - * Normally type of created panels shouldn't be publicated and should be hidden - * from other functionality. - */ - static LLToastPanel* buidPanelFromNotification( - const LLNotificationPtr& notification); + /** + * Builder method for constructing notification specific panels. + * Normally type of created panels shouldn't be publicated and should be hidden + * from other functionality. + */ + static LLToastPanel* buidPanelFromNotification( + const LLNotificationPtr& notification); protected: - LLNotificationPtr mNotification; - void snapToMessageHeight(LLTextBase* message, S32 maxLineCount); - S32 computeSnappedToMessageHeight(LLTextBase* message, S32 maxLineCount); + LLNotificationPtr mNotification; + void snapToMessageHeight(LLTextBase* message, S32 maxLineCount); + S32 computeSnappedToMessageHeight(LLTextBase* message, S32 maxLineCount); }; class LLCheckBoxCtrl; @@ -70,17 +70,17 @@ class LLCheckBoxCtrl; class LLCheckBoxToastPanel : public LLToastPanel { public: - LLCheckBoxToastPanel(const LLNotificationPtr& p_ntf); - virtual ~LLCheckBoxToastPanel() {}; + LLCheckBoxToastPanel(const LLNotificationPtr& p_ntf); + virtual ~LLCheckBoxToastPanel() {}; - // set checkboxes acording to defaults from form - void setCheckBoxes(const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); - // set single checkbox - bool setCheckBox(const std::string&, const std::string&, const commit_signal_t::slot_type& cb, const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); + // set checkboxes acording to defaults from form + void setCheckBoxes(const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); + // set single checkbox + bool setCheckBox(const std::string&, const std::string&, const commit_signal_t::slot_type& cb, const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); protected: - void onCommitCheckbox(LLUICtrl* ctrl); + void onCommitCheckbox(LLUICtrl* ctrl); - LLCheckBoxCtrl* mCheck; + LLCheckBoxCtrl* mCheck; }; #endif /* LL_TOASTPANEL_H */ |