aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llcombobox.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/llcombobox.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llui/llcombobox.h')
-rw-r--r--linden/indra/llui/llcombobox.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/linden/indra/llui/llcombobox.h b/linden/indra/llui/llcombobox.h
index b35d078..a9dc1c1 100644
--- a/linden/indra/llui/llcombobox.h
+++ b/linden/indra/llui/llcombobox.h
@@ -64,9 +64,9 @@ public:
64 } EPreferredPosition; 64 } EPreferredPosition;
65 65
66 LLComboBox( 66 LLComboBox(
67 const LLString& name, 67 const std::string& name,
68 const LLRect &rect, 68 const LLRect &rect,
69 const LLString& label, 69 const std::string& label,
70 void (*commit_callback)(LLUICtrl*, void*) = NULL, 70 void (*commit_callback)(LLUICtrl*, void*) = NULL,
71 void *callback_userdata = NULL 71 void *callback_userdata = NULL
72 ); 72 );
@@ -83,7 +83,7 @@ public:
83 83
84 virtual void setEnabled(BOOL enabled); 84 virtual void setEnabled(BOOL enabled);
85 85
86 virtual BOOL handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect); 86 virtual BOOL handleToolTip(S32 x, S32 y, std::string& msg, LLRect* sticky_rect);
87 virtual BOOL handleKeyHere(KEY key, MASK mask); 87 virtual BOOL handleKeyHere(KEY key, MASK mask);
88 virtual BOOL handleUnicodeCharHere(llwchar uni_char); 88 virtual BOOL handleUnicodeCharHere(llwchar uni_char);
89 89
@@ -107,10 +107,10 @@ public:
107 void setAllowTextEntry(BOOL allow, S32 max_chars = 50, BOOL make_tentative = TRUE); 107 void setAllowTextEntry(BOOL allow, S32 max_chars = 50, BOOL make_tentative = TRUE);
108 void setTextEntry(const LLStringExplicit& text); 108 void setTextEntry(const LLStringExplicit& text);
109 109
110 LLScrollListItem* add(const LLString& name, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE); // add item "name" to menu 110 LLScrollListItem* add(const std::string& name, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE); // add item "name" to menu
111 LLScrollListItem* add(const LLString& name, const LLUUID& id, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE); 111 LLScrollListItem* add(const std::string& name, const LLUUID& id, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE);
112 LLScrollListItem* add(const LLString& name, void* userdata, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE); 112 LLScrollListItem* add(const std::string& name, void* userdata, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE);
113 LLScrollListItem* add(const LLString& name, LLSD value, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE); 113 LLScrollListItem* add(const std::string& name, LLSD value, EAddPosition pos = ADD_BOTTOM, BOOL enabled = TRUE);
114 LLScrollListItem* addSeparator(EAddPosition pos = ADD_BOTTOM); 114 LLScrollListItem* addSeparator(EAddPosition pos = ADD_BOTTOM);
115 BOOL remove( S32 index ); // remove item by index, return TRUE if found and removed 115 BOOL remove( S32 index ); // remove item by index, return TRUE if found and removed
116 void removeall() { clearRows(); } 116 void removeall() { clearRows(); }
@@ -120,15 +120,15 @@ public:
120 // Select current item by name using selectItemByLabel. Returns FALSE if not found. 120 // Select current item by name using selectItemByLabel. Returns FALSE if not found.
121 BOOL setSimple(const LLStringExplicit& name); 121 BOOL setSimple(const LLStringExplicit& name);
122 // Get name of current item. Returns an empty string if not found. 122 // Get name of current item. Returns an empty string if not found.
123 const LLString getSimple() const; 123 const std::string getSimple() const;
124 // Get contents of column x of selected row 124 // Get contents of column x of selected row
125 const LLString getSelectedItemLabel(S32 column = 0) const; 125 const std::string getSelectedItemLabel(S32 column = 0) const;
126 126
127 // Sets the label, which doesn't have to exist in the label. 127 // Sets the label, which doesn't have to exist in the label.
128 // This is probably a UI abuse. 128 // This is probably a UI abuse.
129 void setLabel(const LLStringExplicit& name); 129 void setLabel(const LLStringExplicit& name);
130 130
131 BOOL remove(const LLString& name); // remove item "name", return TRUE if found and removed 131 BOOL remove(const std::string& name); // remove item "name", return TRUE if found and removed
132 132
133 BOOL setCurrentByIndex( S32 index ); 133 BOOL setCurrentByIndex( S32 index );
134 S32 getCurrentIndex() const; 134 S32 getCurrentIndex() const;
@@ -145,11 +145,11 @@ public:
145 // Overwrites the default column (See LLScrollListCtrl for format) 145 // Overwrites the default column (See LLScrollListCtrl for format)
146 virtual void addColumn(const LLSD& column, EAddPosition pos = ADD_BOTTOM); 146 virtual void addColumn(const LLSD& column, EAddPosition pos = ADD_BOTTOM);
147 virtual void clearColumns(); 147 virtual void clearColumns();
148 virtual void setColumnLabel(const LLString& column, const LLString& label); 148 virtual void setColumnLabel(const std::string& column, const std::string& label);
149 virtual LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL); 149 virtual LLScrollListItem* addElement(const LLSD& value, EAddPosition pos = ADD_BOTTOM, void* userdata = NULL);
150 virtual LLScrollListItem* addSimpleElement(const LLString& value, EAddPosition pos = ADD_BOTTOM, const LLSD& id = LLSD()); 150 virtual LLScrollListItem* addSimpleElement(const std::string& value, EAddPosition pos = ADD_BOTTOM, const LLSD& id = LLSD());
151 virtual void clearRows(); 151 virtual void clearRows();
152 virtual void sortByColumn(LLString name, BOOL ascending); 152 virtual void sortByColumn(const std::string& name, BOOL ascending);
153 153
154 // LLCtrlSelectionInterface functions 154 // LLCtrlSelectionInterface functions
155 virtual BOOL getCanSelect() const { return TRUE; } 155 virtual BOOL getCanSelect() const { return TRUE; }
@@ -203,9 +203,9 @@ class LLFlyoutButton : public LLComboBox
203{ 203{
204public: 204public:
205 LLFlyoutButton( 205 LLFlyoutButton(
206 const LLString& name, 206 const std::string& name,
207 const LLRect &rect, 207 const LLRect &rect,
208 const LLString& label, 208 const std::string& label,
209 void (*commit_callback)(LLUICtrl*, void*) = NULL, 209 void (*commit_callback)(LLUICtrl*, void*) = NULL,
210 void *callback_userdata = NULL); 210 void *callback_userdata = NULL);
211 211