1 //#**************************************************************
2 //# filename:             DialogProgressBar.h
3 //#
4 //# author:               Gerstmayr, Vetyukov
5 //#
6 //# generated:
7 //# description:
8 //# comments:
9 //#
10 //# Copyright (c) 2003-2013 Johannes Gerstmayr, Linz Center of Mechatronics GmbH, Austrian
11 //# Center of Competence in Mechatronics GmbH, Institute of Technical Mechanics at the
12 //# Johannes Kepler Universitaet Linz, Austria. All rights reserved.
13 //#
14 //# This file is part of HotInt.
15 //# HotInt is free software: you can redistribute it and/or modify it under the terms of
16 //# the HOTINT license. See folder 'licenses' for more details.
17 //#
18 //# bug reports are welcome!!!
19 //# WWW:		www.hotint.org
20 //# email:	bug_reports@hotint.org or support@hotint.org
21 //#***************************************************************************************
22 
23 
24 #pragma once
25 #include "resource.h"
26 #include "afxcmn.h"
27 #include "afxwin.h"
28 #include "mystring.h"
29 
30 // CDialogProgressBar-Dialogfeld
31 
32 class CDialogProgressBar : public CDialog
33 {
34 	DECLARE_DYNAMIC(CDialogProgressBar)
35 
36 public:
37 	CDialogProgressBar(CWnd* pParent = NULL);   // Standardkonstruktor
38 	virtual ~CDialogProgressBar();
39 
40 public:
41 	void Reset();
42 	void OnClose();
43 	void SetTotalTicks(int totalticks);
44 	void SetActualTicks(int actticke);
45 	void SetCaptionText(mystr& caption);
46 	void SetTextOver(mystr& over);
47 	void SetTextUnder(mystr& under);
48 
SetWCDI(WCDInterface * pWCDI_)49 	void SetWCDI(WCDInterface * pWCDI_) { pWCDI = pWCDI_; }
SetGLDrawWnd(CGLDrawWnd * pGLDrawWnd_)50 	void SetGLDrawWnd(CGLDrawWnd * pGLDrawWnd_) { pGLDrawWnd = pGLDrawWnd_; }
SetWCDDlg(CWCDriver3DDlg * adial)51 	void SetWCDDlg(CWCDriver3DDlg* adial) {WCDDlg = adial;}
52 
53 // Dialogfelddaten
54 	enum { IDD = IDD_DIALOG_PROGRESSBAR };
55 
56 protected:
57 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterst�tzung
58 
59 	DECLARE_MESSAGE_MAP()
60 
61 public:
62 	CProgressCtrl m_progress_control;
63 	CEdit m_textover_control;
64 	CEdit m_textunder_control;
65 
66 private:
67 	WCDInterface* pWCDI;
68 	CGLDrawWnd* pGLDrawWnd;
69 	CWCDriver3DDlg* WCDDlg;
70 };
71