home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / QUERYFRM.H < prev    next >
C/C++ Source or Header  |  1997-01-16  |  2KB  |  67 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++ Builder
  3. //Copyright (c) 1987 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef QueryFrmH
  7. #define QueryFrmH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\ExtCtrls.hpp>
  14. #include <vcl\IniFiles.hpp>
  15. #include "ResltFrm.h"
  16. #include "SaveQAs.h"
  17. #include <vcl\ComCtrls.hpp>
  18. //---------------------------------------------------------------------------
  19. class TAdhocForm : public TForm
  20. {
  21. __published:    // IDE-managed Components
  22.     TLabel *Label1;
  23.     TLabel *Label2;
  24.     TLabel *Label3;
  25.     TLabel *Label4;
  26.     TLabel *Label5;
  27.     TBevel *Bevel1;
  28.     TComboBox *AliasCombo;
  29.     TEdit *NameEdit;
  30.     TEdit *PasswordEdit;
  31.     TButton *ExecuteBtn;
  32.     TButton *CloseBtn;
  33.     TComboBox *SavedQueryCombo;
  34.     TButton *SaveBtn;
  35.     TButton *SaveAsBtn;
  36.     TButton *NewBtn;
  37.     TRichEdit *QueryEdit;
  38.     void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  39.     void __fastcall FormDestroy(TObject *Sender);
  40.     void __fastcall FormCreate(TObject *Sender);
  41.     void __fastcall ExecuteBtnClick(TObject *Sender);
  42.     void __fastcall NewBtnClick(TObject *Sender);
  43.     void __fastcall SaveBtnClick(TObject *Sender);
  44.     void __fastcall SaveAsBtnClick(TObject *Sender);
  45.     void __fastcall CloseBtnClick(TObject *Sender);
  46.     void __fastcall SavedQueryComboChange(TObject *Sender);
  47. private:        // User declarations
  48.     AnsiString QueryName, OldAlias;
  49.     TIniFile* SavedQueries;
  50.     bool Unnamed;
  51.     bool __fastcall IsModified(void);
  52.     bool __fastcall CheckModified(void);
  53.     void __fastcall Unmodify(void);
  54.     void __fastcall ReadQuery(void);
  55.     void __fastcall SaveQuery(void);
  56.     void __fastcall SaveQueryAs(void);
  57.     void __fastcall CreateInitialIni();
  58.     AnsiString __fastcall UniqueName();
  59.  
  60. public:         // User declarations
  61.     virtual __fastcall TAdhocForm(TComponent* Owner);
  62. };
  63. //---------------------------------------------------------------------------
  64. extern TAdhocForm *AdhocForm;
  65. //---------------------------------------------------------------------------
  66. #endif
  67.