summaryrefslogtreecommitdiff
path: root/indra/llui/llurlmatch.h
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2025-04-10 17:57:16 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2025-04-18 19:59:09 +0300
commit90c7684112714fd5ca2c8d73d8ca9bef3fc1e5d6 (patch)
tree6f85fb1bb4085388f3839d9135eee354632336b5 /indra/llui/llurlmatch.h
parent3d5f1541dd9980196ba0c8a3c3396c8ed3384d1e (diff)
#3758 add support for highlighted segments
Diffstat (limited to 'indra/llui/llurlmatch.h')
-rw-r--r--indra/llui/llurlmatch.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/indra/llui/llurlmatch.h b/indra/llui/llurlmatch.h
index ba822fbda6..b05b3f2c82 100644
--- a/indra/llui/llurlmatch.h
+++ b/indra/llui/llurlmatch.h
@@ -47,6 +47,13 @@ class LLUrlMatch
public:
LLUrlMatch();
+ enum EUnderlineLink
+ {
+ UNDERLINE_ALWAYS = 0,
+ UNDERLINE_ON_HOVER,
+ UNDERLINE_NEVER
+ };
+
/// return true if this object does not contain a valid Url match yet
bool empty() const { return mUrl.empty(); }
@@ -80,18 +87,19 @@ public:
/// return the SL location that this Url describes, or "" if none.
std::string getLocation() const { return mLocation; }
- /// Should this link text be underlined only when mouse is hovered over it?
- bool underlineOnHoverOnly() const { return mUnderlineOnHoverOnly; }
+ EUnderlineLink getUnderline() const { return mUnderline; }
/// Return true if Url is trusted.
bool isTrusted() const { return mTrusted; }
+ bool getSkipProfileIcon() const { return mSkipProfileIcon; }
+
/// Change the contents of this match object (used by LLUrlRegistry)
void setValues(U32 start, U32 end, const std::string &url, const std::string &label,
const std::string& query, const std::string &tooltip, const std::string &icon,
const LLStyle::Params& style, const std::string &menu,
const std::string &location, const LLUUID& id,
- bool underline_on_hover_only = false, bool trusted = false);
+ EUnderlineLink underline = UNDERLINE_ALWAYS, bool trusted = false, bool skip_icon = false);
const LLUUID& getID() const { return mID; }
private:
@@ -106,8 +114,9 @@ private:
std::string mLocation;
LLUUID mID;
LLStyle::Params mStyle;
- bool mUnderlineOnHoverOnly;
+ EUnderlineLink mUnderline;
bool mTrusted;
+ bool mSkipProfileIcon;
};
#endif