1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
//---------------------------------------------------------------------------
#ifndef mapdlgH
#define mapdlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TMapAreaDialog : public TForm
{
__published:
TButton *BtnClose;
TButton *BtnCenter;
TButton *BtnSave;
TButton *BtnUpdate;
TPanel *Panel1;
TLabel *Label1;
TEdit *MapSize1;
TEdit *MapSize2;
TPanel *Panel2;
TEdit *ScaleX;
TUpDown *ScaleXUpDown;
TEdit *ScaleY;
TUpDown *ScaleYUpDown;
TEdit *Lat;
TUpDown *LatUpDown;
TEdit *Lon;
TUpDown *LonUpDown;
TLabel *Label5;
TLabel *Label6;
TCheckBox *ScaleEq;
TLabel *Label2;
void __fastcall FormShow(TObject *Sender);
void __fastcall ScaleXUpDownChangingEx(TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall LatUpDownChangingEx(TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall LonUpDownChangingEx(TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall BtnCloseClick(TObject *Sender);
void __fastcall BtnUpdateClick(TObject *Sender);
void __fastcall BtnSaveClick(TObject *Sender);
void __fastcall ScaleYUpDownChangingEx(TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall BtnCenterClick(TObject *Sender);
void __fastcall ScaleEqClick(TObject *Sender);
private:
void __fastcall UpdateMap(void);
void __fastcall UpdatePlot(void);
void __fastcall UpdateEnable(void);
public:
__fastcall TMapAreaDialog(TComponent* Owner);
void __fastcall UpdateField(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TMapAreaDialog *MapAreaDialog;
//---------------------------------------------------------------------------
#endif
|