summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmaininventory.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-15 12:18:31 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-15 12:18:31 -0400
commit7ccf02515ad3f9e3bf795d651fe4b3c0d773f353 (patch)
treec4adc897c07f652e617e91fbf41c12b823acc808 /indra/newview/llpanelmaininventory.h
parent1abf5f18d6afc7ae9e1b1562b92e5c1ce33b722f (diff)
parente7eced3c87310b15ac20cc3cd470d67686104a14 (diff)
Merge commit 'e7eced3' into lua-timers for whitespace fixes.
Diffstat (limited to 'indra/newview/llpanelmaininventory.h')
-rw-r--r--indra/newview/llpanelmaininventory.h208
1 files changed, 104 insertions, 104 deletions
diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h
index fbfca43f64..33205fc062 100644
--- a/indra/newview/llpanelmaininventory.h
+++ b/indra/newview/llpanelmaininventory.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file llpanelmaininventory.h
* @brief llpanelmaininventory.h
* class definition
@@ -6,21 +6,21 @@
* $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$
*/
@@ -60,12 +60,12 @@ class LLFloaterSidePanelContainer;
class LLPanelMainInventory : public LLPanel, LLInventoryObserver
{
public:
- friend class LLFloaterInventoryFinder;
+ friend class LLFloaterInventoryFinder;
- LLPanelMainInventory(const LLPanel::Params& p = getDefaultParams());
- ~LLPanelMainInventory();
+ LLPanelMainInventory(const LLPanel::Params& p = getDefaultParams());
+ ~LLPanelMainInventory();
- BOOL postBuild();
+ BOOL postBuild();
enum EViewModeType
{
@@ -74,39 +74,39 @@ public:
MODE_COMBINATION
};
- virtual BOOL handleKeyHere(KEY key, MASK mask);
-
- // Inherited functionality
- /*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
- EDragAndDropType cargo_type,
- void* cargo_data,
- EAcceptance* accept,
- std::string& tooltip_msg);
- /*virtual*/ void changed(U32);
- /*virtual*/ void draw();
- /*virtual*/ void onVisibilityChange ( BOOL new_visibility );
-
- LLInventoryPanel* getPanel() { return mActivePanel; }
- LLInventoryPanel* getActivePanel() { return mActivePanel; }
- LLInventoryPanel* getAllItemsPanel();
- void selectAllItemsPanel();
- const LLInventoryPanel* getActivePanel() const { return mActivePanel; }
+ virtual BOOL handleKeyHere(KEY key, MASK mask);
+
+ // Inherited functionality
+ /*virtual*/ BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
+ EDragAndDropType cargo_type,
+ void* cargo_data,
+ EAcceptance* accept,
+ std::string& tooltip_msg);
+ /*virtual*/ void changed(U32);
+ /*virtual*/ void draw();
+ /*virtual*/ void onVisibilityChange ( BOOL new_visibility );
+
+ LLInventoryPanel* getPanel() { return mActivePanel; }
+ LLInventoryPanel* getActivePanel() { return mActivePanel; }
+ LLInventoryPanel* getAllItemsPanel();
+ void selectAllItemsPanel();
+ const LLInventoryPanel* getActivePanel() const { return mActivePanel; }
void setActivePanel();
- bool isRecentItemsPanelSelected();
+ bool isRecentItemsPanelSelected();
+
+ const std::string& getFilterText() const { return mFilterText; }
- const std::string& getFilterText() const { return mFilterText; }
-
- void setSelectCallback(const LLFolderView::signal_t::slot_type& cb);
+ void setSelectCallback(const LLFolderView::signal_t::slot_type& cb);
- void onFilterEdit(const std::string& search_string );
+ void onFilterEdit(const std::string& search_string );
- void setFocusFilterEditor();
+ void setFocusFilterEditor();
- static LLFloaterSidePanelContainer* newWindow();
+ static LLFloaterSidePanelContainer* newWindow();
static void newFolderWindow(LLUUID folder_id = LLUUID(), LLUUID item_to_select = LLUUID());
- void toggleFindOptions();
+ void toggleFindOptions();
void resetFilters();
void resetAllItemsFilters();
@@ -138,62 +138,62 @@ public:
LLInventoryFilter& getCurrentFilter();
protected:
- //
- // Misc functions
- //
- void setFilterTextFromFilter();
- void startSearch();
-
- void onSelectionChange(LLInventoryPanel *panel, const std::deque<LLFolderViewItem*>& items, BOOL user_action);
-
- static BOOL filtersVisible(void* user_data);
- void onClearSearch();
- static void onFoldersByName(void *user_data);
- static BOOL checkFoldersByName(void *user_data);
-
- static BOOL incrementalFind(LLFolderViewItem* first_item, const char *find_text, BOOL backward);
- void onFilterSelected();
-
- const std::string getFilterSubString();
- void setFilterSubString(const std::string& string);
-
- // menu callbacks
- void doToSelected(const LLSD& userdata);
- void closeAllFolders();
- void doCreate(const LLSD& userdata);
- void setSortBy(const LLSD& userdata);
- void saveTexture(const LLSD& userdata);
- bool isSaveTextureEnabled(const LLSD& userdata);
- void updateItemcountText();
+ //
+ // Misc functions
+ //
+ void setFilterTextFromFilter();
+ void startSearch();
+
+ void onSelectionChange(LLInventoryPanel *panel, const std::deque<LLFolderViewItem*>& items, BOOL user_action);
+
+ static BOOL filtersVisible(void* user_data);
+ void onClearSearch();
+ static void onFoldersByName(void *user_data);
+ static BOOL checkFoldersByName(void *user_data);
+
+ static BOOL incrementalFind(LLFolderViewItem* first_item, const char *find_text, BOOL backward);
+ void onFilterSelected();
+
+ const std::string getFilterSubString();
+ void setFilterSubString(const std::string& string);
+
+ // menu callbacks
+ void doToSelected(const LLSD& userdata);
+ void closeAllFolders();
+ void doCreate(const LLSD& userdata);
+ void setSortBy(const LLSD& userdata);
+ void saveTexture(const LLSD& userdata);
+ bool isSaveTextureEnabled(const LLSD& userdata);
+ void updateItemcountText();
void updatePanelVisibility();
void updateCombinationVisibility();
- void onFocusReceived();
- void onSelectSearchType();
- void updateSearchTypeCombo();
+ void onFocusReceived();
+ void onSelectSearchType();
+ void updateSearchTypeCombo();
void setSearchType(LLInventoryFilter::ESearchType type);
LLSidepanelInventory* getParentSidepanelInventory();
private:
- LLFloaterInventoryFinder* getFinder();
-
- LLFilterEditor* mFilterEditor;
- LLTabContainer* mFilterTabs;
- LLUICtrl* mCounterCtrl;
- LLHandle<LLFloater> mFinderHandle;
- LLInventoryPanel* mActivePanel;
- LLInventoryPanel* mWornItemsPanel;
- bool mResortActivePanel;
- LLSaveFolderState* mSavedFolderState;
- std::string mFilterText;
- std::string mFilterSubString;
- S32 mItemCount;
- std::string mItemCountString;
- S32 mCategoryCount;
- std::string mCategoryCountString;
- LLComboBox* mSearchTypeCombo;
+ LLFloaterInventoryFinder* getFinder();
+
+ LLFilterEditor* mFilterEditor;
+ LLTabContainer* mFilterTabs;
+ LLUICtrl* mCounterCtrl;
+ LLHandle<LLFloater> mFinderHandle;
+ LLInventoryPanel* mActivePanel;
+ LLInventoryPanel* mWornItemsPanel;
+ bool mResortActivePanel;
+ LLSaveFolderState* mSavedFolderState;
+ std::string mFilterText;
+ std::string mFilterSubString;
+ S32 mItemCount;
+ std::string mItemCountString;
+ S32 mCategoryCount;
+ std::string mCategoryCountString;
+ LLComboBox* mSearchTypeCombo;
LLButton* mBackBtn;
LLButton* mForwardBtn;
@@ -216,47 +216,47 @@ private:
boost::signals2::connection mListViewRootUpdatedConnection;
boost::signals2::connection mGalleryRootUpdatedConnection;
- //////////////////////////////////////////////////////////////////////////////////
- // List Commands //
+ //////////////////////////////////////////////////////////////////////////////////
+ // List Commands //
protected:
- void initListCommandsHandlers();
- void updateListCommands();
- void onAddButtonClick();
- void showActionMenu(LLMenuGL* menu, std::string spawning_view_name);
- void onClipboardAction(const LLSD& userdata);
- BOOL isActionEnabled(const LLSD& command_name);
- BOOL isActionChecked(const LLSD& userdata);
- void onCustomAction(const LLSD& command_name);
+ void initListCommandsHandlers();
+ void updateListCommands();
+ void onAddButtonClick();
+ void showActionMenu(LLMenuGL* menu, std::string spawning_view_name);
+ void onClipboardAction(const LLSD& userdata);
+ BOOL isActionEnabled(const LLSD& command_name);
+ BOOL isActionChecked(const LLSD& userdata);
+ void onCustomAction(const LLSD& command_name);
bool isActionVisible(const LLSD& userdata);
static bool hasSettingsInventory();
static bool hasMaterialsInventory();
void updateTitle();
void updateNavButtons();
-
+
void onCombinationRootChanged(bool gallery_clicked);
void onCombinationGallerySelectionChanged(const LLUUID& category_id);
void onCombinationInventorySelectionChanged(const std::deque<LLFolderViewItem*>& items, BOOL user_action);
- /**
- * Set upload cost in "Upload" sub menu.
- */
- void setUploadCostIfNeeded();
+ /**
+ * Set upload cost in "Upload" sub menu.
+ */
+ void setUploadCostIfNeeded();
void disableAddIfNeeded();
private:
- LLToggleableMenu* mMenuGearDefault;
+ LLToggleableMenu* mMenuGearDefault;
LLToggleableMenu* mMenuViewDefault;
- LLToggleableMenu* mMenuVisibility;
- LLMenuButton* mGearMenuButton;
+ LLToggleableMenu* mMenuVisibility;
+ LLMenuButton* mGearMenuButton;
LLMenuButton* mViewMenuButton;
- LLMenuButton* mVisibilityMenuButton;
- LLHandle<LLView> mMenuAddHandle;
+ LLMenuButton* mVisibilityMenuButton;
+ LLHandle<LLView> mMenuAddHandle;
- bool mNeedUploadCost;
+ bool mNeedUploadCost;
bool mForceShowInvLayout;
bool mReshapeInvLayout;
LLUUID mCombInvUUIDNeedsRename;
- // List Commands //
- ////////////////////////////////////////////////////////////////////////////////
+ // List Commands //
+ ////////////////////////////////////////////////////////////////////////////////
};
#endif // LL_LLPANELMAININVENTORY_H