public NSFBox(NSF nsf,GameVersion gameversion) { this.nsf = nsf; this.controller = new NSFController(nsf,gameversion); this.searchresults = new List<TreeNode>(); controller.Node.Expand(); trvMain = new TreeView(); trvMain.Dock = DockStyle.Fill; trvMain.ImageList = imglist; trvMain.HideSelection = false; trvMain.Nodes.Add(controller.Node); trvMain.SelectedNode = controller.Node; trvMain.AllowDrop = true; trvMain.AfterSelect += new TreeViewEventHandler(trvMain_AfterSelect); trvMain.ItemDrag += new ItemDragEventHandler(trvMain_ItemDrag); trvMain.DragOver += new DragEventHandler(trvMain_DragOver); trvMain.DragDrop += new DragEventHandler(trvMain_DragDrop); pnSplit = new SplitContainer(); pnSplit.Dock = DockStyle.Fill; pnSplit.Panel1.Controls.Add(trvMain); this.Controls.Add(pnSplit); }
public UnprocessedChunkController(NSFController nsfcontroller, UnprocessedChunk unprocessedchunk) : base(nsfcontroller, unprocessedchunk) { this.unprocessedchunk = unprocessedchunk; Node.Text = string.Format("Unprocessed Chunk (T{0})", unprocessedchunk.Type); Node.ImageKey = "unprocessedchunk"; Node.SelectedImageKey = "unprocessedchunk"; }
public NormalChunkController(NSFController nsfcontroller, NormalChunk normalchunk) : base(nsfcontroller, normalchunk) { this.normalchunk = normalchunk; Node.Text = "Normal Chunk"; Node.ImageKey = "normalchunk"; Node.SelectedImageKey = "normalchunk"; }
public SoundChunkController(NSFController nsfcontroller, SoundChunk soundchunk) : base(nsfcontroller, soundchunk) { this.soundchunk = soundchunk; Node.Text = "Sound Chunk"; Node.ImageKey = "soundchunk"; Node.SelectedImageKey = "soundchunk"; }
public OldSoundChunkController(NSFController nsfcontroller, OldSoundChunk oldsoundchunk) : base(nsfcontroller, oldsoundchunk) { this.oldsoundchunk = oldsoundchunk; Node.Text = "Old Sound Chunk"; Node.ImageKey = "oldsoundchunk"; Node.SelectedImageKey = "oldsoundchunk"; }
public WavebankChunkController(NSFController nsfcontroller, WavebankChunk wavebankchunk) : base(nsfcontroller, wavebankchunk) { this.wavebankchunk = wavebankchunk; Node.Text = "Wavebank Chunk"; Node.ImageKey = "wavebankchunk"; Node.SelectedImageKey = "wavebankchunk"; }
public NSFBox(NSF nsf, GameVersion gameversion) { this.nsf = nsf; this.controller = new NSFController(nsf, gameversion); this.searchresults = new List <TreeNode>(); controller.Node.Expand(); trvMain = new TreeView(); trvMain.Dock = DockStyle.Fill; trvMain.ImageList = imglist; trvMain.HideSelection = false; trvMain.Nodes.Add(controller.Node); trvMain.SelectedNode = controller.Node; trvMain.AllowDrop = true; trvMain.AfterSelect += new TreeViewEventHandler(trvMain_AfterSelect); trvMain.ItemDrag += new ItemDragEventHandler(trvMain_ItemDrag); trvMain.DragOver += new DragEventHandler(trvMain_DragOver); trvMain.DragDrop += new DragEventHandler(trvMain_DragDrop); pnSplit = new SplitContainer(); pnSplit.Dock = DockStyle.Fill; pnSplit.Panel1.Controls.Add(trvMain); this.Controls.Add(pnSplit); }
public SpeechChunkController(NSFController nsfcontroller, SpeechChunk speechchunk) : base(nsfcontroller, speechchunk) { this.speechchunk = speechchunk; Node.Text = "Speech Chunk"; Node.ImageKey = "speechchunk"; Node.SelectedImageKey = "speechchunk"; }
public TextureChunkController(NSFController nsfcontroller, TextureChunk texturechunk) : base(nsfcontroller, texturechunk) { this.texturechunk = texturechunk; Node.Text = string.Format("Texture Chunk ({0})", Entry.EIDToString(texturechunk.EID)); Node.ImageKey = "texturechunk"; Node.SelectedImageKey = "texturechunk"; }
public WavebankChunkController(NSFController nsfcontroller,WavebankChunk wavebankchunk) : base(nsfcontroller,wavebankchunk) { this.wavebankchunk = wavebankchunk; Node.Text = "Wavebank Chunk"; Node.ImageKey = "wavebankchunk"; Node.SelectedImageKey = "wavebankchunk"; }
public UnprocessedChunkController(NSFController nsfcontroller,UnprocessedChunk unprocessedchunk) : base(nsfcontroller,unprocessedchunk) { this.unprocessedchunk = unprocessedchunk; Node.Text = string.Format("Unprocessed Chunk (T{0})",unprocessedchunk.Type); Node.ImageKey = "unprocessedchunk"; Node.SelectedImageKey = "unprocessedchunk"; }
public NormalChunkController(NSFController nsfcontroller,NormalChunk normalchunk) : base(nsfcontroller,normalchunk) { this.normalchunk = normalchunk; Node.Text = "Normal Chunk"; Node.ImageKey = "normalchunk"; Node.SelectedImageKey = "normalchunk"; }
public TextureChunkController(NSFController nsfcontroller,TextureChunk texturechunk) : base(nsfcontroller,texturechunk) { this.texturechunk = texturechunk; Node.Text = string.Format("Texture Chunk ({0})",Entry.EIDToString(texturechunk.EID)); Node.ImageKey = "texturechunk"; Node.SelectedImageKey = "texturechunk"; }
public SpeechChunkController(NSFController nsfcontroller,SpeechChunk speechchunk) : base(nsfcontroller,speechchunk) { this.speechchunk = speechchunk; Node.Text = "Speech Chunk"; Node.ImageKey = "speechchunk"; Node.SelectedImageKey = "speechchunk"; }
public OldSoundChunkController(NSFController nsfcontroller,OldSoundChunk oldsoundchunk) : base(nsfcontroller,oldsoundchunk) { this.oldsoundchunk = oldsoundchunk; Node.Text = "Old Sound Chunk"; Node.ImageKey = "oldsoundchunk"; Node.SelectedImageKey = "oldsoundchunk"; }
public EntryChunkController(NSFController nsfcontroller, EntryChunk entrychunk) : base(nsfcontroller, entrychunk) { this.entrychunk = entrychunk; foreach (Entry entry in entrychunk.Entries) { AddNode(CreateEntryController(entry)); } }
public SoundChunkController(NSFController nsfcontroller,SoundChunk soundchunk) : base(nsfcontroller,soundchunk) { this.soundchunk = soundchunk; Node.Text = "Sound Chunk"; Node.ImageKey = "soundchunk"; Node.SelectedImageKey = "soundchunk"; }
public EntryChunkController(NSFController nsfcontroller,EntryChunk entrychunk) : base(nsfcontroller,entrychunk) { this.entrychunk = entrychunk; foreach (Entry entry in entrychunk.Entries) { AddNode(CreateEntryController(entry)); } }
public ChunkController(NSFController nsfcontroller, Chunk chunk) { this.nsfcontroller = nsfcontroller; this.chunk = chunk; AddMenu("Delete Chunk", Menu_Delete_Chunk); }