C# Class IARModifierGUI.IAREditor

Inheritance: System.Windows.Forms.Form
Show file Open project: aurora-sim/Aurora-Sim-Optional-Modules Class Usage Examples

Protected Properties

Property Type Description
m_archiveWriter Aurora.Framework.Serialization.TarArchiveWriter

Public Methods

Method Description
AddAsset ( string id, byte data ) : void
Create0p1ControlFile ( ) : string

Create the control file for a 0.1 version archive

CreateArchiveFolderName ( InventoryFolderBase folder ) : string

Create the archive name for a particular folder.

CreateArchiveFolderName ( string name, UUID id ) : string

Create an archive folder name given its constituent components

CreateArchiveItemName ( InventoryItemBase item ) : string

Create the archive name for a particular item.

CreateArchiveItemName ( string name, UUID id ) : string

Create an archive item name given its constituent components

Execute ( string fileName ) : void

Execute the inventory write request

IAREditor ( ) : System
IAREditor ( string IARName ) : System
ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders ) : InventoryFolderBase

Replicate the inventory paths in the archive to the user's inventory as necessary.

Protected Methods

Method Description
CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders ) : void

Create a set of folders for the given path.

LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase

Load an item from the archive

ResolveDestinationFolder ( InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary &resolvedFolders ) : InventoryFolderBase

Resolve a destination folder

SaveInvFolder ( InventoryFolderBase inventoryFolder, string path, bool saveThisFolderItself ) : void

Save an inventory folder

SaveInvItem ( InventoryItemBase inventoryItem, string path ) : void
WriteData ( AssetBase asset ) : void
treeView1_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Private Methods

Method Description
FindInventoryCollection ( UUID userID, UUID folderID ) : InventoryCollection
IAREditor_Load ( object sender, EventArgs e ) : void
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

LoadIAR ( string fileName ) : void
MoveFolder ( UUID id, UUID newID ) : void
RebuildTreeView ( ) : void
RemoveFolder ( UUID id ) : void
SaveTextFile ( string initialDirectory ) : string
SelectTextFile ( string initialDirectory ) : string
button2_Click ( object sender, EventArgs e ) : void
cancelMove_Click ( object sender, EventArgs e ) : void
delete_Click ( object sender, EventArgs e ) : void
merge_Click ( object sender, EventArgs e ) : void
move_Click ( object sender, EventArgs e ) : void
move_contents_Click ( object sender, EventArgs e ) : void
rename_Click ( object sender, EventArgs e ) : void
save_Click ( object sender, EventArgs e ) : void
textBox1_Leave ( object sender, EventArgs e ) : void
textBox1_TextChanged ( object sender, EventArgs e ) : void
textBox2_Leave ( object sender, EventArgs e ) : void
textBox2_TextChanged ( object sender, EventArgs e ) : void
treeView1_NodeMouseClick_1 ( object sender, TreeNodeMouseClickEventArgs e ) : void
treeView1_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Method Details

AddAsset() public method

public AddAsset ( string id, byte data ) : void
id string
data byte
return void

Create0p1ControlFile() public static method

Create the control file for a 0.1 version archive
public static Create0p1ControlFile ( ) : string
return string

CreateArchiveFolderName() public static method

Create the archive name for a particular folder.
public static CreateArchiveFolderName ( InventoryFolderBase folder ) : string
folder InventoryFolderBase
return string

CreateArchiveFolderName() public static method

Create an archive folder name given its constituent components
public static CreateArchiveFolderName ( string name, UUID id ) : string
name string
id UUID
return string

CreateArchiveItemName() public static method

Create the archive name for a particular item.
public static CreateArchiveItemName ( InventoryItemBase item ) : string
item InventoryItemBase
return string

CreateArchiveItemName() public static method

Create an archive item name given its constituent components
public static CreateArchiveItemName ( string name, UUID id ) : string
name string
id UUID
return string

CreateFoldersForPath() protected method

Create a set of folders for the given path.
protected CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders ) : void
destFolder InventoryFolderBase /// The root folder from which the creation will take place. ///
iarPathExisting string /// the part of the iar path that already exists ///
iarPathToReplicate string /// The path to replicate in the user's inventory from iar ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
return void

Execute() public method

Execute the inventory write request
public Execute ( string fileName ) : void
fileName string
return void

IAREditor() public method

public IAREditor ( ) : System
return System

IAREditor() public method

public IAREditor ( string IARName ) : System
IARName string
return System

LoadItem() protected method

Load an item from the archive
protected LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase
data byte The raw item data
loadFolder InventoryFolderBase
return InventoryItemBase

ReplicateArchivePathToUserInventory() public method

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders ) : InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder InventoryFolderBase
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. /// This method will add more folders if necessary ///
return InventoryFolderBase

ResolveDestinationFolder() protected method

Resolve a destination folder
protected ResolveDestinationFolder ( InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary &resolvedFolders ) : InventoryFolderBase
rootDestFolder InventoryFolderBase
archivePath string /// The item archive path to resolve. The portion of the path passed back is that /// which corresponds to the resolved desintation folder. /// /// The root folder for the inventory load ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
return InventoryFolderBase

SaveInvFolder() protected method

Save an inventory folder
protected SaveInvFolder ( InventoryFolderBase inventoryFolder, string path, bool saveThisFolderItself ) : void
inventoryFolder InventoryFolderBase The inventory folder to save
path string The path to which the folder should be saved
saveThisFolderItself bool If true, save this folder itself. If false, only saves contents
return void

SaveInvItem() protected method

protected SaveInvItem ( InventoryItemBase inventoryItem, string path ) : void
inventoryItem InventoryItemBase
path string
return void

WriteData() protected method

protected WriteData ( AssetBase asset ) : void
asset AssetBase
return void

treeView1_NodeMouseClick() protected method

protected treeView1_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
sender object
e TreeNodeMouseClickEventArgs
return void

Property Details

m_archiveWriter protected property

protected TarArchiveWriter,Aurora.Framework.Serialization m_archiveWriter
return Aurora.Framework.Serialization.TarArchiveWriter