aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorJacek Antonelli2008-11-08 19:04:16 -0600
committerJacek Antonelli2008-11-08 20:09:25 -0600
commitcaa00482619b50e3d43c2b027184130bf0152c41 (patch)
tree2422b535328e39591795272d9328a524bd19c03c /linden/indra/newview
parentAdded XUI for the Quick Filter combo box. (diff)
downloadmeta-impy-caa00482619b50e3d43c2b027184130bf0152c41.zip
meta-impy-caa00482619b50e3d43c2b027184130bf0152c41.tar.gz
meta-impy-caa00482619b50e3d43c2b027184130bf0152c41.tar.bz2
meta-impy-caa00482619b50e3d43c2b027184130bf0152c41.tar.xz
Added commit callback for Quick Filter.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llinventoryview.cpp16
-rw-r--r--linden/indra/newview/llinventoryview.h3
2 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp
index f9dd70d..edc1ca7 100644
--- a/linden/indra/newview/llinventoryview.cpp
+++ b/linden/indra/newview/llinventoryview.cpp
@@ -44,6 +44,7 @@
44#include "llradiogroup.h" 44#include "llradiogroup.h"
45#include "llspinctrl.h" 45#include "llspinctrl.h"
46#include "lltextbox.h" 46#include "lltextbox.h"
47#include "llcombobox.h"
47#include "llui.h" 48#include "llui.h"
48 49
49#include "llfirstuse.h" 50#include "llfirstuse.h"
@@ -549,6 +550,12 @@ void LLInventoryView::init(LLInventoryModel* inventory)
549 mSearchEditor->setSearchCallback(onSearchEdit, this); 550 mSearchEditor->setSearchCallback(onSearchEdit, this);
550 } 551 }
551 552
553 mQuickFilterCombo = getChild<LLComboBox>("Quick Filter");
554 if (mQuickFilterCombo)
555 {
556 mQuickFilterCombo->setCommitCallback(onQuickFilterCommit);
557 }
558
552 sActiveViews.put(this); 559 sActiveViews.put(this);
553 560
554 gInventory.addObserver(this); 561 gInventory.addObserver(this);
@@ -981,6 +988,15 @@ void LLInventoryView::onSearchEdit(const std::string& search_string, void* user_
981} 988}
982 989
983 990
991//static
992void LLInventoryView::onQuickFilterCommit(LLUICtrl* ctrl, void* user_data)
993{
994 LLComboBox* quickfilter = (LLComboBox*)ctrl;
995
996 llinfos << "Quick Filter: " << quickfilter->getSimple() << llendl;
997}
998
999
984// static 1000// static
985// BOOL LLInventoryView::incrementalFind(LLFolderViewItem* first_item, const char *find_text, BOOL backward) 1001// BOOL LLInventoryView::incrementalFind(LLFolderViewItem* first_item, const char *find_text, BOOL backward)
986// { 1002// {
diff --git a/linden/indra/newview/llinventoryview.h b/linden/indra/newview/llinventoryview.h
index a37d370..ec621ec 100644
--- a/linden/indra/newview/llinventoryview.h
+++ b/linden/indra/newview/llinventoryview.h
@@ -58,6 +58,7 @@ class LLCheckBoxCtrl;
58class LLSpinCtrl; 58class LLSpinCtrl;
59class LLScrollableContainerView; 59class LLScrollableContainerView;
60class LLTextBox; 60class LLTextBox;
61class LLComboBox;
61class LLIconCtrl; 62class LLIconCtrl;
62class LLSaveFolderState; 63class LLSaveFolderState;
63class LLSearchEditor; 64class LLSearchEditor;
@@ -239,6 +240,7 @@ public:
239 static void onFoldersByName(void *user_data); 240 static void onFoldersByName(void *user_data);
240 static BOOL checkFoldersByName(void *user_data); 241 static BOOL checkFoldersByName(void *user_data);
241 static void onSearchEdit(const std::string& search_string, void* user_data ); 242 static void onSearchEdit(const std::string& search_string, void* user_data );
243 static void onQuickFilterCommit(LLUICtrl* ctrl, void* user_data);
242 static void onFilterSelected(void* userdata, bool from_click); 244 static void onFilterSelected(void* userdata, bool from_click);
243 static void onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action, void* data); 245 static void onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action, void* data);
244 246
@@ -259,6 +261,7 @@ protected:
259 261
260protected: 262protected:
261 LLSearchEditor* mSearchEditor; 263 LLSearchEditor* mSearchEditor;
264 LLComboBox* mQuickFilterCombo;
262 LLTabContainer* mFilterTabs; 265 LLTabContainer* mFilterTabs;
263 LLHandle<LLFloater> mFinderHandle; 266 LLHandle<LLFloater> mFinderHandle;
264 LLInventoryPanel* mActivePanel; 267 LLInventoryPanel* mActivePanel;