Лабораторные работы: пятнашки и редактор фигур
This commit is contained in:
commit
a5dbf9d3a2
1 changed files with 2579 additions and 0 deletions
45
BoundsUnit.h
Normal file
45
BoundsUnit.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Окно "Положение и размер"
|
||||
#ifndef BoundsUnitH
|
||||
#define BoundsUnitH
|
||||
|
||||
#include <System.Classes.hpp>
|
||||
#include <Vcl.Controls.hpp>
|
||||
#include <Vcl.StdCtrls.hpp>
|
||||
#include <Vcl.Forms.hpp>
|
||||
#include <Vcl.ComCtrls.hpp>
|
||||
#include <Vcl.ExtCtrls.hpp>
|
||||
#include "BaseFigure.h"
|
||||
|
||||
class TfrmBounds : public TForm
|
||||
{
|
||||
__published:
|
||||
TPanel *pnlTop;
|
||||
TLabel *lblFigure;
|
||||
TGroupBox *gbPos;
|
||||
TGroupBox *gbSize;
|
||||
TLabel *lblX;
|
||||
TLabel *lblY;
|
||||
TLabel *lblW;
|
||||
TLabel *lblH;
|
||||
TEdit *edtX;
|
||||
TEdit *edtY;
|
||||
TEdit *edtW;
|
||||
TEdit *edtH;
|
||||
TUpDown *udX;
|
||||
TUpDown *udY;
|
||||
TUpDown *udW;
|
||||
TUpDown *udH;
|
||||
TButton *btnOk;
|
||||
TButton *btnCancel;
|
||||
void __fastcall btnOkClick(TObject *Sender);
|
||||
private:
|
||||
void Put(TEdit *e, TUpDown *ud, int v);
|
||||
bool Valid(TEdit *e, String what, int a, int b);
|
||||
public:
|
||||
__fastcall TfrmBounds(TComponent* Owner);
|
||||
bool Edit(TFigure *f);
|
||||
};
|
||||
|
||||
extern PACKAGE TfrmBounds *frmBounds;
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue