home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / Intelligent classes 1.0 / Intelligent classes < prev   
Encoding:
Text File  |  1994-11-30  |  4.1 KB  |  55 lines  |  [TEXT/ttxt]

  1. Intelligent classes
  2. © 1993 Quipus, by Mårten Sörliden
  3.  
  4. This is a small class library adjusting a few of the classes in the Think Class Library 1.1. These class makes the CDecorator, the CPanorama, the CScrollPane, and the CWindow a little more "intelligent". They cooperate to make the default behaviour of windows containing scroll panes and panoramas nicer. You can use each class on its own but for best result you should use the classes together. 
  5.  
  6. CIntelligentDecorator
  7.  
  8. You should override MakeDecorator() in your application class to use CIntelligentDecorator. You must only use this class if you use CIntelligentWindow. The CIntelligentDecorator will give new CIntelligentWindows a unique number in a way where old numbers are reused. The window will also be zoomed to its default size.
  9.  
  10. CIntelligentPanorama
  11.  
  12. You should make your own subclass of CIntelligentPanorama and put it into the CIntelligentScrollPane (or the regular CScrollPane) when you build your window. The CIntelligentPanorama use an auto scroll feature to make sure the panorama is visible when the size is changed. 
  13. An old version of the SetBounds method has been part of the class CScrollorama by Jamie R. McCarthy (ftp.brown.edu /pub/tcl). The new version of the method will also work when the upper left corner isn't (0, 0).
  14.  
  15. CIntelligentScrollPane
  16.  
  17. You should use CIntelligentScrollPane when you build your window. CIntelligentScrollPane will determine the preferred size of the frame, which is used by the CIntelligentWindow. The CIntelligentWindow will also be informed to update the standard zoom state when the maximum value of the scrollbars are changed.
  18.  
  19. CIntelligentWindow
  20.  
  21. The CIntelligentWindow makes the window zoom to the size that will show the entire panorama. This is done in collaboration with CIntelligentScrollPane. A unique number is used by the class as part of the default name of the window.
  22.  
  23. Installation
  24.  
  25. Put the folder "Intelligent classes 1.0" in your "THINK C 5.0 Folder" beside "THINK Class Library 1.1".
  26.  
  27. NodeViewer
  28.  
  29. The only application using the Intelligent classes today is NodeViewer. NodeViewer also use a class library called the Tree Structure Class Library.
  30.  
  31. NodeViewer is the first application using the Tree Structure Class Library. The Tree Structure Class Library is also an extension to the THINK Class Library. The main idea of the Tree Structure Class Library is to implement a general way to handle information. The information in a document is structured in a tree structure of nodes and each node handle a dynamic number of subnodes.
  32.  
  33. The main purpose of NodeViewer has been to test and evolve the class library. The second goal has been to make a general browser able to open any document created by applications using the Tree Structure Class Library. NodeViewer is also a tool which visualize the features of the Tree Structure Class Library. It will give you an idea of how to use the class library in a real application.
  34.  
  35. You can receive the NodeViewer application and documentation for free. The Tree Structure Class Library and the source code of NodeViewer is charged a fee of $20.
  36.  
  37. General
  38.  
  39. This class library can be both distributed and used freely as long as this document is kept with it.
  40.  
  41. Please contact me regarding questions and error reports about the Intelligent classes, NodeViewer and the Tree Structure Class Library.
  42.  
  43. Address
  44.  
  45. Quipus
  46. Mårten Sörliden
  47. Djurgårdsgatan 21A
  48. S- 582 29 Linköping
  49. Sweden
  50.  
  51. AppleLink SW1340
  52. Internet SW1340@AppleLink.Apple.com
  53.  
  54. Quipu, sometimes spelled QUIPO, an Incan accounting apparatus consisting of a long rope from which hung 48 secondary cords and various tertiary cords attached to the secondary ones. Knots were made in the cords to represent units, tens, and hundreds; and, in imperial accounting, the cords were differently coloured to designate the different concerns of government - such as tribute, lands, economic productivity, ceremonies, and matters relating to war and peace. The quipus were created and maintained as historical records and were kept not only by high officials at the capital of Cuzco - judges, commanders, and important heads of extended families - but also by regional commanders and village headman.
  55. Encyclopœdia Britannica