Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
brushoptions.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
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_BRUSHOPTIONS_H__6B56E20C_582E_4030_A251_879097C8853C__INCLUDED_)
20#define AFX_BRUSHOPTIONS_H__6B56E20C_582E_4030_A251_879097C8853C__INCLUDED_
21
22#if _MSC_VER > 1000
23#pragma once
24#endif // _MSC_VER > 1000
25// brushoptions.h : header file
26//
27
28#include "WBPopupSlider.h"
29#include "OptionsPanel.h"
32
34{
35// Construction
36public:
43
44 BrushOptions(CWnd* pParent = NULL); // standard constructor
45
46// Dialog Data
47 //{{AFX_DATA(BrushOptions)
49 // NOTE: the ClassWizard will add data members here
50 //}}AFX_DATA
51
52
53// Overrides
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(BrushOptions)
56 protected:
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
58 virtual void OnOK(){return;};
59 virtual void OnCancel(){return;};
60 //}}AFX_VIRTUAL
61
62// Implementation
63protected:
64
65 // Generated message map functions
66 //{{AFX_MSG(BrushOptions)
67 virtual BOOL OnInitDialog();
68 afx_msg void OnChangeFeatherEdit();
69 afx_msg void OnChangeSizeEdit();
70 afx_msg void OnChangeHeightEdit();
71 //}}AFX_MSG
72 DECLARE_MESSAGE_MAP()
73
74protected:
79
84
85public:
86 static void setWidth(Int width);
87 static void setFeather(Int feather);
88 static void setHeight(Int height);
89
90public:
91
92 virtual void GetPopSliderInfo(const long sliderID, long *pMin, long *pMax, long *pLineSize, long *pInitial);
93 virtual void PopSliderChanged(const long sliderID, long theVal);
94 virtual void PopSliderFinished(const long sliderID, long theVal);
95
96};
97
98//{{AFX_INSERT_LOCATION}}
99// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
100
101#endif // !defined(AFX_BRUSHOPTIONS_H__6B56E20C_582E_4030_A251_879097C8853C__INCLUDED_)
#define NULL
Definition BaseType.h:92
bool Bool
Definition BaseType.h:132
#define IDD_BRUSH_OPTIONS
Definition resource.h:41
#define BOOL
Definition Wnd_File.h:57
virtual void DoDataExchange(CDataExchange *pDX)
Windows default stuff.
static Int m_currentFeather
current feather width in the ui.
virtual void GetPopSliderInfo(const long sliderID, long *pMin, long *pMax, long *pLineSize, long *pInitial)
static void setFeather(Int feather)
Sets the feather value in the dialog.
static void setHeight(Int height)
afx_msg void OnChangeSizeEdit()
Handles width edit ui messages.
static BrushOptions * m_staticThis
Reference to the floating panel so SetWidth and SetFeather can be static.
BrushOptions(CWnd *pParent=NULL)
BrushOptions dialog trivial construstor - Create does the real work.
WBPopupSliderButton m_brushWidthPopup
afx_msg void OnChangeHeightEdit()
Handles width edit ui messages.
static void setWidth(Int width)
Sets the brush width value in the dialog.
virtual void PopSliderChanged(const long sliderID, long theVal)
afx_msg void OnChangeFeatherEdit()
Handles feather edit ui messages.
virtual void OnCancel()
Modeless dialogs don't OK, so eat this for modeless.
virtual void PopSliderFinished(const long sliderID, long theVal)
static Int m_currentWidth
current brush width in the ui.
WBPopupSliderButton m_brushHeightPopup
static Int m_currentHeight
virtual void OnOK()
Bool m_updating
true if the ui is updating itself.
WBPopupSliderButton m_brushFeatherPopup
virtual BOOL OnInitDialog()
Modeless dialogs don't close on ESC, so eat this for modeless.
COptionsPanel(Int dlgid=0, CWnd *pParent=NULL)