Exemplo n.º 1
0
 public void BeforeExpand(object sender, System.Windows.Forms.TreeViewAction action, ref bool cancel)
 {
     if (this.expanded)
     {
         return;
     }
     this.expanded = true;
     this.Nodes.Clear();
     foreach (string key in file.TableDirectoryNames)
     {
         this.Nodes.Add(TTF.TableTreeNode.CreateTreeNode(file, file.tables[key]));
     }
 }
Exemplo n.º 2
0
        public override unsafe void BeforeExpand(object sender, System.Windows.Forms.TreeViewAction action, ref bool cancel)
        {
            base.BeforeExpand(sender, action, ref cancel);
            if (this.expanded)
            {
                return;
            }
            this.expanded = true;
            this.Nodes.Clear();
            //Program.ErrorOut.WriteLine("EBLC 表を読みます。");
            //Program.ErrorOut.AddIndent();
            fixed(byte *pBase = &file.image[0])
            {
                byte *p = pBase;

                p += (uint)entry.offset;

                //-- header
                eblcHeader *header = (eblcHeader *)p;
                uint        nSize  = (uint)header->numSizes;

                //Program.ErrorOut.WriteLine("表バージョン番号: {0}",header->version.Value);
                //Program.ErrorOut.WriteLine("strike の数: {0}",nSize);
                p += sizeof(eblcHeader);

                //-- bitmapSizeTables
                bitmapSizeTable *size  = (bitmapSizeTable *)p;
                bitmapSizeTable *sizeM = size + nSize;

                while (size < sizeM)
                {
                    this.Nodes.Add(new eblcSizeTreeNode(file, entry, *size));
                    size++;
                }
            }

            //Program.ErrorOut.RemoveIndent();
        }
Exemplo n.º 3
0
 public void AfterSelect(object sender, System.Windows.Forms.TreeViewAction action)
 {
 }
Exemplo n.º 4
0
 public virtual void BeforeExpand(object sender, System.Windows.Forms.TreeViewAction action, ref bool cancel)
 {
 }