1 #ifndef LEVELS__myWnd_EditBackground_H
2 #define LEVELS__myWnd_EditBackground_H
4 #include <wx/filepicker.h>
5 #include <wx/listctrl.h>
7 #include "common__modalsFrames.h"
8 #include "common__ob_controls.h"
9 #include "common__wxFrameImage.h"
10 #include "common__object_stage.h"
13 //****************************************************
14 class Panel_SceneView
;
15 //****************************************************
17 class myWnd_EditBackground
: public wxDialog
20 myWnd_EditBackground( wxWindow
* _parent
22 , ob_StageDeclaration
* _stage_declaration
23 , ob_StagesSet
* _stage_set
26 ~myWnd_EditBackground();
29 ob_StageDeclaration
* stage_declaration
;
30 ob_StagesSet
* stage_set
;
32 prObFileChooserCtrl
* ctrl_path
;
33 wxTextCtrl
*txtCtrl_Xratio
,*txtCtrl_Zratio
34 , *txtCtrl_Xpos
, *txtCtrl_Zpos
35 , *txtCtrl_Xspace
,*txtCtrl_Zspace
36 , *txtCtrl_Xrepeat
,*txtCtrl_Zrepeat
;
37 wxCheckBox
*chkCtrl_transparency
;
38 wxComboBox
*comboCtrl_alpha
;
40 wxListBox
* listCtrl_bg
;
41 Panel_SceneView
* sceneView
;
43 void Zero_Layer_Vals();
44 void Update_Layer_Vals();
45 void Update_Layers_View();
49 ob_BG_Layer
** oLayers
;
50 size_t oMap_OldNew_Layers__size
;
51 ob_BG_Layer
** oMap_OldNew_Layers
;
53 bool b_reverted_direction
;
55 bool b_not_update_vals
; // Set to say not update vals of the current layer
59 void Check_Param_Change();
64 void Evt_OK( wxCommandEvent
& evt_menu
);
65 void Evt_Cancel( wxCommandEvent
& evt_menu
);
67 void Evt_bgParamFocusOut( wxFocusEvent
& dummy
);
68 void Evt_SelectedChange( wxCommandEvent
& evt_menu
);
69 void Evt_SelectedDblCick( wxMouseEvent
& evt
);
70 void Evt_MoveLayerUp( wxCommandEvent
& evt_menu
);
71 void Evt_MoveLayerDown( wxCommandEvent
& evt_menu
);
72 void Evt_NewLayer( wxCommandEvent
& evt_menu
);
73 void Evt_DeleteLayer( wxCommandEvent
& evt_menu
);
75 void Evt_bgParamChange( wxCommandEvent
& evt_menu
);
77 void EvtActivate( wxActivateEvent
& evt
);
78 void EvtClose( wxCloseEvent
& evt
);
79 void EvtResize( wxSizeEvent
& evt
);
87 #endif //LEVELS__myWnd_EditBackground_H