コード例 #1
0
ファイル: NSFBox.cs プロジェクト: CryZENx/CrashEdit
        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);
        }
コード例 #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";
 }
コード例 #3
0
 public NormalChunkController(NSFController nsfcontroller, NormalChunk normalchunk) : base(nsfcontroller, normalchunk)
 {
     this.normalchunk      = normalchunk;
     Node.Text             = "Normal Chunk";
     Node.ImageKey         = "normalchunk";
     Node.SelectedImageKey = "normalchunk";
 }
コード例 #4
0
 public SoundChunkController(NSFController nsfcontroller, SoundChunk soundchunk) : base(nsfcontroller, soundchunk)
 {
     this.soundchunk       = soundchunk;
     Node.Text             = "Sound Chunk";
     Node.ImageKey         = "soundchunk";
     Node.SelectedImageKey = "soundchunk";
 }
コード例 #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";
 }
コード例 #6
0
 public WavebankChunkController(NSFController nsfcontroller, WavebankChunk wavebankchunk) : base(nsfcontroller, wavebankchunk)
 {
     this.wavebankchunk    = wavebankchunk;
     Node.Text             = "Wavebank Chunk";
     Node.ImageKey         = "wavebankchunk";
     Node.SelectedImageKey = "wavebankchunk";
 }
コード例 #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);
        }
コード例 #8
0
 public SpeechChunkController(NSFController nsfcontroller, SpeechChunk speechchunk) : base(nsfcontroller, speechchunk)
 {
     this.speechchunk      = speechchunk;
     Node.Text             = "Speech Chunk";
     Node.ImageKey         = "speechchunk";
     Node.SelectedImageKey = "speechchunk";
 }
コード例 #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";
 }
コード例 #10
0
 public WavebankChunkController(NSFController nsfcontroller,WavebankChunk wavebankchunk)
     : base(nsfcontroller,wavebankchunk)
 {
     this.wavebankchunk = wavebankchunk;
     Node.Text = "Wavebank Chunk";
     Node.ImageKey = "wavebankchunk";
     Node.SelectedImageKey = "wavebankchunk";
 }
コード例 #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";
 }
コード例 #12
0
 public NormalChunkController(NSFController nsfcontroller,NormalChunk normalchunk)
     : base(nsfcontroller,normalchunk)
 {
     this.normalchunk = normalchunk;
     Node.Text = "Normal Chunk";
     Node.ImageKey = "normalchunk";
     Node.SelectedImageKey = "normalchunk";
 }
コード例 #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";
 }
コード例 #14
0
 public SpeechChunkController(NSFController nsfcontroller,SpeechChunk speechchunk)
     : base(nsfcontroller,speechchunk)
 {
     this.speechchunk = speechchunk;
     Node.Text = "Speech Chunk";
     Node.ImageKey = "speechchunk";
     Node.SelectedImageKey = "speechchunk";
 }
コード例 #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";
 }
コード例 #16
0
 public EntryChunkController(NSFController nsfcontroller, EntryChunk entrychunk) : base(nsfcontroller, entrychunk)
 {
     this.entrychunk = entrychunk;
     foreach (Entry entry in entrychunk.Entries)
     {
         AddNode(CreateEntryController(entry));
     }
 }
コード例 #17
0
 public SoundChunkController(NSFController nsfcontroller,SoundChunk soundchunk)
     : base(nsfcontroller,soundchunk)
 {
     this.soundchunk = soundchunk;
     Node.Text = "Sound Chunk";
     Node.ImageKey = "soundchunk";
     Node.SelectedImageKey = "soundchunk";
 }
コード例 #18
0
 public EntryChunkController(NSFController nsfcontroller,EntryChunk entrychunk)
     : base(nsfcontroller,entrychunk)
 {
     this.entrychunk = entrychunk;
     foreach (Entry entry in entrychunk.Entries)
     {
         AddNode(CreateEntryController(entry));
     }
 }
コード例 #19
0
 public ChunkController(NSFController nsfcontroller, Chunk chunk)
 {
     this.nsfcontroller = nsfcontroller;
     this.chunk         = chunk;
     AddMenu("Delete Chunk", Menu_Delete_Chunk);
 }