summaryrefslogtreecommitdiffstats
path: root/Project/SyncMachineForm.h
blob: 518d16cefb118efdc85b8dab4872abf7efbb3497 (plain)
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
#ifndef SYNCMACHINEFORM_H
#define SYNCMACHINEFORM_H

#include "ElementForm.h"

class GeneratorStabForm;
class SyncGenerator;
class SyncMotor;

class SyncMachineForm : public SyncMachineFormBase
{
   public:
    SyncMachineForm(wxWindow* parent, SyncGenerator* syncGenerator);
    SyncMachineForm(wxWindow* parent, SyncMotor* syncMotor);
    virtual ~SyncMachineForm();

   protected:
    virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); };
    virtual void OnCheckMaxReactive(wxCommandEvent& event);
    virtual void OnCheckMinReactive(wxCommandEvent& event);
    virtual void OnOKButtonClick(wxCommandEvent& event);
    virtual void OnStabilityButtonClick(wxCommandEvent& event);

    virtual bool ValidateData();
    virtual void ReplaceStaticTextLabelChar(wxStaticText* staticText, wchar_t newChar);

    SyncGenerator* m_syncGenerator = NULL;
    SyncMotor* m_syncMotor = NULL;
    wxWindow* m_parent = NULL;
};
#endif  // SYNCMACHINEFORM_H