-
Notifications
You must be signed in to change notification settings - Fork 0
/
signals.h
55 lines (48 loc) · 1.97 KB
/
signals.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
//---------------------------------------------------------------------------
#ifndef signalsH
#define signalsH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Grids.hpp>
#include "mp.h"
#include "record_view.h"
#include "record_view_string_grid_container.h"
#include "tree_view_observer.h"
//disable warning about all interface should be inherted from IUnknown
#pragma option push -w-8130
//---------------------------------------------------------------------------
class TFormSignals :
public TForm,
public ITreeViewEvents
{
__published: // IDE-managed Components
TStringGrid *StringGridSignals;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall FormDestroy(TObject *Sender);
private:
sysObserver::IObserver *httpDataObserver;
sysObserver::IObserver *timeRangeDataObserver;
sysObserver::IObserver *mnemoshemaDataHistoryObserver;
void __fastcall CreateHTTPDataObserver(TMnemoshemaDataManager &mnemoshemaDataManager);
void __fastcall CreateTimeRangeDataObserver(TMnemoshemaDataManager &mnemoshemaDataManager);
void __fastcall CreateMnemoshemaDataHistoryObserver(TMnemoshemaDataManager &mnemoshemaDataManager);
public:
//record and string grid signals row
std::map<const TSensor *, std::list<IMnemoshemaView *> *> mshViews;
public:
__fastcall TFormSignals(TComponent* Owner);
void __fastcall CreateRecordViews();
void __fastcall SaveLastUserSettings();
void __fastcall RestoreLastUserSettings();
void __fastcall SetMnemoshemaDataManager(TMnemoshemaDataManager &mnemoshemaDataManager);
virtual void OnTreeViewNodeChange(TTreeNode *node);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormSignals *FormSignals;
//---------------------------------------------------------------------------
#pragma option pop
#endif