fix compile against newer giflib
[rofl0r-obeditor.git] / src / levels__wndEditBackground.h
blob8bcd4e3d07271b45d64f4dc1dd71d6dcca69ff03
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
19 public:
20 myWnd_EditBackground( wxWindow* _parent
21 , ob_stage* _stage
22 , ob_StageDeclaration* _stage_declaration
23 , ob_StagesSet* _stage_set
25 void Init();
26 ~myWnd_EditBackground();
28 ob_stage* stage;
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();
47 protected:
48 size_t nb_layers;
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
56 bool b_updating_vals;
57 bool b_initialised;
59 void Check_Param_Change();
60 public:
61 bool b_changed;
63 protected:
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 );
81 DECLARE_EVENT_TABLE()
87 #endif //LEVELS__myWnd_EditBackground_H