//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include "dograce.h" // Provides Dograce Class #include "dogclass.h" #include #include // Provides Dogclass //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TEdit *Edit1; TOpenDialog *OpenDialog1; TLabel *Label2; TLabel *Label3; TLabel *Label4; TLabel *Label5; TLabel *Label6; TLabel *Label7; TLabel *Label8; TLabel *Label9; TLabel *Label10; TLabel *Label11; TLabel *Label12; TLabel *Label13; TLabel *Label14; TLabel *Label15; TLabel *Label16; TLabel *Label17; TLabel *Label18; TLabel *Label19; TLabel *Label20; TLabel *Label21; TLabel *Label22; TLabel *Label23; TLabel *Label24; TLabel *Label25; TLabel *Label26; TLabel *Label27; TMainMenu *MainMenu1; TMenuItem *File1; TMenuItem *Open1; TMenuItem *Exit1; TMenuItem *N1; TMenuItem *Help1; TMenuItem *About1; TButton *Button3; TLabel *Label1; TLabel *Label29; TLabel *Label30; TLabel *Label31; TLabel *Label32; TLabel *Label33; TLabel *Label34; TLabel *Label35; TLabel *Label36; TLabel *Label37; TLabel *Label38; TLabel *Label39; TLabel *Label40; TLabel *Label41; TLabel *Label42; TLabel *Label43; TLabel *Label44; TLabel *Label45; TLabel *Label46; TLabel *Label47; TLabel *Label48; TLabel *Label49; TLabel *Label50; TLabel *Label51; TCheckBox *RunPrefBox; TCheckBox *ChargeBox; TCheckBox *TimeBox; TCheckBox *FrontBox; TCheckBox *BackBox; TLabel *Label52; TLabel *Label53; TLabel *Label54; TLabel *Label55; TLabel *Label56; TLabel *Label57; TLabel *Label58; TLabel *Label59; TScrollBar *ScrollBar1; TMenuItem *Races1; TMenuItem *Options1; TLabel *Label28; TLabel *Label60; TLabel *Label61; TLabel *Label62; TLabel *Label63; TLabel *Label64; TLabel *Label65; TLabel *Label66; TCheckBox *CheckBox1; TImage *Image1; TImage *Image2; TImage *Image3; TImage *Image4; TImage *Image5; TImage *Image6; TImage *Image7; TImage *Image8; TImage *Image9; TImage *Image10; TImage *Image11; TImage *Image12; TImage *Image13; TImage *Image14; TImage *Image15; TImage *Image16; TImage *Image17; TImage *Image18; TImage *Image19; TImage *Image20; TImage *Image21; TImage *Image22; TImage *Image23; TImage *Image24; TImage *Image25; TImage *Image26; TImage *Image27; TImage *Image28; TImage *Image29; TImage *Image30; TImage *Image31; TImage *Image32; TButton *Button1; TLabel *Label67; TLabel *Label68; TLabel *Label69; TLabel *Label70; TLabel *Label71; TLabel *Label72; TLabel *Label73; TLabel *Label74; TCheckBox *CheckBox2; void __fastcall Exit1Click(TObject *Sender); void __fastcall Open1Click(TObject *Sender); void __fastcall About1Click(TObject *Sender); void __fastcall Button3Click(TObject *Sender); void __fastcall BackBoxClick(TObject *Sender); void __fastcall FrontBoxClick(TObject *Sender); void __fastcall RunPrefBoxClick(TObject *Sender); void __fastcall ScrollBar1Change(TObject *Sender); void __fastcall Options1Click(TObject *Sender); void __fastcall ChargeBoxClick(TObject *Sender); void __fastcall Button1Click(TObject *Sender); public: // User declarations __fastcall TForm1(TComponent* Owner); int max; private: // User declarations void start(void); void show(int racenum); void ordered_insert(int data[ ], int n, int entry); int getindex(int value, int data[ ]); int getindexL(int value, int data[ ]); FILE *ins; // Input file stream containing a dog race int dognum, score[8]; int currace; char *names[8]; char inout[8]; char style[8]; float speed[8]; float close[8]; char form[8]; AnsiString grade[8]; Dograce *dograce[20]; friend class Dograce; friend class Dogclass; }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif