Open source remastering of the Freespace 2 engine
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
12 #ifndef _BG_BITMAP_DLG_H
13 #define _BG_BITMAP_DLG_H
16 // bg_bitmap_dlg dialog
18 class bg_bitmap_dlg : public CDialog
19 {
20 // Construction
21 public:
22  void update_data(int update = 1);
23  void create();
25  // sun data functions
26  void sun_data_init();
27  void sun_data_close();
28  void sun_data_save_current();
30  // bitmap data functions
31  void bitmap_data_init();
32  void bitmap_data_close();
35  void get_data_spinner(NM_UPDOWN* pUD, int id, int *var, int min, int max);
36  void get_data_int(int id, int *var, int min, int max);
37  void get_data_float(int id, float *var, float max, float min);
39  afx_msg void OnClose();
41  bg_bitmap_dlg(CWnd* pParent = NULL); // standard constructor
43 // Dialog Data
44  //{{AFX_DATA(bg_bitmap_dlg)
45  enum { IDD = IDD_BG_BITMAP };
46  CSliderCtrl m_amb_blue;
47  CSliderCtrl m_amb_green;
48  CSliderCtrl m_amb_red;
49  CString m_neb_intensity;
52  int m_bank;
53  int m_heading;
54  int m_pitch;
55  CSliderCtrl m_slider;
59  int m_poof_0;
60  int m_poof_1;
61  int m_poof_2;
62  int m_poof_3;
63  int m_poof_4;
64  int m_poof_5;
66  CString m_storm_name;
67  CString s_name;
68  int s_pitch;
69  int s_bank;
70  int s_heading;
71  float s_scale;
72  int s_index;
73  CString b_name;
74  int b_pitch;
75  int b_bank;
76  int b_heading;
77  float b_scale_x;
78  float b_scale_y;
79  int b_div_x;
80  int b_div_y;
81  int b_index;
88  CString m_skybox_model;
89  CString m_envmap;
95  //}}AFX_DATA
97 // Overrides
98  // ClassWizard generated virtual function overrides
99  //{{AFX_VIRTUAL(bg_bitmap_dlg)
100  protected:
101  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
102  //}}AFX_VIRTUAL
104 // Implementation
105 protected:
106  // clear and build the nebula filename list appropriately
107  void build_nebfile_list();
109  int get_active_background();
110  int get_swap_background();
111  void reinitialize_lists();
113  void OnOrientationChange();
115  // Generated message map functions
116  //{{AFX_MSG(bg_bitmap_dlg)
117  afx_msg void OnCancel();
118  afx_msg void OnOK();
119  afx_msg void OnSelchangeNebcolor();
120  afx_msg void OnSelchangeNebpattern();
121  afx_msg void OnFullNeb();
122  afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
123  afx_msg void OnSunChange();
124  afx_msg void OnAddSun();
125  afx_msg void OnDelSun();
126  afx_msg void OnSunDropdownChange();
127  afx_msg void OnBitmapChange();
128  afx_msg void OnAddBitmap();
129  afx_msg void OnDelBitmap();
130  afx_msg void OnBitmapDropdownChange();
131  afx_msg void OnDeltaposSbitmapPSpin(NMHDR* pNMHDR, LRESULT* pResult);
132  afx_msg void OnDeltaposSbitmapBSpin(NMHDR* pNMHDR, LRESULT* pResult);
133  afx_msg void OnDeltaposSbitmapHSpin(NMHDR* pNMHDR, LRESULT* pResult);
134  afx_msg void OnKillfocusSbitmapScaleX();
135  afx_msg void OnKillfocusSbitmapScaleY();
136  afx_msg void OnKillfocusSbitmapDivX();
137  afx_msg void OnKillfocusSbitmapDivY();
138  afx_msg void OnKillfocusSbitmapP();
139  afx_msg void OnKillfocusSbitmapB();
140  afx_msg void OnKillfocusSbitmapH();
141  afx_msg void OnDeltaposSun1PSpin(NMHDR* pNMHDR, LRESULT* pResult);
142  afx_msg void OnDeltaposSun1HSpin(NMHDR* pNMHDR, LRESULT* pResult);
143  afx_msg void OnDeltaposSun1BSpin(NMHDR* pNMHDR, LRESULT* pResult);
144  afx_msg void OnKillfocusSun1P();
145  afx_msg void OnKillfocusSun1H();
146  afx_msg void OnKillfocusSun1B();
147  afx_msg void OnKillfocusSun1Scale();
148  afx_msg void OnImportBackground();
149  afx_msg void OnSwapBackground();
150  afx_msg void OnBackgroundDropdownChange();
151  afx_msg void OnSkyboxBrowse();
152  afx_msg void OnDeltaposSkyboxPSpin(NMHDR* pNMHDR, LRESULT* pResult);
153  afx_msg void OnDeltaposSkyboxBSpin(NMHDR* pNMHDR, LRESULT* pResult);
154  afx_msg void OnDeltaposSkyboxHSpin(NMHDR* pNMHDR, LRESULT* pResult);
155  afx_msg void OnKillfocusSkyboxP();
156  afx_msg void OnKillfocusSkyboxB();
157  afx_msg void OnKillfocusSkyboxH();
158  afx_msg void OnEnvmapBrowse();
159  //}}AFX_MSG
162 private:
163 };
165 #endif
CString b_name
Definition: bgbitmapdlg.h:73
CString s_name
Definition: bgbitmapdlg.h:67
virtual void DoDataExchange(CDataExchange *pDX)
Definition: bgbitmapdlg.cpp:81
afx_msg void OnClose()
CString m_neb_intensity
Definition: bgbitmapdlg.h:49
afx_msg void OnKillfocusSun1H()
CString m_skybox_model
Definition: bgbitmapdlg.h:88
afx_msg void OnKillfocusSun1Scale()
void reinitialize_lists()
afx_msg void OnKillfocusSkyboxB()
afx_msg void OnKillfocusSbitmapDivY()
afx_msg void OnDeltaposSkyboxPSpin(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeltaposSbitmapPSpin(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnKillfocusSkyboxP()
int m_skybox_pitch
Definition: bgbitmapdlg.h:90
afx_msg void OnAddBitmap()
void get_data_spinner(NM_UPDOWN *pUD, int id, int *var, int min, int max)
void update_data(int update=1)
BOOL m_toggle_trails
Definition: bgbitmapdlg.h:65
afx_msg void OnSwapBackground()
afx_msg void OnCancel()
afx_msg void OnKillfocusSbitmapB()
afx_msg void OnImportBackground()
afx_msg void OnDeltaposSun1PSpin(NMHDR *pNMHDR, LRESULT *pResult)
CString m_storm_name
Definition: bgbitmapdlg.h:66
afx_msg void OnBackgroundDropdownChange()
unsigned int UINT
Definition: config.h:82
float b_scale_y
Definition: bgbitmapdlg.h:78
afx_msg void OnKillfocusSun1B()
void sun_data_save_current()
void OnOrientationChange()
afx_msg void OnBitmapDropdownChange()
afx_msg void OnFullNeb()
CSliderCtrl m_slider
Definition: bgbitmapdlg.h:55
afx_msg void OnAddSun()
int m_skybox_heading
Definition: bgbitmapdlg.h:92
afx_msg void OnKillfocusSbitmapDivX()
afx_msg void OnKillfocusSbitmapH()
afx_msg void OnSkyboxBrowse()
int get_active_background()
CSliderCtrl m_amb_red
Definition: bgbitmapdlg.h:48
afx_msg void OnDeltaposSbitmapBSpin(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnKillfocusSbitmapScaleY()
int m_nebula_color
Definition: bgbitmapdlg.h:50
int get_swap_background()
afx_msg void OnDeltaposSun1BSpin(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
float m_neb_far_multi
Definition: bgbitmapdlg.h:94
afx_msg void OnSunDropdownChange()
void bitmap_data_init()
afx_msg void OnKillfocusSun1P()
afx_msg void OnDelSun()
void bitmap_data_close()
int BOOL
Definition: config.h:80
afx_msg void OnSelchangeNebcolor()
afx_msg void OnKillfocusSbitmapP()
afx_msg void OnEnvmapBrowse()
afx_msg void OnKillfocusSbitmapScaleX()
afx_msg void OnKillfocusSkyboxH()
int m_nebula_index
Definition: bgbitmapdlg.h:51
afx_msg void OnDeltaposSun1HSpin(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeltaposSbitmapHSpin(NMHDR *pNMHDR, LRESULT *pResult)
Definition: config.h:100
void sun_data_init()
afx_msg void OnDelBitmap()
afx_msg void OnSelchangeNebpattern()
Definition: resource.h:60
float m_neb_near_multi
Definition: bgbitmapdlg.h:93
afx_msg void OnOK()
afx_msg void OnDeltaposSkyboxBSpin(NMHDR *pNMHDR, LRESULT *pResult)
bg_bitmap_dlg(CWnd *pParent=NULL)
Definition: bgbitmapdlg.cpp:36
void sun_data_close()
CString m_envmap
Definition: bgbitmapdlg.h:89
void get_data_float(int id, float *var, float max, float min)
void get_data_int(int id, int *var, int min, int max)
CSliderCtrl m_amb_blue
Definition: bgbitmapdlg.h:46
CSliderCtrl m_amb_green
Definition: bgbitmapdlg.h:47
afx_msg void OnDeltaposSkyboxHSpin(NMHDR *pNMHDR, LRESULT *pResult)
int m_neb2_texture
Definition: bgbitmapdlg.h:56
void bitmap_data_save_current()
void build_nebfile_list()
afx_msg void OnBitmapChange()
float b_scale_x
Definition: bgbitmapdlg.h:77
afx_msg void OnSunChange()