home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 5 / Windows 6-Pak (InfoMagic) (Disc 5) (1999).ISO / C&C++Tools / sbparser.exe / cppb / ParseDemo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-26  |  3.0 KB  |  113 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef ParseDemoH
  3. #define ParseDemoH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>         
  6. #include <vcl\Controls.hpp>        
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\ExtCtrls.hpp>
  10. #include <vcl\Dialogs.hpp>
  11.  
  12. #include <astsbpar.h> //Link necessary header
  13. #include <ComCtrls.hpp>
  14. //---------------------------------------------------------------------------
  15. class TFParser : public TForm
  16. {
  17. __published:
  18.     TPanel *PBottom;
  19.     TButton *BExit;
  20.     TPanel *PLeft;
  21.     TPanel *PTop;
  22.     TPanel *PRight;
  23.     TGroupBox *GBVariables;
  24.     TLabel *LxVariable;
  25.     TLabel *LyVariable;
  26.     TLabel *LzVariable;
  27.     TLabel *LuVariable;
  28.     TLabel *LvVariable;
  29.     TLabel *LwVariable;
  30.     TEdit *ExValue;
  31.     TEdit *EyValue;
  32.     TEdit *EzValue;
  33.     TEdit *EuValue;
  34.     TEdit *EwValue;
  35.     TEdit *EvValue;
  36.     TPanel *PClient;
  37.     TGroupBox *GBFunction;
  38.     TMemo *MFunction;
  39.     TPanel *PFTop;
  40.     TPanel *PFBottom;
  41.     TPanel *PFRight;
  42.     TRadioButton *RBDEC;
  43.     TRadioButton *RBBIN;
  44.     TRadioButton *RBHEX;
  45.     TRadioButton *RBOCT;
  46.     TLabel *LBase;
  47.     TPanel *PILeft;
  48.     TLabel *LFunction;
  49.     TPanel *PBottom2;
  50.     TPanel *PLeftOut;
  51.     TPanel *PRightOut;
  52.     TLabel *LBaseOut;
  53.     TRadioButton *RBDECOut;
  54.     TRadioButton *RBBINOut;
  55.     TRadioButton *RBHEXOut;
  56.     TRadioButton *RBOCTOut;
  57.     TPanel *PResult;
  58.     TEdit *EResult;
  59.     TPanel *PTopRight;
  60.     TLabel *LAngle;
  61.     TRadioButton *RBDEG;
  62.     TRadioButton *RBRAD;
  63.     TRadioButton *RBGRA;
  64.     TPanel *IPanel;
  65.     TImage *IPars;
  66.     TLabel *LtheTime;
  67.     TLabel *Lsec;
  68.     TButton *BResult;
  69.     TButton *BOpen;
  70.     TButton *BSave;
  71.     TOpenDialog *DOpen;
  72.     TSaveDialog *DSave;
  73.     TButton *BHelp;
  74.     TButton *BSpeedTest;
  75.     TLabel *LcTime;
  76.     TAnimate *AsbGlobe;
  77.     TButton *BPlotTest;
  78.     void __fastcall BResultClick(TObject *Sender);
  79.     void __fastcall FormDestroy(TObject *Sender);
  80.     void __fastcall FormShow(TObject *Sender);
  81.  
  82.     void __fastcall BExitClick(TObject *Sender);
  83.  
  84.     void __fastcall BSaveClick(TObject *Sender);
  85.     void __fastcall BOpenClick(TObject *Sender);
  86.  
  87.     void __fastcall BHelpClick(TObject *Sender);
  88.  
  89.     void __fastcall MFunctionChange(TObject *Sender);
  90.     void __fastcall FormCreate(TObject *Sender);
  91.     void __fastcall BSpeedTestClick(TObject *Sender);
  92.     
  93.  
  94.  
  95.     
  96.     
  97.     void __fastcall BPlotTestClick(TObject *Sender);
  98. private:
  99. protected:
  100.        HANDLE hParser;  //Handle of the sbParser-Object
  101. public:
  102.     void GetBaseAndAngUnit(TForm* pForm, int* BaseIn, int* BaseOut, int* AngularUnit);
  103.     bool GetVarValues(TForm* pForm, int BaseIn, long double varValues[]);
  104.     bool Calculate(TForm* pForm, char* Function, long double varValues[],
  105.         int BaseIn, int BaseOut, int AngularUnit, long double* Result);
  106. public:
  107.     __fastcall TFParser(TComponent* Owner);
  108. };
  109. //---------------------------------------------------------------------------
  110. extern TFParser *FParser;
  111. //---------------------------------------------------------------------------
  112. #endif
  113.