summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastalertpanel.h
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-05-22 21:25:21 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-05-22 22:40:26 +0300
commite2e37cced861b98de8c1a7c9c0d3a50d2d90e433 (patch)
tree1bb897489ce524986f6196201c10ac0d8861aa5f /indra/newview/lltoastalertpanel.h
parent069ea06848f766466f1a281144c82a0f2bd79f3a (diff)
Fix line endlings
Diffstat (limited to 'indra/newview/lltoastalertpanel.h')
-rw-r--r--indra/newview/lltoastalertpanel.h214
1 files changed, 107 insertions, 107 deletions
diff --git a/indra/newview/lltoastalertpanel.h b/indra/newview/lltoastalertpanel.h
index fa089ba0b2..167a7b2363 100644
--- a/indra/newview/lltoastalertpanel.h
+++ b/indra/newview/lltoastalertpanel.h
@@ -1,107 +1,107 @@
-/**
- * @file lltoastalertpanel.h
- * @brief Panel for alert toasts.
- *
- * $LicenseInfo:firstyear=2001&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$
- */
-
-#ifndef LL_TOASTALERTPANEL_H
-#define LL_TOASTALERTPANEL_H
-
-#include "lltoastpanel.h"
-#include "llfloater.h"
-#include "llui.h"
-#include "llnotificationptr.h"
-#include "llerror.h"
-
-class LLButton;
-class LLCheckBoxCtrl;
-class LLLineEditor;
-
-/**
- * Toast panel for alert notification.
- * Alerts notifications doesn't require user interaction.
- *
- * Replaces class LLAlertDialog.
- * https://wiki.lindenlab.com/mediawiki/index.php?title=LLAlertDialog&oldid=81388
- */
-
-class LLToastAlertPanel
- : public LLCheckBoxToastPanel
-{
- LOG_CLASS(LLToastAlertPanel);
-public:
- typedef bool (*display_callback_t)(S32 modal);
-
-public:
- // User's responsibility to call show() after creating these.
- LLToastAlertPanel( LLNotificationPtr notep, bool is_modal );
-
- virtual bool handleKeyHere(KEY key, MASK mask );
-
- virtual void draw();
- virtual void setVisible( bool visible );
-
- void setCaution(bool val = true) { mCaution = val; }
- // If mUnique==true only one copy of this message should exist
- void setUnique(bool val = true) { mUnique = val; }
- void setEditTextArgs(const LLSD& edit_args);
-
- void onButtonPressed(const LLSD& data, S32 button);
-
-private:
- static std::map<std::string, LLToastAlertPanel*> sUniqueActiveMap;
-
- virtual ~LLToastAlertPanel();
- // No you can't kill it. It can only kill itself.
-
- // Does it have a readable title label, or minimize or close buttons?
- bool hasTitleBar() const;
-
-private:
- static LLControlGroup* sSettings;
-
- struct ButtonData
- {
- ButtonData()
- : mWidth(0)
- {}
-
- LLButton* mButton;
- std::string mURL;
- U32 mURLExternal;
- S32 mWidth;
- };
- std::vector<ButtonData> mButtonData;
-
- S32 mDefaultOption;
- bool mCaution;
- bool mUnique;
- LLUIString mLabel;
- LLFrameTimer mDefaultBtnTimer;
- // For Dialogs that take a line as text as input:
- LLLineEditor* mLineEditor;
- LLHandle<LLView> mPreviouslyFocusedView;
-
-};
-
-#endif // LL_TOASTALERTPANEL_H
+/**
+ * @file lltoastalertpanel.h
+ * @brief Panel for alert toasts.
+ *
+ * $LicenseInfo:firstyear=2001&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$
+ */
+
+#ifndef LL_TOASTALERTPANEL_H
+#define LL_TOASTALERTPANEL_H
+
+#include "lltoastpanel.h"
+#include "llfloater.h"
+#include "llui.h"
+#include "llnotificationptr.h"
+#include "llerror.h"
+
+class LLButton;
+class LLCheckBoxCtrl;
+class LLLineEditor;
+
+/**
+ * Toast panel for alert notification.
+ * Alerts notifications doesn't require user interaction.
+ *
+ * Replaces class LLAlertDialog.
+ * https://wiki.lindenlab.com/mediawiki/index.php?title=LLAlertDialog&oldid=81388
+ */
+
+class LLToastAlertPanel
+ : public LLCheckBoxToastPanel
+{
+ LOG_CLASS(LLToastAlertPanel);
+public:
+ typedef bool (*display_callback_t)(S32 modal);
+
+public:
+ // User's responsibility to call show() after creating these.
+ LLToastAlertPanel( LLNotificationPtr notep, bool is_modal );
+
+ virtual bool handleKeyHere(KEY key, MASK mask );
+
+ virtual void draw();
+ virtual void setVisible( bool visible );
+
+ void setCaution(bool val = true) { mCaution = val; }
+ // If mUnique==true only one copy of this message should exist
+ void setUnique(bool val = true) { mUnique = val; }
+ void setEditTextArgs(const LLSD& edit_args);
+
+ void onButtonPressed(const LLSD& data, S32 button);
+
+private:
+ static std::map<std::string, LLToastAlertPanel*> sUniqueActiveMap;
+
+ virtual ~LLToastAlertPanel();
+ // No you can't kill it. It can only kill itself.
+
+ // Does it have a readable title label, or minimize or close buttons?
+ bool hasTitleBar() const;
+
+private:
+ static LLControlGroup* sSettings;
+
+ struct ButtonData
+ {
+ ButtonData()
+ : mWidth(0)
+ {}
+
+ LLButton* mButton;
+ std::string mURL;
+ U32 mURLExternal;
+ S32 mWidth;
+ };
+ std::vector<ButtonData> mButtonData;
+
+ S32 mDefaultOption;
+ bool mCaution;
+ bool mUnique;
+ LLUIString mLabel;
+ LLFrameTimer mDefaultBtnTimer;
+ // For Dialogs that take a line as text as input:
+ LLLineEditor* mLineEditor;
+ LLHandle<LLView> mPreviouslyFocusedView;
+
+};
+
+#endif // LL_TOASTALERTPANEL_H