readme.txt

来自「MSComm控件资料,Visual Basic 6.0(以下简称VB) 是一种功」· 文本 代码 · 共 74 行

TXT
74
字号
ClassNavigator Overview

One thing I've found disconcerting in COMCodebook development is trying to trace through a 
class hierarchy for programmatic classes. Trying to remember the prg where the parent 
classes or children classes are stored and then having to find the class definition in 
the prg is annoying. Where a class resides is not important. What is important is the 
relationship the class has with other classes and the attributes of the class. I miss my 
class browser! Enter, ClassNavigator. ClassNavigator is a utility which allows you to 
select multiple programmatic class files and builds a class hierarchy of those files in a 
treeview. You can easily see class relationships, drill down into child classes, and see 
class attributes such as properties and methods as well as being able to tell if a property 
or method is public, protected or hidden. The file list is persistent so the next time you 
run the utility the same files you had when you closed the utility will automatically load. 
The utility is modeless so you can keep it open at the same time you modify your 
programmatic classes and easily jump from class to class.
 

Using Class Navigator

When you load ClassNavigator you will be presented with a form with three tabs; a class tab, a 
files tab, and an options tab. The class tab has a treeview window which will display class 
information and a refresh button to rebuild the class hierarchy. This should be blank the first 
time you load the utility. The files tab contains a list of files that are currently being used 
to build the class hierarchy on the class tab as well as some buttons to add and remove 
programmatic class files. Click the add button and select a prg with class definitions in it, 
for example COMCodebook's csession.prg found in the common\libs directory. Once you select the 
prg the file will be parsed and the class hierarchy built. If you now go back to the class tab 
you should see all the class definitions, class properties and class methods that are in 
csession.prg. There are special icons to indicate whether a class is OLEPUBLIC and whether 
classes and properties are public, protected and hidden. Try double-clicking on a class. The prg 
the class resides in should open. You may notice that there are only root classes, no subclasses. 
This is because there are no subclasses found in csession.prg. Go back to the files tab and add 
isession.prg found in common\ilibs and then look at the class hierarchy again. If you drill into 
some of the classes you should now see other I-layer classes beneath them. You can add as many 
files to ClassNavigator as you have memory for. The third tab, options, allows you to modify what 
information is displayed in the class hierarchy. You can toggle whether to display class 
properties, class methods and whether to display all classes as root classes or in a hierarchy. 
The options tab also contains the class hierarchy legend.

Release Notes Version 1.1
=========================
1. Fixed problem with class hierarchy not being rebuilt correctly when removing a prg with more
   than one class inside.

2. Moved code for the add/remove files from the buttons to the form methods where they belong.

3. Added version properties to the CProgrammaticClassParser and CFileRepository classes.

4. Added option to not rebuild the class hierarchy when files are added or removed. 

5. Changed methods/properties of CProgrammaticClassParser and CFileRepository to protected where appropriate.

6. Added showing default values for properties.

7. Added new info node under class node displaying file and parent class info.

8. Added "About" tab with disclaimer and other info.

9. Added ability to double-click on a class or a method and be taken directly to the line of code.



Release Notes Version 1.2
=========================
1. Added an option to turn on/off the always on top property.

2. Added dynamic parent node changing! So, if you add a prg with a child class and then a prg with a 
parent class the child will be correctly assigned to the new parent without having to rebuild the
whole hierarchy.

3. Added some error handling to capture if a file is being added that is already opened.

4. Added option to change the font, font size and style of the treeview font.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?