TreeView.cpp
上传用户:szb0815
上传日期:2007-06-13
资源大小:338k
文件大小:4k
源码类别:

生物技术

开发平台:

C++ Builder

  1. /*
  2. Software and source code Copyright (C) 1998-2000 Stanford University
  3. Written by Michael Eisen (eisen@genome.stanford.edu)
  4. This software is copyright under the following conditions:
  5. Permission to use, copy, and modify this software and its documentation
  6. is hereby granted to all academic and not-for-profit institutions
  7. without fee, provided that the above copyright notice and this permission
  8. notice appear in all copies of the software and related documentation.
  9. Permission to distribute the software or modified or extended versions
  10. thereof on a not-for-profit basis is explicitly granted, under the above
  11. conditions. However, the right to use this software in conjunction with
  12. for profit activities, and the right to distribute the software or modified or
  13. extended versions thereof for profit are *NOT* granted except by prior
  14. arrangement and written consent of the copyright holders.
  15. Use of this source code constitutes an agreement not to criticize, in any
  16. way, the code-writing style of the author, including any statements regarding
  17. the extent of documentation and comments present.
  18. The software is provided "AS-IS" and without warranty of ank kind, express,
  19. implied or otherwise, including without limitation, any warranty of
  20. merchantability or fitness for a particular purpose.
  21. In no event shall Stanford University or the authors be liable for any special,
  22. incudental, indirect or consequential damages of any kind, or any damages
  23. whatsoever resulting from loss of use, data or profits, whether or not
  24. advised of the possibility of damage, and on any theory of liability,
  25. arising out of or in connection with the use or performance of this software.
  26. This code was written using Borland C++ Builder 4 (Inprise Inc., www.inprise.com)
  27. and may be subject to certain additional restrictions as a result.
  28. */
  29. //---------------------------------------------------------------------------
  30. #include <vcl.h>
  31. #pragma hdrstop
  32. USERES("TreeView.res");
  33. USEFORM("Find.cpp", FindForm);
  34. USEUNIT("URLLabel.cpp");
  35. USEUNIT("TreeViewClasses.cpp");
  36. USEFORM("Options.cpp", OptionsForm);
  37. USEFORM("SavePSAll.cpp", SavePSAllForm);
  38. USEFORM("Splash.cpp", SplashForm);
  39. USEFORM("TreeViewMain.cpp", TreeViewMainForm);
  40. USEFORM("treeviewabout.cpp", AboutForm);
  41. USEFORM("LoadingForm.cpp", Loading);
  42. USEFORM("treeviewhelp.cpp", HelpForm);
  43. USEFORM("SaveNodeForm.cpp", SaveNodeDataForm);
  44. USEFORM("URLMemo.cpp", URLMemoForm);
  45. //---------------------------------------------------------------------------
  46. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  47. {
  48.         try
  49.         {
  50.                  Application->Initialize();
  51.                  Application->Title = "Tree View";
  52.                  Application->CreateForm(__classid(TTreeViewMainForm), &TreeViewMainForm);
  53.                  Application->CreateForm(__classid(TFindForm), &FindForm);
  54.                  Application->CreateForm(__classid(TOptionsForm), &OptionsForm);
  55.                  Application->CreateForm(__classid(TSavePSAllForm), &SavePSAllForm);
  56.                  Application->CreateForm(__classid(TAboutForm), &AboutForm);
  57.                  Application->CreateForm(__classid(TLoading), &Loading);
  58.                  Application->CreateForm(__classid(THelpForm), &HelpForm);
  59.                  Application->CreateForm(__classid(TSaveNodeDataForm), &SaveNodeDataForm);
  60.                  Application->CreateForm(__classid(TURLMemoForm), &URLMemoForm);
  61.                  Application->Run();
  62.         }
  63.         catch (Exception &exception)
  64.         {
  65.                  Application->ShowException(&exception);
  66.         }
  67.         return 0;
  68. }
  69. //---------------------------------------------------------------------------