Debian Codegraph @

editor/StatusDlg.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #if !defined(AFX_STATUSDLG_H__7321FFC1_FE93_11D0_8901_0020A90CB6F2__INCLUDED_)
20 #define AFX_STATUSDLG_H__7321FFC1_FE93_11D0_8901_0020A90CB6F2__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // StatusDlg.h : header file
26 //
27
28 #ifndef _STATUS_DLG_H_
29 #define _STATUS_DLG_H_
30
31 #include "fix.h"
32
33 /////////////////////////////////////////////////////////////////////////////
34 // CStatusDlg dialog
35
36 class CStatusDlg : public CDialog {
37 // Construction
38 public:
39 CStatusDlg(CWnd *pParent = NULL); // standard constructor
40 int Step();
41 void Init(int min, int max, int delta);
42 void Text(char *s);
43 void SetTo(int set);
44 // Dialog Data
45 //{{AFX_DATA(CStatusDlg)
46 enum { IDD = IDD_STATUSDLG };
47 // NOTE: the ClassWizard will add data members here
48 //}}AFX_DATA
49
50 // Overrides
51 // ClassWizard generated virtual function overrides
52 //{{AFX_VIRTUAL(CStatusDlg)
53 protected:
54 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
55 //}}AFX_VIRTUAL
56
57 // Implementation
58 protected:
59 // Generated message map functions
60 //{{AFX_MSG(CStatusDlg)
61 // NOTE: the ClassWizard will add member functions here
62 //}}AFX_MSG
63 DECLARE_MESSAGE_MAP()
64 };
65
66 class CProgress {
67 public:
68 bool InitProgress(fix min, fix max, int32_t iterations, CWnd *parent = NULL);
69 bool InitProgress(CWnd *parent = NULL);
70 void DestroyProgress();
71 bool IncreaseProgress();
72 void SetProgressText(char *string);
73 void SetProgressPercentage(int percent);
74 void SetProgressPercentage(float percent);
75
76 private:
77 int m_Max, m_Min;
78 CStatusDlg *m_StatusDlg;
79 };
80
81 //{{AFX_INSERT_LOCATION}}
82 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
83
84 #endif // !defined(AFX_STATUSDLG_H__7321FFC1_FE93_11D0_8901_0020A90CB6F2__INCLUDED_)
85
86 #endif