Changeset 53


Ignore:
Timestamp:
Dec 24, 2006, 12:36:07 AM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Main.dfm

    r52 r53  
    6767          OnClick = menu_loadfileClick
    6868        end
     69        object menu_loaddb: TTBItem
     70          Caption = 'Open level-&db ...'
     71          ImageIndex = 1
     72          ShortCut = 16452
     73          OnClick = menu_loaddbClick
     74        end
    6975        object menu_sep1: TTBSeparatorItem
    7076        end
     
    129135          Caption = '&Meta editor'
    130136          Enabled = False
     137          ImageIndex = 11
    131138          ShortCut = 16461
    132139          OnClick = menu_metaClick
     
    142149          Caption = 'Levelfile structure editor ...'
    143150          Enabled = False
     151          ImageIndex = 12
    144152          ShortCut = 16460
    145153        end
     
    210218      OnDockChanged = ToolbarDockChanged
    211219      object tbOpen: TTBItem
    212         Caption = 'Open file'
     220        Caption = 'Open .dat'
    213221        DisplayMode = nbdmImageAndText
    214222        ImageIndex = 0
    215223        OnClick = menu_loadfileClick
     224      end
     225      object tb_opendb: TTBItem
     226        Caption = 'Open DB'
     227        DisplayMode = nbdmImageAndText
     228        ImageIndex = 1
     229        OnClick = menu_loaddbClick
    216230      end
    217231      object tb_separator1: TTBSeparatorItem
     
    270284        DisplayMode = nbdmImageAndText
    271285        Enabled = False
     286        ImageIndex = 11
    272287        OnClick = menu_metaClick
    273288      end
     
    283298        DisplayMode = nbdmImageAndText
    284299        Enabled = False
     300        ImageIndex = 12
    285301      end
    286302    end
     
    358374    Top = 112
    359375    Bitmap = {
    360       494C01010B000E00040010001000FFFFFFFFFF00FFFFFFFFFFFFFFFF424D3600
     376      494C01010D000E00040010001000FFFFFFFFFF00FFFFFFFFFFFFFFFF424D3600
    361377      0000000000003600000028000000400000004000000001002000000000000040
    362378      0000000000000000000000000000000000000000000000000000000000000000
     
    368384      0000000000000000000000000000000000000000000000000000000000000000
    369385      0000000000000000000000000000000000000000000000000000000000000000
    370       0000000000000000000000000000000000000000000000000000000000000000
    371       0000000000000000000000000000000000000000000000000000000000000000
    372       0000000000000000000000000000000000000000000000000000000000000000
    373       0000000000000000000000000000000000000000000000000000000000000000
    374       0000000000000000000000000000000000000000000000000000000000000000
    375       0000000000000000000000000000000000000000000000000000000000000000
    376       0000000000000000000000000000000000000000000000000000000000000000
    377       0000000000000000000000000000000000000000000000000000000000000000
    378       0000000000000000000000000000000000000000000000000000000000000000
    379       0000000000000000000000000000000000000000000000000000000000000000
    380       0000000000000000000000000000000000000000000000000000000000000000
    381       0000000000000000000000000000000000000000000000000000000000000000
    382       0000000000000000000000000000000000000000000000000000000000000000
    383       0000000000000000000000000000000000000000000000000000000000000000
    384       0000000000000000000000000000000000000000000000000000000000000000
    385       0000000000000000000000000000000000000000000000000000000000000000
    386       0000000000000000000000000000000000000000000000000000000000000000
    387       0000000000000000000000000000000000000000000000000000000000000000
    388       0000000000000000000000000000000000000000000000000000000000000000
    389       0000000000000000000000000000000000000000000000000000000000000000
    390       0000000000000000000000000000000000000000000000000000000000000000
    391       0000000000000000000000000000000000000000000000000000000000000000
    392       0000000000000000000000000000000000000000000000000000000000000000
    393       0000000000000000000000000000000000000000000000000000000000000000
    394       0000000000000000000000000000000000000000000000000000000000000000
    395       0000000000000000000000000000000000000000000000000000000000000000
    396       0000000000000000000000000000000000000000000000000000000000000000
    397       0000000000000000000000000000000000000000000000000000000000000000
    398       0000000000000000000000000000000000000000000000000000000000000000
    399       0000000000000000000000000000000000000000000000000000000000000000
    400       0000000000000000000000000000000000000000000000000000000000000000
    401       0000000000000000000000000000000000000000000000000000000000000000
    402       0000000000000000000000000000000000000000000000000000000000000000
    403       0000000000000000000000000000000000000000000000000000000000000000
    404       0000000000000000000000000000000000000000000000000000000000000000
    405       0000000000000000000000000000000000000000000000000000000000000000
    406       0000000000000000000000000000000000000000000000000000000000000000
    407       0000000000000000000000000000000000000000000000000000000000000000
    408       0000000000000000000000000000000000000000000000000000000000000000
    409       0000000000000000000000000000000000000000000000000000000000000000
    410       0000000000000000000000000000000000000000000000000000000000000000
    411       0000000000000000000000000000000000000000000000000000000000000000
    412       0000000000000000000000000000000000000000000000000000000000000000
    413       0000000000000000000000000000000000000000000000000000000000000000
    414       0000000000000000000000000000000000000000000000000000000000000000
    415       0000000000000000000000000000000000000000000000000000000000000000
    416       0000000000000000000000000000000000000000000000000000000000000000
    417       0000000000000000000000000000000000000000000000000000000000000000
    418       0000000000000000000000000000000000000000000000000000000000000000
    419       0000000000000000000000000000000000000000000000000000000000000000
    420       0000000000000000000000000000000000000000000000000000000000000000
    421       0000000000000000000000000000000000000000000000000000000000000000
    422       0000000000000000000000000000000000000000000000000000000000000000
    423       0000000000000000000000000000000000000000000000000000000000000000
    424       0000000000000000000000000000000000000000000000000000000000000000
    425       0000000000000000000000000000000000000000000000000000000000000000
    426       0000000000000000000000000000000000000000000000000000000000000000
    427       0000000000000000000000000000000000000000000000000000000000000000
    428       0000000000000000000000000000000000000000000000000000000000000000
    429       0000000000000000000000000000000000000000000000000000000000000000
    430       0000000000000000000000000000000000000000000000000000000000000000
    431       0000000000000000000000000000000000000000000000000000000000000000
    432       0000000000000000000000000000000000000000000000000000000000000000
    433       0000000000000000000000000000000000000000000000000000000000000000
    434       0000000000000000000000000000000000000000000000000000000000000000
    435       0000000000000000000000000000000000000000000000000000000000000000
    436       0000000000000000000000000000000000000000000000000000000000000000
    437       0000000000000000000000000000000000000000000000000000000000000000
    438       0000000000000000000000000000000000000000000000000000000000000000
    439       0000000000000000000000000000000000000000000000000000000000000000
    440       0000000000000000000000000000000000000000000000000000000000000000
    441       0000000000000000000000000000000000000000000000000000000000000000
    442       0000000000000000000000000000000000000000000000000000000000000000
    443       0000000000000000000000000000000000000000000000000000000000000000
    444       0000000000000000000000000000000000000000000000000000000000000000
    445       0000000000000000000000000000000000000000000000000000000000000000
    446       0000000000000000000000000000000000000000000000000000000000000000
    447       0000000000000000000000000000000000000000000000000000000000000000
    448       0000000000000000000000000000000000000000000000000000000000000000
    449       0000000000000000000000000000000000000000000000000000000000000000
    450       0000000000000000000000000000000000000000000000000000000000000000
    451       0000000000000000000000000000000000000000000000000000000000000000
    452       0000000000000000000000000000000000000000000000000000000000000000
    453       0000000000000000000000000000000000000000000000000000000000000000
    454       0000000000000000000000000000000000000000000000000000000000000000
    455       0000000000000000000000000000000000000000000000000000000000000000
    456       0000000000000000000000000000000000000000000000000000000000000000
    457       0000000000000000000000000000000000000000000000000000000000000000
    458       0000000000000000000000000000000000000000000000000000000000000000
    459       0000000000000000000000000000000000000000000000000000000000000000
    460       0000000000000000000000000000000000000000000000000000000000000000
    461       0000000000000000000000000000000000000000000000000000000000000000
    462       0000000000000000000000000000000000000000000000000000000000000000
    463       0000000000000000000000000000000000000000000000000000000000000000
    464       0000000000000000000000000000000000000000000000000000000000000000
    465       0000000000000000000000000000000000000000000000000000000000000000
    466       0000000000000000000000000000000000000000000000000000000000000000
    467       0000000000000000000000000000000000000000000000000000000000000000
    468       0000000000000000000000000000000000000000000000000000000000000000
    469       0000000000000000000000000000000000000000000000000000000000000000
    470       0000000000000000000000000000000000000000000000000000000000000000
    471       0000000000000000000000000000000000000000000000000000000000000000
    472       0000000000000000000000000000000000000000000000000000000000000000
    473       0000000000000000000000000000000000000000000000000000000000000000
    474       0000000000000000000000000000000000000000000000000000000000000000
    475       0000000000000000000000000000000000000000000000000000000000000000
    476       0000000000000000000000000000000000000000000000000000000000000000
    477       0000000000000000000000000000000000000000000000000000000000000000
    478       0000000000000000000000000000000000000000000000000000000000000000
    479       0000000000000000000000000000000000000000000000000000000000000000
    480       0000000000000000000000000000000000000000000000000000000000000000
    481       0000000000000000000000000000000000000000000000000000000000000000
    482       0000000000000000000000000000000000000000000000000000000000000000
    483       0000000000000000000000000000000000000000000000000000000000000000
    484       0000000000000000000000000000000000000000000000000000000000000000
    485       0000000000000000000000000000000000000000000000000000000000000000
    486       0000000000000000000000000000000000000000000000000000000000000000
    487       0000000000000000000000000000000000000000000000000000000000000000
    488       0000000000000000000000000000000000000000000000000000000000000000
    489       0000000000000000000000000000000000000000000000000000000000000000
    490       0000000000000000000000000000000000000000000000000000000000000000
    491       0000000000000000000000000000000000000000000000000000000000000000
    492       000000000000FFFFFF0000000000000000000000000000000000000000000000
    493       000000000000000000000000000000000000FFFFFF0000000000000000000000
    494       0000000000000000000000000000000000000000000000000000000000000000
    495       0000000000000000000000000000000000000000000000000000000000000000
    496       0000000000000000000000000000000000000000000000000000000000000000
    497       0000000000000000000000000000000000000000000000000000000000000000
     386      0000000000000000000000000000000000000000000000FF000000FF000000FF
     387      000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF
     388      000000FF000000FF000000FF0000000000000000000000000000000000000000
     389      0000000000000000000000000000000000000000000000000000000000000000
     390      0000000000000000000000000000000000000000000000000000000000000000
     391      0000000000000000000000000000000000000000000000000000000000000000
     392      0000000000000000000000000000000000000000000000000000000000000000
     393      0000000000000000000000000000000000000000000000000000000000000000
     394      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     395      0000000000000000000000000000000000000000000000000000000000000000
     396      000000000000FFFFFF0000FF0000000000000000000000000000000000000000
     397      0000000000000000000000000000000000000000000000000000000000000000
     398      0000000000000000000000000000000000000000000000000000000000000000
     399      0000000000000000000000000000000000000000000000000000000000000000
     400      0000000000000000000000000000000000000000000000000000000000000000
     401      0000000000000000000000000000000000000000000000000000000000000000
     402      0000000000000000000000000000000000000000000000FF0000FFFFFF00FFFF
     403      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     404      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     405      0000000000000000000000000000000000000000000000000000000000000000
     406      0000000000000000000000000000000000000000000000000000000000000000
     407      0000000000000000000000000000000000000000000000000000000000000000
     408      0000000000000000000000000000000000000000000000000000000000000000
     409      0000000000000000000000000000000000000000000000000000000000000000
     410      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     411      FF00FFFFFF000000000000000000000000000000000000000000000000000000
     412      0000FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     413      0000000000000000000000000000000000000000000000000000000000000000
     414      0000000000000000000000000000000000000000000000000000000000000000
     415      0000000000000000000000000000000000000000000000000000000000000000
     416      0000000000000000000000000000000000000000000000000000000000000000
     417      0000000000000000000000000000000000000000000000000000000000000000
     418      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     419      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     420      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     421      0000000000000000000000000000000000000000000000000000000000000000
     422      0000000000000000000000000000000000000000000000000000000000000000
     423      0000000000000000000000000000000000000000000000000000000000000000
     424      0000000000000000000000000000000000000000000000000000000000000000
     425      0000000000000000000000000000000000000000000000000000000000000000
     426      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     427      FF00FFFFFF00000000000000000000000000000000000000000000000000FFFF
     428      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     429      0000000000000000000000000000000000000000000000000000000000000000
     430      0000000000000000000000000000000000000000000000000000000000000000
     431      0000000000000000000000000000000000000000000000000000000000000000
     432      0000000000000000000000000000000000000000000000000000000000000000
     433      0000000000000000000000000000000000000000000000000000000000000000
     434      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     435      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     436      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     437      0000000000000000000000000000000000000000000000000000000000000000
     438      0000000000000000000000000000000000000000000000000000000000000000
     439      0000000000000000000000000000000000000000000000000000000000000000
     440      0000000000000000000000000000000000000000000000000000000000000000
     441      0000000000000000000000000000000000000000000000000000000000000000
     442      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     443      FF00FFFFFF000000000000000000000000000000000000000000FFFFFF00FFFF
     444      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     445      0000000000000000000000000000000000000000000000000000000000000000
     446      0000000000000000000000000000000000000000000000000000000000000000
     447      0000000000000000000000000000000000000000000000000000000000000000
     448      0000000000000000000000000000000000000000000000000000000000000000
     449      0000000000000000000000000000000000000000000000000000000000000000
     450      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     451      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     452      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     453      0000000000000000000000000000000000000000000000000000000000000000
     454      0000000000000000000000000000000000000000000000000000000000000000
     455      0000000000000000000000000000000000000000000000000000000000000000
     456      0000000000000000000000000000000000000000000000000000000000000000
     457      0000000000000000000000000000000000000000000000000000000000000000
     458      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     459      FF00FFFFFF0000000000000000000000000000000000FFFFFF00FFFFFF00FFFF
     460      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     461      0000000000000000000000000000000000000000000000000000000000000000
     462      0000000000000000000000000000000000000000000000000000000000000000
     463      0000000000000000000000000000000000000000000000000000000000000000
     464      0000000000000000000000000000000000000000000000000000000000000000
     465      0000000000000000000000000000000000000000000000000000000000000000
     466      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     467      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     468      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     469      0000000000000000000000000000000000000000000000000000000000000000
     470      0000000000000000000000000000000000000000000000000000000000000000
     471      0000000000000000000000000000000000000000000000000000000000000000
     472      0000000000000000000000000000000000000000000000000000000000000000
     473      0000000000000000000000000000000000000000000000000000000000000000
     474      0000000000000000000000000000000000000000000000FF0000FFFFFF000000
     475      FF00FFFFFF00000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFF
     476      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     477      0000000000000000000000000000000000000000000000000000000000000000
     478      0000000000000000000000000000000000000000000000000000000000000000
     479      0000000000000000000000000000000000000000000000000000000000000000
     480      0000000000000000000000000000000000000000000000000000000000000000
     481      0000000000000000000000000000000000000000000000000000000000000000
     482      0000000000000000000000000000000000000000000000FF0000FFFFFF00FFFF
     483      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
     484      FF00FFFFFF00FFFFFF0000FF0000000000000000000000000000000000000000
     485      0000000000000000000000000000000000000000000000000000000000000000
     486      0000000000000000000000000000000000000000000000000000000000000000
     487      0000000000000000000000000000000000000000000000000000000000000000
     488      0000000000000000000000000000000000000000000000000000000000000000
     489      0000000000000000000000000000000000000000000000000000000000000000
     490      0000000000000000000000000000000000000000000000FF000000FF000000FF
     491      000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF
     492      000000FF000000FF000000FF0000000000000000000000000000000000000000
     493      0000000000000000000000000000000000000000000000000000000000000000
     494      0000000000000000000000000000000000000000000000000000000000000000
     495      0000000000000000000000000000000000000000000000000000000000000000
     496      0000000000000000000000000000000000000000000000000000000000000000
     497      0000000000000000000000000000000000000000000000000000000000000000
     498      0000000000000000000000000000000000000000000000000000000000000000
     499      0000000000000000000000000000000000000000000000000000000000000000
     500      0000000000000000000000000000000000000000000000000000000000000000
     501      0000000000000000000000000000000000000000000000000000000000000000
     502      0000000000000000000000000000000000000000000000000000000000000000
     503      0000000000000000000000000000000000000000000000000000000000000000
     504      0000000000000000000000000000000000000000000000000000000000000000
     505      0000000000000000000000000000000000000000000000000000000000000000
     506      0000000000000000000000000000000000000000000000000000000000000000
     507      0000000000000000000000000000000000000000000000000000000000000000
     508      0000000000000000000000000000000000000000000000000000000000000000
     509      0000000000000000000000000000000000000000000000000000000000000000
     510      0000000000000000000000000000000000000000000000000000000000000000
     511      0000000000000000000000000000000000000000000000000000000000000000
     512      0000000000000000000000000000000000000000FF000000FF000000FF000000
     513      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
     514      FF000000FF000000FF000000FF000000FF00000000000000FF000000FF000000
     515      FF000000FF000000000000000000000000000000000000000000000000000000
    498516      000000000000000000000000000000000000000000000000FF000000FF000000
    499517      FF000000FF000000000000000000000000000000000000000000000000000000
    500       00000000000000000000FFFFFF0000000000000000000000FF000000FF000000
    501       FF000000FF000000000000000000FFFFFF000000000000000000000000000000
    502518      0000000000000000FF000000FF00000000000000000000000000000000000000
    503519      0000000000000000000000000000000000000000000000000000000000000000
    504       0000000000000000000000000000000000000000000000000000000000000000
    505       0000000000000000000000000000000000000000000000000000000000000000
    506       000000000000000000000000000000000000000000000000FF000000FF000000
    507       FF000000FF0000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
    508       FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00000000000000FF000000FF000000
    509       FF000000FF0000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
    510       FF00000000000000FF000000FF00000000000000000000000000000000000000
    511       0000000000000000000000000000000000000000000000000000000000000000
    512       0000000000000000000000000000000000000000000000000000000000000000
    513       0000000000000000000000000000000000000000000000000000000000000000
     520      0000000000000000000000000000000000000000FF0000FFFF000000FF0000FF
     521      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
     522      FF0000FFFF000000FF000000FF000000FF00000000000000FF000000FF000000
     523      FF000000FF000000000000000000000000000000000000000000000000000000
    514524      000000000000000000000000000000000000000000000000FF000000FF000000
    515525      FF000000FF000000000000000000000000000000000000000000000000000000
    516       00000000000000000000FFFFFF0000000000000000000000FF000000FF000000
    517       FF000000FF000000000000000000FFFFFF000000000000000000000000000000
    518       0000000000000000000000000000000000000000000000000000000000000000
    519       0000000000000000000000000000000000000000000000000000000000000000
    520       0000000000000000000000000000000000000000000000000000000000000000
    521       0000000000000000000000000000000000000000000000000000000000000000
     526      0000000000000000FF000000FF00000000000000000000000000000000000000
     527      0000000000000000000000000000000000000000000000000000000000000000
     528      0000000000000000000000000000000000000000000000FFFF000000000000FF
     529      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
     530      FF0000FFFF00000000000000FF0000000000000000000000FF000000FF000000
     531      FF000000FF000000000000000000000000000000000000000000000000000000
    522532      000000000000000000000000000000000000000000000000FF000000FF000000
    523533      FF000000FF000000000000000000000000000000000000000000000000000000
    524       000000000000FFFFFF000000000000000000000000000000FF000000FF000000
    525       FF000000FF00000000000000000000000000FFFFFF0000000000000000000000
    526       0000FF000000FF00000000000000000000000000000000000000000000000000
    527       0000000000000000000000000000000000000000000000000000000000000000
    528       0000000000000000000000000000000000000000000000000000000000000000
    529       0000000000000000000000000000000000000000000000000000000000000000
    530       0000000000000000000000000000000000000000000000000000000000000000
    531       000000000000000000000000000000000000000000000000000000000000FFFF
    532       FF00000000000000000000000000000000000000000000000000000000000000
    533       0000000000000000000000000000000000000000000000000000FFFFFF000000
    534       0000FF000000FF00000000000000000000000000000000000000000000000000
    535       0000000000000000000000000000000000000000000000000000000000000000
    536       0000000000000000000000000000000000000000000000000000000000000000
    537       0000000000000000000000000000000000000000000000000000000000000000
     534      0000000000000000000000000000000000000000000000000000000000000000
     535      0000000000000000000000000000000000000000000000000000000000000000
     536      0000000000000000000000000000000000000000000000FFFF00000000000000
     537      0000000000000000000000000000000000000000000000000000000000000000
     538      000000000000000000000000FF0000000000000000000000FF000000FF000000
     539      FF000000FF000000000000000000000000000000000000000000000000000000
     540      000000000000000000000000000000000000000000000000FF000000FF000000
     541      FF000000FF000000000000000000000000000000000000000000000000000000
     542      000000000000FF000000FF000000000000000000000000000000000000000000
     543      0000000000000000000000000000000000000000000000000000000000000000
     544      0000000000000000000000000000000000000000000000FFFF000000000000FF
     545      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
     546      FF0000000000000000000000FF00000000000000000000000000000000000000
     547      0000000000000000000000000000000000000000000000000000000000000000
     548      0000000000000000000000000000000000000000000000000000000000000000
     549      0000000000000000000000000000000000000000000000000000000000000000
     550      000000000000FF000000FF000000000000000000000000000000000000000000
     551      0000000000000000000000000000000000000000000000000000000000000000
     552      0000000000000000000000000000000000000000000000FFFF000000000000FF
     553      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
     554      FF0000000000000000000000FF000000000000000000FF000000FF000000FF00
     555      0000FF0000000000000000000000000000000000000000000000000000000000
    538556      00000000000000000000000000000000000000000000FF000000FF000000FF00
    539557      0000FF0000000000000000000000000000000000000000000000000000000000
    540       0000FFFFFF0000000000000000000000000000000000FF000000FF000000FF00
    541       0000FF00000000000000000000000000000000000000FFFFFF00000000000000
    542       0000000000000000000000000000000000000000000000000000000000000000
    543       0000000000000000000000000000000000000000000000000000000000000000
    544       0000000000000000000000000000000000000000000000000000000000000000
    545       0000000000000000000000000000000000000000000000000000000000000000
    546       00000000000000000000000000000000000000000000FF000000FF000000FF00
    547       0000FF00000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
    548       FF00FFFFFF00FFFFFF00000000000000000000000000FF000000FF000000FF00
    549       0000FF000000000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFF
    550       FF00FFFFFF00FFFFFF0000000000000000000000000000000000000000000000
    551       0000000000000000000000000000000000000000000000000000000000000000
    552       0000000000000000000000000000000000000000000000000000000000000000
    553       0000000000000000000000000000000000000000000000000000000000000000
     558      0000000000000000000000000000000000000000000000000000000000000000
     559      0000000000000000000000000000000000000000000000000000000000000000
     560      0000000000000000000000000000000000000000000000FFFF00000000000000
     561      0000000000000000000000000000000000000000000000000000000000000000
     562      000000000000000000000000FF000000000000000000FF000000FF000000FF00
     563      0000FF0000000000000000000000000000000000000000000000000000000000
    554564      00000000000000000000000000000000000000000000FF000000FF000000FF00
    555565      0000FF0000000000000000000000000000000000000000000000000000000000
    556       0000FFFFFF0000000000000000000000000000000000FF000000FF000000FF00
    557       0000FF00000000000000000000000000000000000000FFFFFF00000000000000
    558       0000000000000000000000000000000000000000000000000000000000000000
    559       0000000000000000000000000000000000000000000000000000000000000000
    560       0000000000000000000000000000000000000000000000000000000000000000
    561       0000000000000000000000000000000000000000000000000000000000000000
     566      0000000000000000000000000000000000000000000000000000000000000000
     567      0000000000000000000000000000000000000000000000000000000000000000
     568      0000000000000000000000000000000000000000000000FFFF000000000000FF
     569      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF000000
     570      000000000000000000000000FF000000000000000000FF000000FF000000FF00
     571      0000FF0000000000000000000000000000000000000000000000000000000000
    562572      00000000000000000000000000000000000000000000FF000000FF000000FF00
    563       0000FF000000000000000000000000000000000000000000000000000000FFFF
    564       FF000000000000000000000000000000000000000000FF000000FF000000FF00
    565       0000FF0000000000000000000000000000000000000000000000FFFFFF000000
    566       00000000FF000000FF0000000000000000000000000000000000000000000000
    567       0000000000000000000000000000000000000000000000000000000000000000
    568       0000000000000000000000000000000000000000000000000000000000000000
    569       0000000000000000000000000000000000000000000000000000000000000000
    570       0000000000000000000000000000000000000000000000000000000000000000
    571       00000000000000000000000000000000000000000000FFFFFF00000000000000
    572       0000000000000000FF000000FF00000000000000000000000000000000000000
    573       000000000000000000000000000000000000FFFFFF0000000000000000000000
    574       00000000FF000000FF0000000000000000000000000000000000000000000000
    575       0000000000000000000000000000000000000000000000000000000000000000
    576       0000000000000000000000000000000000000000000000000000000000000000
    577       0000000000000000000000000000000000000000000000000000000000000000
     573      0000FF0000000000000000000000000000000000000000000000000000000000
     574      0000000000000000000000000000000000000000000000000000000000000000
     575      0000000000000000000000000000000000000000000000000000000000000000
     576      0000000000000000000000000000000000000000000000FFFF000000000000FF
     577      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF000000
     578      000000000000000000000000FF000000000000000000FF000000FF000000FF00
     579      0000FF0000000000000000000000000000000000000000000000000000000000
     580      0000000000000000FF000000FF000000FF0000000000FF000000FF000000FF00
     581      0000FF0000000000000000000000000000000000000000000000000000000000
     582      0000000000000000FF000000FF000000FF000000000000000000000000000000
     583      0000000000000000000000000000000000000000000000000000000000000000
     584      0000000000000000000000000000000000000000000000FFFF00000000000000
     585      0000000000000000000000000000000000000000000000000000000000000000
     586      000000000000000000000000FF00000000000000000000000000000000000000
     587      0000000000000000000000000000000000000000000000000000000000000000
     588      0000000000000000FF000000FF000000FF000000000000000000000000000000
     589      0000000000000000000000000000000000000000000000000000000000000000
     590      0000000000000000FF000000FF000000FF000000000000000000000000000000
     591      0000000000000000000000000000000000000000000000000000000000000000
     592      0000000000000000000000000000000000000000000000FFFF000000000000FF
     593      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF00000000000000
     594      000000000000000000000000FF00000000000000000000FFFF0000FFFF0000FF
     595      FF0000FFFF000000000000000000000000000000000000000000000000000000
     596      0000000000000000FF000000FF000000FF000000000000FFFF0000FFFF0000FF
     597      FF0000FFFF000000000000000000000000000000000000000000000000000000
     598      0000000000000000FF000000FF000000FF000000000000000000000000000000
     599      0000000000000000000000000000000000000000000000000000000000000000
     600      0000000000000000000000000000000000000000000000FFFF000000000000FF
     601      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF00000000000000
     602      000000000000000000000000FF00000000000000000000FFFF0000FFFF0000FF
     603      FF0000FFFF000000000000000000000000000000000000000000000000000000
    578604      0000000000000000000000000000000000000000000000FFFF0000FFFF0000FF
    579       FF0000FFFF000000000000000000000000000000000000000000FFFFFF000000
    580       0000000000000000FF000000FF00000000000000000000FFFF0000FFFF0000FF
    581       FF0000FFFF000000000000000000FFFFFF000000000000000000000000000000
    582       0000000000000000000000000000000000000000000000000000000000000000
    583       0000000000000000000000000000000000000000000000000000000000000000
    584       0000000000000000000000000000000000000000000000000000000000000000
    585       0000000000000000000000000000000000000000000000000000000000000000
    586       0000000000000000000000000000000000000000000000FFFF0000FFFF0000FF
    587       FF0000FFFF0000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
    588       FF00000000000000000000000000000000000000000000FFFF0000FFFF0000FF
    589       FF0000FFFF0000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
    590       FF00000000000000000000000000000000000000000000000000000000000000
    591       0000000000000000000000000000000000000000000000000000000000000000
    592       0000000000000000000000000000000000000000000000000000000000000000
    593       0000000000000000000000000000000000000000000000000000000000000000
    594       0000000000000000000000000000000000000000000000FFFF0000FFFF0000FF
    595       FF0000FFFF000000000000000000000000000000000000000000FFFFFF000000
    596       000000000000FF000000FF000000000000000000000000FFFF0000FFFF0000FF
    597       FF0000FFFF000000000000000000FFFFFF000000000000000000000000000000
    598       000000000000FF000000FF000000000000000000000000000000000000000000
    599       0000000000000000000000000000000000000000000000000000000000000000
    600       0000000000000000000000000000000000000000000000000000000000000000
    601       0000000000000000000000000000000000000000000000000000000000000000
    602       0000000000000000000000000000000000000000000000FFFF0000FFFF0000FF
    603       FF0000FFFF0000000000000000000000000000000000FFFFFF00000000000000
    604       000000000000FF000000FF000000000000000000000000FFFF0000FFFF0000FF
    605       FF0000FFFF00000000000000000000000000FFFFFF000000000000FFFF0000FF
    606       FF0000000000FF000000FF000000000000000000000000000000000000000000
    607       0000000000000000000000000000000000000000000000000000000000000000
    608       0000000000000000000000000000000000000000000000000000000000000000
    609       0000000000000000000000000000000000000000000000000000000000000000
    610       0000000000000000000000000000000000000000000000000000000000000000
    611       0000000000000000000000000000000000000000000000000000000000000000
    612       0000000000000000000000000000000000000000000000000000000000000000
    613       000000000000000000000000000000000000000000000000000000FFFF0000FF
    614       FF00000000000000000000000000000000000000000000000000000000000000
    615       0000000000000000000000000000000000000000000000000000000000000000
    616       0000000000000000000000000000000000000000000000000000000000000000
    617       0000000000000000000000000000000000000000000000000000000000000000
    618       0000000000000000000000000000000000000000000008080800080808000808
     605      FF0000FFFF000000000000000000000000000000000000000000000000000000
     606      0000000000000000000000000000000000000000000000000000000000000000
     607      0000000000000000000000000000000000000000000000000000000000000000
     608      0000000000000000000000000000000000000000000000FFFF00000000000000
     609      0000000000000000000000000000000000000000000000000000000000000000
     610      000000000000000000000000FF00000000000000000000FFFF0000FFFF0000FF
     611      FF0000FFFF000000000000000000000000000000000000000000000000000000
     612      000000000000FF000000FF000000FF0000000000000000FFFF0000FFFF0000FF
     613      FF0000FFFF000000000000000000000000000000000000000000000000000000
     614      000000000000FF000000FF000000FF0000000000000000000000000000000000
     615      0000000000000000000000000000000000000000000000000000000000000000
     616      0000000000000000000000000000000000000000000000FFFF000000000000FF
     617      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000000000000000000000
     618      000000000000000000000000FF00000000000000000000FFFF0000FFFF0000FF
     619      FF0000FFFF000000000000000000000000000000000000000000000000000000
     620      000000000000FF000000FF000000FF0000000000000000FFFF0000FFFF0000FF
     621      FF0000FFFF000000000000000000000000000000000000000000000000000000
     622      000000000000FF000000FF000000FF0000000000000000000000000000000000
     623      0000000000000000000000000000000000000000000000000000000000000000
     624      0000000000000000000000000000000000000000FF0000FFFF000000FF0000FF
     625      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF000000FF000000FF000000
     626      FF000000FF000000FF000000FF000000FF000000000000000000000000000000
     627      0000000000000000000000000000000000000000000000000000000000000000
     628      000000000000FF000000FF000000FF0000000000000000000000000000000000
     629      0000000000000000000000000000000000000000000000000000000000000000
     630      000000000000FF000000FF000000FF0000000000000000000000000000000000
     631      0000000000000000000000000000000000000000000000000000000000000000
     632      0000000000000000000000000000000000000000FF000000FF000000FF000000
     633      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
     634      FF000000FF000000FF000000FF000000FF000000000008080800080808000808
    619635      0800080808001018180010101000080808001010100008080800080810001010
    620636      1000101010000808080008080800000000000000000000000000000000000000
     
    878894      0000000000000000000000000000000000000000000000000000000000000000
    879895      0000000000000000000000000000000000000000000000000000000000000000
    880       00000000000000000000000000000000FFFBFF7F00FF000087FD86F900FF0000
    881       8400840900FF000087FD86FF1F07000087FB87731F070000FFEFFFD31F070000
    882       87F787BF1F070000840387031F07000087F787BF1F07000087EF87D31F070000
    883       FFB9FF731F07000087D986FF1F070000840F840F1F07000087D986F900FF0000
    884       87B9874900FF0000FFFFFFCF00FF00008001FFFFFFFF00008001A007A0070000
     896      0000000000000000000000000000000003FB03BF00FF000003FD037900FF0000
     897      0200020100FF000003FD037F1F07000003FB03B91F07000003EF03E91F070000
     898      03F703DF1F070000020303831F07000003F703DF1F07000003E803E81F070000
     899      03B803B81F07000003D803781F070000020F02071F07000003D8037800FF0000
     900      03B803B800FF000003F803F800FF00008001FFFFFFFF00008001A007A0070000
    885901      8001000200020000800100020002000080010002000200000000000200020000
    886902      0000000200020000800100020002000080010002000200008001000200020000
  • oup/current/Main.pas

    r51 r53  
    7272    tb_db2dat: TTBItem;
    7373    tb_dat2db: TTBItem;
     74    menu_loaddb: TTBItem;
     75    tb_opendb: TTBItem;
     76    procedure LoadFile(typedb: Boolean);
    7477    function TryCloseAll: Boolean;
    7578    procedure menu_AboutClick(Sender: TObject);
     
    106109    procedure menu_metaClick(Sender: TObject);
    107110    procedure ToolbarDockChanged(Sender: TObject);
     111    procedure menu_loaddbClick(Sender: TObject);
    108112  private
    109113  public
     
    320324
    321325
    322  {#################################}
    323  {##### Main-Menu-Handlers    #####}
    324  {#################################}
    325 procedure TForm_Main.menu_loadfileClick(Sender: TObject);
     326
     327procedure TForm_Main.LoadFile(typedb: Boolean);
    326328var
    327329  ext: String;
     
    332334    opend.InitialDir := AppSettings.DatPath;
    333335    opend.Filter     := 'Compatible level files|*.dat;*.oldb|Oni level (*.dat)|*.dat|OUP level database (*.oldb)|*.oldb|Any (*.*)|*';
     336    if typedb then
     337      opend.FilterIndex := 3
     338    else
     339      opend.FilterIndex := 2;
    334340    if opend.Execute then
    335341    begin
     
    351357  end;
    352358  UpdateStatBar;
     359end;
     360
     361
     362 {#################################}
     363 {##### Main-Menu-Handlers    #####}
     364 {#################################}
     365procedure TForm_Main.menu_loaddbClick(Sender: TObject);
     366begin
     367  LoadFile(True);
     368end;
     369
     370procedure TForm_Main.menu_loadfileClick(Sender: TObject);
     371begin
     372  LoadFile(False);
    353373end;
    354374
  • oup/current/Settings.dfm

    r43 r53  
    44  BorderStyle = bsToolWindow
    55  Caption = 'Settings'
    6   ClientHeight = 357
     6  ClientHeight = 235
    77  ClientWidth = 321
    88  Color = clBtnFace
     
    3737  object btn_ok: TButton
    3838    Left = 8
    39     Top = 319
     39    Top = 199
    4040    Width = 57
    4141    Height = 23
     
    4646  end
    4747  object btn_cancel: TButton
    48     Left = 120
    49     Top = 319
     48    Left = 112
     49    Top = 199
    5050    Width = 57
    5151    Height = 23
     
    5454    TabOrder = 2
    5555    OnClick = btn_cancelClick
    56   end
    57   object btn_register_oldb: TButton
    58     Left = 8
    59     Top = 184
    60     Width = 169
    61     Height = 25
    62     Caption = 'Register .oldb files with OUP'
    63     TabOrder = 3
    64     OnClick = btn_register_oldbClick
    65   end
    66   object btn_register_opf: TButton
    67     Left = 8
    68     Top = 215
    69     Width = 169
    70     Height = 25
    71     Caption = 'Register .opf files with OUP'
    72     TabOrder = 4
    73     OnClick = btn_register_opfClick
    74   end
    75   object btn_register_dat: TButton
    76     Left = 8
    77     Top = 153
    78     Width = 169
    79     Height = 25
    80     Caption = 'Register .dat files with OUP'
    81     TabOrder = 5
    82     OnClick = btn_register_datClick
    8356  end
    8457  object combo_charset: TComboBox
     
    9063    ItemHeight = 13
    9164    ItemIndex = 0
    92     TabOrder = 6
     65    TabOrder = 3
    9366    Text = 'default - 1'
    9467    Items.Strings = (
     
    10982    Height = 17
    11083    Caption = 'Hide "Unused" data in StructureViewer'
     84    TabOrder = 4
     85  end
     86  object check_reg_dat: TCheckBox
     87    Left = 8
     88    Top = 118
     89    Width = 180
     90    Height = 17
     91    Caption = 'Register .dat files with OUP'
     92    TabOrder = 5
     93  end
     94  object check_reg_oldb: TCheckBox
     95    Left = 8
     96    Top = 141
     97    Width = 180
     98    Height = 17
     99    Caption = 'Register .oldb files with OUP'
     100    TabOrder = 6
     101  end
     102  object check_reg_opf: TCheckBox
     103    Left = 8
     104    Top = 164
     105    Width = 180
     106    Height = 17
     107    Caption = 'Register .opf files with OUP'
    111108    TabOrder = 7
    112109  end
  • oup/current/Settings.pas

    r46 r53  
    1212    btn_ok:     TButton;
    1313    btn_cancel: TButton;
    14     btn_register_oldb: TButton;
    15     btn_register_opf: TButton;
    16     btn_register_dat: TButton;
    1714    label_charset: TLabel;
    1815    combo_charset: TComboBox;
    1916    check_hideunused: TCheckBox;
    20     procedure btn_register_opfClick(Sender: TObject);
    21     procedure btn_register_oldbClick(Sender: TObject);
    22     procedure btn_register_datClick(Sender: TObject);
     17    check_reg_dat: TCheckBox;
     18    check_reg_oldb: TCheckBox;
     19    check_reg_opf: TCheckBox;
    2320    procedure btn_cancelClick(Sender: TObject);
    2421    procedure btn_okClick(Sender: TObject);
    2522    procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
    2623    procedure FormShow(Sender: TObject);
    27     function RegisterExtension(ext: String): Integer;
     24    function RegisterExtension(ext: String; reg: Boolean): Integer;
    2825  private
    2926  public
     
    6562
    6663
    67 function TForm_Settings.RegisterExtension(ext: String): Integer;
     64function TForm_Settings.RegisterExtension(ext: String; reg: Boolean): Integer;
    6865var
    6966  ftr:     TFileTypeRegistration;
     
    7269begin
    7370  Result := -1;
    74   if ExtensionRegistered(ext, temps) then
    75   begin
    76     if temps <> 'ONI' + ext then
    77     begin
    78       warnmsg := ext + '-files are not registered to OUP but as "' +
    79         temps + '"-files.' + #13 + #10 + 'Do you really want to unregister' +
    80         ext + '-files?';
    81       if MessageBox(Self.Handle, PChar(warnmsg), PChar('Warning'), MB_YESNO) = ID_NO then
    82         Exit;
     71  ftr := TFileTypeRegistration.Create;
     72  if reg then
     73  begin
     74    if ExtensionRegistered(ext, temps) then
     75      if not ftr.UnregisterExtension(ext) then
     76        ShowMessage('Could not unregister ' + ext + '-files');
     77    if ftr.RegisterType(ext, 'ONI' + ext, 'ONI ' + ext + '-file', Application.EXEname + ',1') then
     78    begin
     79      ftr.AddHandler('open', '"' + Application.EXEname + '" ' + MidStr(
     80        ext, 2, Length(ext) - 1) + ' "%1"');
     81      ftr.SetDefaultHandler;
    8382    end;
    84     ftr := TFileTypeRegistration.Create;
    85     if ftr <> nil then
    86       try
    87         if not ftr.UnregisterExtension(ext) then
    88           ShowMessage('Could not unregister ' + ext + '-files')
    89         else
    90           Result := 2;
    91       finally
    92         ftr.Free;
    93       end;
    94   end
    95   else
    96   begin
    97     ftr := TFileTypeRegistration.Create;
    98     if ftr <> nil then
    99     begin
    100       try
    101         if ftr.RegisterType(ext, 'ONI' + ext, 'ONI ' + ext + '-file',
    102           Application.EXEname + ',1') then
    103         begin
    104           ftr.AddHandler('open', '"' + Application.EXEname + '" ' + MidStr(
    105             ext, 2, Length(ext) - 1) + ' "%1"');
    106           ftr.SetDefaultHandler;
    107           Result := 1;
    108         end;
    109       finally
    110         ftr.Free;
    111       end;
    112     end;
     83  end else begin
     84    if ExtensionRegistered(ext, temps) then
     85      if not ftr.UnregisterExtension(ext) then
     86        ShowMessage('Could not unregister ' + ext + '-files');
    11387  end;
     88  ftr.Free;
    11489end;
    11590
     
    126101
    127102procedure TForm_Settings.btn_okClick(Sender: TObject);
     103var
     104  temps: String;
    128105begin
    129106  AppSettings.FilenumbersAsHex := check_filesashex.Checked;
     
    135112  AppSettings.HideUnusedData := check_hideunused.Checked;
    136113
     114  if check_reg_dat.Checked then
     115  begin
     116    if ExtensionRegistered('.dat', temps) then
     117    begin
     118      if temps <> 'ONI.dat' then
     119        if MessageBox(Self.Handle, PChar('.dat-files already registered to "' +
     120              temps+'". Reregister?'), PChar('Reregister?'),
     121              MB_YESNO + MB_ICONQUESTION) = ID_YES then
     122          RegisterExtension('.dat', True);
     123    end else
     124      RegisterExtension('.dat', True);
     125  end else
     126    RegisterExtension('.dat', False);
     127
     128  if check_reg_oldb.Checked then
     129  begin
     130    if ExtensionRegistered('.oldb', temps) then
     131    begin
     132      if temps <> 'ONI.oldb' then
     133        if MessageBox(Self.Handle, PChar('.oldb-files already registered to "' +
     134              temps+'". Reregister?'), PChar('Reregister?'),
     135              MB_YESNO + MB_ICONQUESTION) = ID_YES then
     136          RegisterExtension('.oldb', True);
     137    end else
     138      RegisterExtension('.oldb', True);
     139  end else
     140    RegisterExtension('.oldb', False);
     141
     142  if check_reg_opf.Checked then
     143  begin
     144    if ExtensionRegistered('.opf', temps) then
     145    begin
     146      if temps <> 'ONI.opf' then
     147        if MessageBox(Self.Handle, PChar('.opf-files already registered to "' +
     148              temps+'". Reregister?'), PChar('Reregister?'),
     149              MB_YESNO + MB_ICONQUESTION) = ID_YES then
     150          RegisterExtension('.opf', True);
     151    end else
     152      RegisterExtension('.opf', True);
     153  end else
     154    RegisterExtension('.opf', False);
     155
    137156  Self.Close;
    138 end;
    139 
    140 
    141 
    142 
    143 procedure TForm_Settings.btn_register_datClick(Sender: TObject);
    144 begin
    145   case RegisterExtension('.dat') of
    146     2:
    147       btn_register_dat.Caption := 'Register .dat files with OUP';
    148     1:
    149       btn_register_dat.Caption := 'Unregister .dat files';
    150   end;
    151 end;
    152 
    153 
    154 
    155 
    156 procedure TForm_Settings.btn_register_oldbClick(Sender: TObject);
    157 begin
    158   case RegisterExtension('.oldb') of
    159     2:
    160       btn_register_oldb.Caption := 'Register .oldb files with OUP';
    161     1:
    162       btn_register_oldb.Caption := 'Unregister .oldb files';
    163   end;
    164 end;
    165 
    166 
    167 
    168 
    169 procedure TForm_Settings.btn_register_opfClick(Sender: TObject);
    170 begin
    171   case RegisterExtension('.opf') of
    172     2:
    173       btn_register_opf.Caption := 'Register .opf files with OUP';
    174     1:
    175       btn_register_opf.Caption := 'Unregister .opf files';
    176   end;
    177157end;
    178158
     
    197177begin
    198178  if ExtensionRegistered('.dat', temps) then
    199     btn_register_dat.Caption := 'Unregister .dat files'
     179    check_reg_dat.Checked := temps = 'ONI.dat'
    200180  else
    201     btn_register_dat.Caption := 'Register .dat files with OUP';
     181    check_reg_dat.Checked := False;
     182
    202183  if ExtensionRegistered('.oldb', temps) then
    203     btn_register_oldb.Caption := 'Unregister .oldb files'
     184    check_reg_oldb.Checked := temps = 'ONI.oldb'
    204185  else
    205     btn_register_oldb.Caption := 'Register .oldb files with OUP';
     186    check_reg_oldb.Checked := False;
     187
    206188  if ExtensionRegistered('.opf', temps) then
    207     btn_register_opf.Caption := 'Unregister .opf files'
     189    check_reg_opf.Checked := temps = 'ONI.opf'
    208190  else
    209     btn_register_opf.Caption := 'Register .opf files with OUP';
     191    check_reg_opf.Checked := False;
     192
    210193  check_filesashex.Checked := AppSettings.FilenumbersAsHex;
    211194  check_hideunused.Checked := AppSettings.HideUnusedData;
  • oup/current/Tools/Template.pas

    r51 r53  
    8484  i:    LongWord;
    8585  exts: TStringArray;
    86 f, c1,c2: Int64;
    87 time1,time2,time3: Double;
    88 begin
    89 QueryPerformanceFrequency(f);
    90 QueryPerformanceCounter(c1);
     86begin
    9187  combo_extension.Items.Clear;
    9288  combo_extension.Items.Add('_All files_ (' +
     
    10298    end else
    10399      combo_extension.Items.Add(exts[i]);
    104 QueryPerformanceCounter(c2);
    105 time1 := (c2 - c1) / f;
    106100  combo_extension.ItemIndex := 0;
    107101  combo_extensionClick(Self);
    108 QueryPerformanceCounter(c1);
    109 time2 := (c1 - c2) / f;
    110 ShowMessage(FloatToStr(time1) +#13+#10+ FloatToStr(time2));
    111102end;
    112103
Note: See TracChangeset for help on using the changeset viewer.