home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d12345 / CHEMPLOT.ZIP / TPlot / Plotdefs.hpp < prev    next >
C/C++ Source or Header  |  2001-06-01  |  5KB  |  144 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'Plotdefs.pas' rev: 3.00
  6.  
  7. #ifndef PlotdefsHPP
  8. #define PlotdefsHPP
  9. #include <Windows.hpp>
  10. #include <Menus.hpp>
  11. #include <Classes.hpp>
  12. #include <SysInit.hpp>
  13. #include <System.hpp>
  14.  
  15. //-- user supplied -----------------------------------------------------------
  16.  
  17. namespace Plotdefs
  18. {
  19. //-- type declarations -------------------------------------------------------
  20. typedef Menus::TMenuItem* TMenuArray[128];
  21.  
  22. typedef TMenuArray *pMenuArray;
  23.  
  24. enum TPlotType { ptXY, ptError, ptMultiple, ptBubble, ptColumn, ptStack, ptNormStack, ptPie, ptPolar, 
  25.     ptContour, pt3DContour, pt3DWire };
  26.  
  27. enum TScreenJob { sjNone, sjDrag, sjRightDrag, sjHide, sjZoomIn, sjEditAxis, sjTouchNotePointer, sjMoveNotePointer, 
  28.     sjEditFont, sjEditPoint, sjEditSeries, sjFlashEdit, sjCopySeries, sjDisplace, sjCloneSeries, sjDeleteSeries, 
  29.     sjLinearize, sjZero, sjPosition, sjNearestPoint, sjAverage, sjContractSeries, sjContractAllSeries, 
  30.     sjSplineSeries, sjHighs, sjLows, sjMovingAverage, sjSmoothSeries, sjSortSeries, sjDifferentiate, sjIntegrate, 
  31.     sjIntegral, sjLineOfBestFit, sjDualLineBestFit1, sjDualLineBestFit2, sjSelection, sjDualSelection1, 
  32.     sjDualSelection2 };
  33.  
  34. enum TObjectType { soNone, soTitle, soLegend, soResult, soNote, soXAxis, soXAxisTitle, soXAxisLabel, 
  35.     soYAxis, soYAxisTitle, soYAxisLabel, soLeftBorder, soTopBorder, soRightBorder, soBottomBorder, soSeries 
  36.     };
  37.  
  38. enum TDisplayMode { dmNormal, dmNone, dmRun, dmHistory };
  39.  
  40. enum TContourDetail { cdLow, cdMedium, cdHigh, cdVHigh };
  41.  
  42. enum TGridType { gtNone, gtHorizontal, gtVertical, gtBoth };
  43.  
  44. enum TSymbol { syNone, syCircle, sySquare, syUpTriangle, syDownTriangle, syPlus, syCross, syStar, syDash, 
  45.     syVertDash, syLeftDash, syRightDash };
  46.  
  47. enum TMainMenus { mnuFile, mnuEdit, mnuView, mnuCalc };
  48.  
  49. typedef Set<TMainMenus, mnuFile, mnuCalc>  TMainOptions;
  50.  
  51. enum TFileMenus { mnuNew, mnuOpen, mnuOverlayDiv, mnuOverlay, mnuClearOverlays, mnuSaveDiv, mnuSave, 
  52.     mnuSaveAs, mnuSaveImage, mnuPrintDiv, mnuPrint };
  53.  
  54. typedef Set<TFileMenus, mnuNew, mnuPrint>  TFileOptions;
  55.  
  56. enum TEditMenus { mnuCopy, mnuCopyHTML, mnuCopySeries, mnuPaste, mnuDisplaceDiv, mnuDisplace, mnuResetDisplacement, 
  57.     mnuEditSeriesDiv, mnuNewSeries, mnuCloneSeries, mnuEditPoint, mnuEditData, mnuEditSeries, mnuDeleteSeries, 
  58.     mnuLinearize, mnuZero, mnuAxisDiv, mnuNewY2Axis, mnuEditAxis, mnuDeleteY2Axis, mnuEditFontDiv, mnuNewNote, 
  59.     mnuMoveNotePointer, mnuDeleteNote, mnuEditFont, mnuEditPropertiesDiv, mnuEditProperties };
  60.  
  61. typedef Set<TEditMenus, mnuCopy, mnuEditProperties>  TEditOptions;
  62.  
  63. enum TViewMenus { mnuHide, mnuShowAll, mnuDisplayModeDiv, mnuDisplayMode, mnuLegend, mnuZoomDiv, mnuSetAsNormal, 
  64.     mnuNormalView, mnuManualZoom, mnuZoomIn, mnuZoomOut };
  65.  
  66. typedef Set<TViewMenus, mnuHide, mnuZoomOut>  TViewOptions;
  67.  
  68. enum TCalcMenus { mnuPosition, mnuNearestPoint, mnuCalcAverageDiv, mnuCalcAverage, mnuCompressSeries, 
  69.     mnuCompressAllSeries, mnuContractSeries, mnuContractAllSeries, mnuCubicSplineSeries, mnuHighs, mnuMovingAverage, 
  70.     mnuSmoothSeries, mnuSortSeries, mnuCalculusDiv, mnuDifferentiate, mnuIntegrate, mnuIntegral, mnuLineOfBestFitDiv, 
  71.     mnuLineOfBestFit, mnuTwoRegionLineOfBestFit };
  72.  
  73. typedef Set<TCalcMenus, mnuPosition, mnuTwoRegionLineOfBestFit>  TCalcOptions;
  74.  
  75. enum TModeMenus { mnuNormal, mnuNone, mnuRun, mnuHistory };
  76.  
  77. enum TSaveOption { soAsText, soProperties };
  78.  
  79. typedef Set<TSaveOption, soAsText, soProperties>  TSaveOptions;
  80.  
  81. struct T3DPoint
  82. {
  83.     int x;
  84.     int y;
  85.     float Z;
  86.     tagPOINT ZShift;
  87. } ;
  88.  
  89. typedef tagPOINT TPoints[601];
  90.  
  91. typedef TPoints *pTPoints;
  92.  
  93. class DELPHICLASS TPopupOptions;
  94. class PASCALIMPLEMENTATION TPopupOptions : public Classes::TPersistent 
  95. {
  96.     typedef Classes::TPersistent inherited;
  97.     
  98. private:
  99.     TMainOptions FMenu;
  100.     TFileOptions FFile;
  101.     TEditOptions FEdit;
  102.     TViewOptions FView;
  103.     TCalcOptions FCalc;
  104.     
  105. protected:
  106.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  107.     
  108. public:
  109.     __fastcall TPopupOptions(void);
  110.     
  111. __published:
  112.     __property TMainOptions Menu = {read=FMenu, write=FMenu, nodefault};
  113.     __property TFileOptions File_ = {read=FFile, write=FFile, nodefault};
  114.     __property TEditOptions Edit = {read=FEdit, write=FEdit, nodefault};
  115.     __property TViewOptions View = {read=FView, write=FView, nodefault};
  116.     __property TCalcOptions Calc = {read=FCalc, write=FCalc, nodefault};
  117. public:
  118.     /* TPersistent.Destroy */ __fastcall virtual ~TPopupOptions(void) { }
  119.     
  120. };
  121.  
  122. //-- var, const, procedure ---------------------------------------------------
  123. #define TPLOT_VERSION (Byte)(200)
  124. #define FILE_FORMAT_VERSION (Byte)(200)
  125. #define MAX_FILE_VERSION (Byte)(200)
  126. #define TAG_BASE (Word)(1000)
  127. #define CAPTION_BASE (Word)(3000)
  128. #define HINT_BASE (Word)(4000)
  129. #define TWO_PI  (6.283185E+00)
  130. #define PI_ON_TWO  (1.570796E+00)
  131. #define THREE_PI_ON_TWO  (4.712389E+00)
  132. #define SMALL_FONT_SIZE (Byte)(8)
  133. #define MEDIUM_FONT_SIZE (Byte)(9)
  134. #define LARGE_FONT_SIZE (Byte)(14)
  135. extern PACKAGE System::ResourceString _sArial;
  136. #define Plotdefs_sArial System::LoadResourceString(&Plotdefs::_sArial)
  137.  
  138. }    /* namespace Plotdefs */
  139. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  140. using namespace Plotdefs;
  141. #endif
  142. //-- end unit ----------------------------------------------------------------
  143. #endif    // Plotdefs
  144.