diff options
author | Ansariel <ansariel.hiller@phoenixviewer.com> | 2024-05-22 21:25:21 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-22 22:40:26 +0300 |
commit | e2e37cced861b98de8c1a7c9c0d3a50d2d90e433 (patch) | |
tree | 1bb897489ce524986f6196201c10ac0d8861aa5f /indra/newview/llchicletbar.h | |
parent | 069ea06848f766466f1a281144c82a0f2bd79f3a (diff) |
Fix line endlings
Diffstat (limited to 'indra/newview/llchicletbar.h')
-rw-r--r-- | indra/newview/llchicletbar.h | 180 |
1 files changed, 90 insertions, 90 deletions
diff --git a/indra/newview/llchicletbar.h b/indra/newview/llchicletbar.h index 5a0ef32b44..53abebc7ab 100644 --- a/indra/newview/llchicletbar.h +++ b/indra/newview/llchicletbar.h @@ -1,90 +1,90 @@ -/**
-* @file llchicletbar.h
-* @brief LLChicletBar class header file
-*
-* $LicenseInfo:firstyear=2011&license=viewerlgpl$
-* Second Life Viewer Source Code
-* Copyright (C) 2011, 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$
-*/
-
-#ifndef LL_LLCHICLETBAR_H
-#define LL_LLCHICLETBAR_H
-
-#include "llpanel.h"
-
-class LLChicletPanel;
-class LLIMChiclet;
-class LLLayoutPanel;
-class LLLayoutStack;
-
-class LLChicletBar
- : public LLSingleton<LLChicletBar>
- , public LLPanel
-{
- LLSINGLETON(LLChicletBar);
- LOG_CLASS(LLChicletBar);
-
-public:
-
- bool postBuild() override;
-
- LLChicletPanel* getChicletPanel() { return mChicletPanel; }
-
- void reshape(S32 width, S32 height, bool called_from_parent) override;
-
-
- /**
- * Shows/hides panel with specified well button (IM or Notification)
- *
- * @param well_name - name of the well panel to be processed.
- * @param visible - a flag specifying whether a button should be shown or hidden.
- */
- void showWellButton(const std::string& well_name, bool visible);
-
-private:
- /**
- * Updates child controls size and visibility when it is necessary to reduce total width.
- *
- * @param delta_width - value by which chiclet bar should be shrunk. It is a negative value.
- * @returns positive value which chiclet bar can not process when it reaches its minimal width.
- * Zero if there was enough space to process delta_width.
- */
- S32 processWidthDecreased(S32 delta_width);
-
- /** helper function to log debug messages */
- void log(LLView* panel, const std::string& descr);
-
- /**
- * @return difference between current chiclet panel width and the minimum.
- */
- S32 getChicletPanelShrinkHeadroom() const;
-
- /**
- * function adjusts Chiclet bar width to prevent overlapping with Mini-Location bar
- * EXP-1463
- */
- void fitWithTopInfoBar();
-
-protected:
- LLChicletPanel* mChicletPanel;
- LLLayoutStack* mToolbarStack;
-};
-
-#endif // LL_LLCHICLETBAR_H
+/** +* @file llchicletbar.h +* @brief LLChicletBar class header file +* +* $LicenseInfo:firstyear=2011&license=viewerlgpl$ +* Second Life Viewer Source Code +* Copyright (C) 2011, 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$ +*/ + +#ifndef LL_LLCHICLETBAR_H +#define LL_LLCHICLETBAR_H + +#include "llpanel.h" + +class LLChicletPanel; +class LLIMChiclet; +class LLLayoutPanel; +class LLLayoutStack; + +class LLChicletBar + : public LLSingleton<LLChicletBar> + , public LLPanel +{ + LLSINGLETON(LLChicletBar); + LOG_CLASS(LLChicletBar); + +public: + + bool postBuild() override; + + LLChicletPanel* getChicletPanel() { return mChicletPanel; } + + void reshape(S32 width, S32 height, bool called_from_parent) override; + + + /** + * Shows/hides panel with specified well button (IM or Notification) + * + * @param well_name - name of the well panel to be processed. + * @param visible - a flag specifying whether a button should be shown or hidden. + */ + void showWellButton(const std::string& well_name, bool visible); + +private: + /** + * Updates child controls size and visibility when it is necessary to reduce total width. + * + * @param delta_width - value by which chiclet bar should be shrunk. It is a negative value. + * @returns positive value which chiclet bar can not process when it reaches its minimal width. + * Zero if there was enough space to process delta_width. + */ + S32 processWidthDecreased(S32 delta_width); + + /** helper function to log debug messages */ + void log(LLView* panel, const std::string& descr); + + /** + * @return difference between current chiclet panel width and the minimum. + */ + S32 getChicletPanelShrinkHeadroom() const; + + /** + * function adjusts Chiclet bar width to prevent overlapping with Mini-Location bar + * EXP-1463 + */ + void fitWithTopInfoBar(); + +protected: + LLChicletPanel* mChicletPanel; + LLLayoutStack* mToolbarStack; +}; + +#endif // LL_LLCHICLETBAR_H |