llfolderview.cpp File Reference

Implementation of the folder view collection of classes. More...

#include "llviewerprecompiledheaders.h"
#include "llfolderview.h"
#include <algorithm>
#include "llviewercontrol.h"
#include "lldbstrings.h"
#include "llfocusmgr.h"
#include "llfontgl.h"
#include "llgl.h"
#include "llinventory.h"
#include "llcallbacklist.h"
#include "llinventoryclipboard.h"
#include "llinventoryview.h"
#include "llkeyboard.h"
#include "lllineeditor.h"
#include "llmenugl.h"
#include "llresmgr.h"
#include "llpreview.h"
#include "llscrollcontainer.h"
#include "lltooldraganddrop.h"
#include "llui.h"
#include "llviewerimage.h"
#include "llviewerimagelist.h"
#include "llviewerjointattachment.h"
#include "llviewermenu.h"
#include "llvieweruictrlfactory.h"
#include "llviewerwindow.h"
#include "llvoavatar.h"
#include "llfloaterproperties.h"
#include "llagent.h"
#include "viewer.h"

Include dependency graph for llfolderview.cpp:

Go to the source code of this file.

Classes

class  LLSetItemSortFunction
class  LLCloseAllFoldersFunctor

Functions

void delete_selected_item (void *user_data)
void copy_selected_item (void *user_data)
void open_selected_items (void *user_data)
void properties_selected_items (void *user_data)
void paste_items (void *user_data)
void renamer_focus_lost (LLUICtrl *handler, void *user_data)

Variables

const S32 LEFT_PAD = 5
const S32 LEFT_INDENTATION = 13
const S32 ICON_PAD = 2
const S32 ICON_WIDTH = 16
const S32 TEXT_PAD = 1
const S32 ARROW_SIZE = 12
const S32 RENAME_WIDTH_PAD = 4
const S32 RENAME_HEIGHT_PAD = 6
const S32 AUTO_OPEN_STACK_DEPTH = 16
const S32 MIN_ITEM_WIDTH_VISIBLE = ICON_WIDTH + ICON_PAD + ARROW_SIZE + TEXT_PAD + 40
const S32 MINIMUM_RENAMER_WIDTH = 80
const F32 FOLDER_CLOSE_TIME_CONSTANT = 0.02f
const F32 FOLDER_OPEN_TIME_CONSTANT = 0.03f
const S32 MAX_FOLDER_ITEM_OVERLAP = 2


Detailed Description

Implementation of the folder view collection of classes.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llfolderview.cpp.


Function Documentation

void copy_selected_item ( void user_data  ) 

Definition at line 4455 of file llfolderview.cpp.

References LLFolderView::copy().

void delete_selected_item ( void user_data  ) 

Definition at line 4446 of file llfolderview.cpp.

References LLFolderView::removeSelectedItems().

void open_selected_items ( void user_data  ) 

Definition at line 4473 of file llfolderview.cpp.

References LLFolderView::openSelectedItems().

void paste_items ( void user_data  ) 

Definition at line 4464 of file llfolderview.cpp.

References LLFolderView::paste().

void properties_selected_items ( void user_data  ) 

Definition at line 4482 of file llfolderview.cpp.

References LLFolderView::propertiesSelectedItems().

void renamer_focus_lost ( LLUICtrl handler,
void user_data 
)

Definition at line 4438 of file llfolderview.cpp.

References FALSE, and LLView::setVisible().

Referenced by LLFolderView::startRenamingSelectedItem().


Variable Documentation

const S32 ARROW_SIZE = 12

Definition at line 80 of file llfolderview.cpp.

Referenced by LLFolderViewItem::draw(), LLFolderViewItem::refresh(), and LLFolderView::startRenamingSelectedItem().

const S32 AUTO_OPEN_STACK_DEPTH = 16

Definition at line 83 of file llfolderview.cpp.

Referenced by LLFolderView::autoOpenItem(), and LLFolderView::LLFolderView().

const F32 FOLDER_CLOSE_TIME_CONSTANT = 0.02f

Definition at line 86 of file llfolderview.cpp.

Referenced by LLFolderViewFolder::arrange().

const F32 FOLDER_OPEN_TIME_CONSTANT = 0.03f

Definition at line 87 of file llfolderview.cpp.

Referenced by LLFolderViewFolder::arrange().

const S32 ICON_PAD = 2

Definition at line 77 of file llfolderview.cpp.

Referenced by LLFolderView::arrange(), LLFolderViewItem::draw(), LLFolderViewItem::getItemHeight(), LLFolderViewItem::refresh(), LLFolderView::scrollToShowItem(), and LLFolderView::startRenamingSelectedItem().

const S32 ICON_WIDTH = 16

Definition at line 78 of file llfolderview.cpp.

Referenced by LLFolderViewItem::draw(), LLGroupNotifyBox::LLGroupNotifyBox(), LLPanelLandObjects::postBuild(), LLFolderViewItem::refresh(), and LLFolderView::startRenamingSelectedItem().

const S32 LEFT_INDENTATION = 13

Definition at line 76 of file llfolderview.cpp.

Referenced by LLFolderViewItem::arrange(), and LLFolderView::LLFolderView().

const S32 LEFT_PAD = 5

---------------------------------------------------------------------------- Local function declarations, constants, enums, and typedefs ----------------------------------------------------------------------------

Definition at line 75 of file llfolderview.cpp.

const S32 MAX_FOLDER_ITEM_OVERLAP = 2

Definition at line 88 of file llfolderview.cpp.

Referenced by LLFolderViewFolder::arrange().

const S32 MIN_ITEM_WIDTH_VISIBLE = ICON_WIDTH + ICON_PAD + ARROW_SIZE + TEXT_PAD + 40

Definition at line 84 of file llfolderview.cpp.

Referenced by LLFolderView::scrollToShowItem().

const S32 MINIMUM_RENAMER_WIDTH = 80

Definition at line 85 of file llfolderview.cpp.

Referenced by LLFolderView::startRenamingSelectedItem().

const S32 RENAME_HEIGHT_PAD = 6

Definition at line 82 of file llfolderview.cpp.

Referenced by LLFolderView::startRenamingSelectedItem().

const S32 RENAME_WIDTH_PAD = 4

Definition at line 81 of file llfolderview.cpp.

const S32 TEXT_PAD = 1

Definition at line 79 of file llfolderview.cpp.

Referenced by LLFolderViewItem::draw(), LLFolderViewItem::refresh(), LLUploadDialog::setMessage(), and LLFolderView::startRenamingSelectedItem().


Generated on Thu Jul 1 06:10:15 2010 for Second Life Viewer by  doxygen 1.4.7