summaryrefslogtreecommitdiff
path: root/Bus/Horloge/HorlogeDlg.h
blob: 93cb915da8f1874a4531cb36de6a3b1c11ca1af3 (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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// HorlogeDlg.h : header file
//

#if !defined(AFX_HORLOGEDLG_H__8AB6D6CD_4D9E_450D_B42C_E5A6F72FCA32__INCLUDED_)
#define AFX_HORLOGEDLG_H__8AB6D6CD_4D9E_450D_B42C_E5A6F72FCA32__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Ivy.h"
#include "afxcmn.h"
/////////////////////////////////////////////////////////////////////////////
// CHorlogeDlg dialog

class CHorlogeDlg : public CDialog, public IvyApplicationCallback
{
// Construction
public:
	CHorlogeDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CHorlogeDlg)
	enum { IDD = IDD_HORLOGE_DIALOG };
	CDateTimeCtrl	m_setTime;
	CListBox	m_applist;
	CDigistring	m_Speed;
	CDigistring	m_Time;
	CString	m_busnumber;
	BOOL	m_big_speed;
	CString	m_filename;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHorlogeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	Ivy *bus;
	double rate;
	SYSTEMTIME start_time;
	SYSTEMTIME current_time;
	void IvyClockEvent( IvyApplication *app, int argc, const char **argv );
	void IvyRejeuReady( IvyApplication *app, int argc, const char **argv );
	void IvyFileReadEvent( IvyApplication *app, int argc, const char **argv );
	void OnApplicationConnected( IvyApplication *app );
	void OnApplicationDisconnected( IvyApplication *app );
	
	// Generated message map functions
	//{{AFX_MSG(CHorlogeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnIvystart();
	afx_msg void OnPause();
	afx_msg void OnStart();
	afx_msg void OnDatetimechangeSettime(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBackward();
	afx_msg void OnForward();
	afx_msg void OnBack5();
	afx_msg void OnBack2();
	afx_msg void OnBack1();
	afx_msg void OnForw1();
	afx_msg void OnForw2();
	afx_msg void OnForw5();
	afx_msg void OnFile();
	afx_msg void OnNormalSpeed();
	afx_msg void OnDblclkApplist();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CProgressCtrl file_progress;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HORLOGEDLG_H__8AB6D6CD_4D9E_450D_B42C_E5A6F72FCA32__INCLUDED_)