Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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";
 }
Ejemplo n.º 3
0
 public NormalChunkController(NSFController nsfcontroller, NormalChunk normalchunk) : base(nsfcontroller, normalchunk)
 {
     this.normalchunk      = normalchunk;
     Node.Text             = "Normal Chunk";
     Node.ImageKey         = "normalchunk";
     Node.SelectedImageKey = "normalchunk";
 }
Ejemplo n.º 4
0
 public SoundChunkController(NSFController nsfcontroller, SoundChunk soundchunk) : base(nsfcontroller, soundchunk)
 {
     this.soundchunk       = soundchunk;
     Node.Text             = "Sound Chunk";
     Node.ImageKey         = "soundchunk";
     Node.SelectedImageKey = "soundchunk";
 }
Ejemplo n.º 5
0
 public OldSoundChunkController(NSFController nsfcontroller, OldSoundChunk oldsoundchunk) : base(nsfcontroller, oldsoundchunk)
 {
     this.oldsoundchunk    = oldsoundchunk;
     Node.Text             = "Old Sound Chunk";
     Node.ImageKey         = "oldsoundchunk";
     Node.SelectedImageKey = "oldsoundchunk";
 }
Ejemplo n.º 6
0
 public WavebankChunkController(NSFController nsfcontroller, WavebankChunk wavebankchunk) : base(nsfcontroller, wavebankchunk)
 {
     this.wavebankchunk    = wavebankchunk;
     Node.Text             = "Wavebank Chunk";
     Node.ImageKey         = "wavebankchunk";
     Node.SelectedImageKey = "wavebankchunk";
 }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
 public SpeechChunkController(NSFController nsfcontroller, SpeechChunk speechchunk) : base(nsfcontroller, speechchunk)
 {
     this.speechchunk      = speechchunk;
     Node.Text             = "Speech Chunk";
     Node.ImageKey         = "speechchunk";
     Node.SelectedImageKey = "speechchunk";
 }
Ejemplo n.º 9
0
 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";
 }
Ejemplo n.º 10
0
 public WavebankChunkController(NSFController nsfcontroller,WavebankChunk wavebankchunk)
     : base(nsfcontroller,wavebankchunk)
 {
     this.wavebankchunk = wavebankchunk;
     Node.Text = "Wavebank Chunk";
     Node.ImageKey = "wavebankchunk";
     Node.SelectedImageKey = "wavebankchunk";
 }
Ejemplo n.º 11
0
 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";
 }
Ejemplo n.º 12
0
 public NormalChunkController(NSFController nsfcontroller,NormalChunk normalchunk)
     : base(nsfcontroller,normalchunk)
 {
     this.normalchunk = normalchunk;
     Node.Text = "Normal Chunk";
     Node.ImageKey = "normalchunk";
     Node.SelectedImageKey = "normalchunk";
 }
Ejemplo n.º 13
0
 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";
 }
Ejemplo n.º 14
0
 public SpeechChunkController(NSFController nsfcontroller,SpeechChunk speechchunk)
     : base(nsfcontroller,speechchunk)
 {
     this.speechchunk = speechchunk;
     Node.Text = "Speech Chunk";
     Node.ImageKey = "speechchunk";
     Node.SelectedImageKey = "speechchunk";
 }
Ejemplo n.º 15
0
 public OldSoundChunkController(NSFController nsfcontroller,OldSoundChunk oldsoundchunk)
     : base(nsfcontroller,oldsoundchunk)
 {
     this.oldsoundchunk = oldsoundchunk;
     Node.Text = "Old Sound Chunk";
     Node.ImageKey = "oldsoundchunk";
     Node.SelectedImageKey = "oldsoundchunk";
 }
Ejemplo n.º 16
0
 public EntryChunkController(NSFController nsfcontroller, EntryChunk entrychunk) : base(nsfcontroller, entrychunk)
 {
     this.entrychunk = entrychunk;
     foreach (Entry entry in entrychunk.Entries)
     {
         AddNode(CreateEntryController(entry));
     }
 }
Ejemplo n.º 17
0
 public SoundChunkController(NSFController nsfcontroller,SoundChunk soundchunk)
     : base(nsfcontroller,soundchunk)
 {
     this.soundchunk = soundchunk;
     Node.Text = "Sound Chunk";
     Node.ImageKey = "soundchunk";
     Node.SelectedImageKey = "soundchunk";
 }
Ejemplo n.º 18
0
 public EntryChunkController(NSFController nsfcontroller,EntryChunk entrychunk)
     : base(nsfcontroller,entrychunk)
 {
     this.entrychunk = entrychunk;
     foreach (Entry entry in entrychunk.Entries)
     {
         AddNode(CreateEntryController(entry));
     }
 }
Ejemplo n.º 19
0
 public ChunkController(NSFController nsfcontroller, Chunk chunk)
 {
     this.nsfcontroller = nsfcontroller;
     this.chunk         = chunk;
     AddMenu("Delete Chunk", Menu_Delete_Chunk);
 }