Debian Codegraph @

editor/WaterProceduralDialog.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_WATERPROCEDURALDIALOG_H__DAC35720_3108_11D2_9798_004095AA4E37__INCLUDED_)
20 #define AFX_WATERPROCEDURALDIALOG_H__DAC35720_3108_11D2_9798_004095AA4E37__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // WaterProceduralDialog.h : header file
26 //
27
28 #include "gr.h"
29 #include "gametexture.h"
30
31 /////////////////////////////////////////////////////////////////////////////
32 // CWaterProceduralDialog dialog
33
34 class CWaterProceduralDialog : public CDialog {
35 // Construction
36 public:
37 CWaterProceduralDialog(CWnd *pParent = NULL); // standard constructor
38
39 // Dialog Data
40 //{{AFX_DATA(CWaterProceduralDialog)
41 enum { IDD = IDD_WATER_PROCEDURAL };
42 CSliderCtrl m_light_slider;
43 CSliderCtrl m_thickness_slider;
44 CSliderCtrl m_size_slider;
45 CSliderCtrl m_height_slider;
46 CSliderCtrl m_frequency_slider;
47 //}}AFX_DATA
48
49 // Overrides
50 // ClassWizard generated virtual function overrides
51 //{{AFX_VIRTUAL(CWaterProceduralDialog)
52 public:
53 virtual BOOL DestroyWindow();
54
55 protected:
56 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
57 //}}AFX_VIRTUAL
58
59 // Implementation
60 protected:
61 // Generated message map functions
62 //{{AFX_MSG(CWaterProceduralDialog)
63 afx_msg void OnSelendokProceduralPulldown();
64 afx_msg void OnTimer(UINT nIDEvent);
65 virtual BOOL OnInitDialog();
66 afx_msg void OnClearProcedurals();
67 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
68 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
69 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
70 afx_msg void OnKillfocusProcEvalTimeEdit();
71 afx_msg void OnKillfocusProcOscTimeEdit();
72 afx_msg void OnKillfocusProcOscValueEdit();
73 afx_msg void OnCopyProcedural();
74 //}}AFX_MSG
75 DECLARE_MESSAGE_MAP()
76
77 private:
78 void UpdateDialog(void);
79 void UpdateProcView(void);
80 void HarvestValue(int whichbox, uint8_t *val);
81 void PrintValue(int, uint8_t);
82 static_proc_element *CreateElement(int, int);
83
84 private:
85 grHardwareSurface m_TextureSurf;
86 int m_window_bitmap;
87 int m_button_down;
88 int m_proc_type;
89 int m_save_x, m_save_y;
90 int16_t m_height;
91 uint8_t m_frequency;
92 uint8_t m_size;
93 };
94
95 //{{AFX_INSERT_LOCATION}}
96 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
97
98 #endif // !defined(AFX_WATERPROCEDURALDIALOG_H__DAC35720_3108_11D2_9798_004095AA4E37__INCLUDED_)