-
Notifications
You must be signed in to change notification settings - Fork 0
/
Smoothing.h
67 lines (64 loc) · 2.5 KB
/
Smoothing.h
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
64
65
66
67
//---------------------------------------------------------------------------
#ifndef SmoothingH
#define SmoothingH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "RzPanel.hpp"
#include "RzRadGrp.hpp"
#include <ExtCtrls.hpp>
#include "RzButton.hpp"
#include "RzChkLst.hpp"
#include "RzLstBox.hpp"
#include "RzSpnEdt.hpp"
#include <Buttons.hpp>
#include "RzRadChk.hpp"
//---------------------------------------------------------------------------
#include <vector>
#include <map>
//---------------------------------------------------------------------------
using namespace std;
//---------------------------------------------------------------------------
class TSmoothingForm : public TForm
{
__published: // IDE-managed Components
TRzBitBtn *RzBitBtnOK;
TRzBitBtn *RzBitBtnClose;
TRzRadioGroup *RzRadioGroupGauss;
TRzRadioButton *Gauss3Orders;
TRzRadioButton *Gauss5Orders;
TRzRadioGroup *RzRadioGroupMedium;
TRzRadioButton *Medium3Orders;
TRzRadioButton *Medium5Orders;
TRzRadioGroup *RzRadioGroupAverage;
TRzRadioButton *Average3Orders;
TRzRadioButton *Average5Orders;
TRzBitBtn *RzBitBtnReset;
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall RzBitBtnCloseClick(TObject *Sender);
void __fastcall RzBitBtnOKClick(TObject *Sender);
void __fastcall RzBitBtnResetClick(TObject *Sender);
public:
enum SmmothChoose{
Gauss3OrdersChoosed = 10,
Gauss5OrdersChoosed = 11,
Medium3OrdersChoosed = 20,
Medium5OrdersChoosed = 21,
Average3OrdersChoosed = 30,
Average5OrdersChoosed = 31,
};
private: // User declarations
vector<TRzRadioButton*> RadioButtonList;
map<TRzRadioButton*,SmmothChoose> RadioButtonChooseMap;
void __fastcall startToSmooth(SmmothChoose choose);
public: // User declarations
__fastcall TSmoothingForm(TComponent* Owner);
__fastcall ~TSmoothingForm();
void __fastcall RadioButtonChecked(TObject *Sender); //define the Checked action for each RadioButtons
};
//---------------------------------------------------------------------------
extern PACKAGE TSmoothingForm *SmoothingForm;
//---------------------------------------------------------------------------
#endif