Добавил:
nyan
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:4 курс - Трояновский / ПИУС / ПЦР / ПЦР-2005 / Drawer / FuncEditor
.h//---------------------------------------------------------------------------
#ifndef FuncEditorH
#define FuncEditorH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <vector>
#include "DSeries2.h"
//---------------------------------------------------------------------------
using namespace std;
class TFuncEditorForm : public TForm
{
__published: // IDE-managed Components
TScrollBar *ScrollBar1;
TEdit *Edit1;
TScrollBar *ScrollBar2;
TEdit *Edit2;
TScrollBar *ScrollBar3;
TEdit *Edit3;
TScrollBar *ScrollBar4;
TEdit *Edit4;
TScrollBar *ScrollBar5;
TEdit *Edit5;
TScrollBar *ScrollBar6;
TEdit *Edit6;
TScrollBar *ScrollBar7;
TEdit *Edit7;
TScrollBar *ScrollBar8;
TEdit *Edit8;
TScrollBar *ScrollBar9;
TEdit *Edit9;
TScrollBar *ScrollBar10;
TEdit *Edit10;
TScrollBar *Range;
TLabel *Label1;
TEdit *ElemCount;
TPaintBox *PaintBox;
TLabel *Label2;
TEdit *Scale;
TButton *Button1;
TButton *Button2;
TShape *Shape1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall RangeChange(TObject *Sender);
void __fastcall ScrollBar1Change(TObject *Sender);
void __fastcall Edit1Exit(TObject *Sender);
void __fastcall ElemCountExit(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall Button2Click(TObject *Sender);
private: // User declarations
TScrollBar *ScrollBars[10];
TEdit *Edits[10];
TDSeries2 Series;
void Sync();
public: // User declarations
__fastcall TFuncEditorForm(TComponent* Owner);
void SetData(const vector<double> &data){ Series.SetData(data); }
void SetCaption(AnsiString caption){ Caption = caption; }
void SetScale(int nScale){ Series.SetScale(nScale); }
void SetType(TDSeries2::SeriesType type){ Series.SetType(type); }
const vector<double>& GetData(){ return Series.GetData(); }
};
//---------------------------------------------------------------------------
extern PACKAGE TFuncEditorForm *FuncEditorForm;
//---------------------------------------------------------------------------
#endif
Соседние файлы в папке Drawer