Merge branch 'UICleanup' of git://github.com/Shyotl/SingularityViewer
Conflicts: indra/llappearance/llwearable.h indra/llui/llcombobox.h indra/newview/jcfloaterareasearch.cpp indra/newview/jcfloaterareasearch.h indra/newview/llpanelgrouproles.cpp indra/newview/llpanelgrouproles.h indra/newview/llviewermenu.cpp - Plugged in new MenuFloaterDict for AssetBlacklist and SoundExplorer in menu_viewer.xml and removed the old listeners for them. indra/newview/skins/default/xui/es/floater_inventory.xml Compile Fixes: indra/llcommon/llstl.h - error: expected nested-name-specifier before ‘const’ indra/llui/llmultisliderctrl.cpp:283:12: error: ‘caller’ was not declared in this scope indra/llui/lltexteditor.cpp - error: operands to ?: have different types ‘const LLPointer<LLTextSegment>’ and ‘long int’ - error: passing ‘const LLPointer<LLTextSegment>’ as ‘this’ argument of ‘LLPointer<Type>& LLPointer<Type>::operator=(const LLPointer<Type>&) [with Type = LLTextSegment]’ discards qualifiers indra/newview/llfloaterpermissionsmgr.cpp - Silly Shyotl, boost bind, not std bind. indra/newview/llfloaterproperties.* - error: ‘LLInstanceTracker<LLFloaterProperties, LLUUID>’ is an inaccessible base of ‘LLFloaterProperties’ indra/newview/llgivemoney.cpp - Again, boost::ref, not std::ref indra/newview/llpreviewscript.cpp - no known conversion for argument 1 from ‘std::vector<const LLPointer<LLTextSegment> >’ to ‘std::vector<LLPointer<LLTextSegment> >&
This commit is contained in:
@@ -73,6 +73,10 @@ public:
|
||||
|
||||
virtual ~LLTextEditor();
|
||||
|
||||
typedef boost::signals2::signal<void (LLTextEditor* caller)> keystroke_signal_t;
|
||||
|
||||
void setKeystrokeCallback(const keystroke_signal_t::slot_type& callback);
|
||||
|
||||
virtual LLXMLNodePtr getXML(bool save_children = true) const;
|
||||
static LLView* fromXML(LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory);
|
||||
void setTextEditorParameters(LLXMLNodePtr node);
|
||||
@@ -289,7 +293,7 @@ public:
|
||||
|
||||
const LLTextSegment* getCurrentSegment() const { return getSegmentAtOffset(mCursorPos); }
|
||||
const LLTextSegment* getPreviousSegment() const;
|
||||
void getSelectedSegments(std::vector<const LLTextSegment*>& segments) const;
|
||||
void getSelectedSegments(std::vector<LLTextSegmentPtr>& segments) const;
|
||||
|
||||
static bool isPartOfWord(llwchar c) { return ( (c == '_') || (c == '\'') || LLStringOps::isAlnum((char)c)); }
|
||||
|
||||
@@ -323,7 +327,7 @@ protected:
|
||||
void unindentLineBeforeCloseBrace();
|
||||
|
||||
S32 getSegmentIdxAtOffset(S32 offset) const;
|
||||
const LLTextSegment* getSegmentAtLocalPos(S32 x, S32 y) const;
|
||||
LLTextSegment* getSegmentAtLocalPos(S32 x, S32 y) const;
|
||||
const LLTextSegment* getSegmentAtOffset(S32 offset) const;
|
||||
|
||||
void reportBadKeystroke() { make_ui_sound("UISndBadKeystroke"); }
|
||||
@@ -458,9 +462,9 @@ protected:
|
||||
BOOL mParseHighlights;
|
||||
std::string mHTML;
|
||||
|
||||
typedef std::vector<LLTextSegment *> segment_list_t;
|
||||
typedef std::vector<LLTextSegmentPtr> segment_list_t;
|
||||
segment_list_t mSegments;
|
||||
const LLTextSegment* mHoverSegment;
|
||||
LLTextSegmentPtr mHoverSegment;
|
||||
|
||||
// Scrollbar data
|
||||
class LLScrollbar* mScrollbar;
|
||||
@@ -480,6 +484,7 @@ private:
|
||||
// Methods
|
||||
//
|
||||
void pasteHelper(bool is_primary);
|
||||
void onKeyStroke();
|
||||
|
||||
void updateSegments();
|
||||
void pruneSegments();
|
||||
@@ -603,11 +608,12 @@ private:
|
||||
BOOL mHandleEditKeysDirectly;
|
||||
|
||||
LLCoordGL mLastIMEPosition; // Last position of the IME editor
|
||||
keystroke_signal_t mKeystrokeSignal;
|
||||
}; // end class LLTextEditor
|
||||
|
||||
|
||||
|
||||
class LLTextSegment
|
||||
class LLTextSegment : public LLRefCount
|
||||
{
|
||||
public:
|
||||
// for creating a compare value
|
||||
|
||||
Reference in New Issue
Block a user