fix compile against newer giflib
[rofl0r-obeditor.git] / src / levels__wndEditFrontPanels.h
blob6b81496b45d6150b390d03cede9cfb02d38fc7b7
1 #ifndef LEVELS__myWnd_EditFrontPanels_H
2 #define LEVELS__myWnd_EditFrontPanels_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 wnd_EditFrontPanels: public wxDialog
19 public:
20 wnd_EditFrontPanels( wxWindow* _parent
21 , ob_stage* _stage
22 , ob_StageDeclaration* _stage_declaration
23 , ob_StagesSet* _stage_set
26 void Init();
27 ~wnd_EditFrontPanels();
29 ob_stage* stage;
30 ob_StageDeclaration* stage_declaration;
31 ob_StagesSet* stage_set;
33 prObFileChooserCtrl* ctrl_path;
35 wxListBox* listCtrl_panels;
36 Panel_SceneView* sceneView;
38 void Zero_Panel_Vals();
39 void Update_Panel_Vals();
40 void Update_Panels_View();
42 protected:
43 size_t nb_panels;
44 ob_front_panel** oPanels;
45 size_t oMap_OldNew_Panels__size;
46 ob_front_panel**oMap_OldNew_Panels;
48 bool b_reverted_direction;
50 bool b_not_update_vals; // Set to say not update vals of the current layer
51 bool b_updating_vals;
52 bool b_initialised;
54 void Check_Param_Change();
56 public:
57 bool b_changed;
58 protected:
59 void Evt_OK( wxCommandEvent& evt_menu );
60 void Evt_Cancel( wxCommandEvent& evt_menu );
62 void Evt_ParamFocusOut( wxFocusEvent& dummy );
63 void Evt_SelectedChange( wxCommandEvent& evt_menu );
64 void Evt_MoveUp( wxCommandEvent& evt_menu );
65 void Evt_MoveDown( wxCommandEvent& evt_menu );
66 void Evt_New( wxCommandEvent& evt_menu );
67 void Evt_Delete( wxCommandEvent& evt_menu );
69 void Evt_ParamChange( wxCommandEvent& evt_menu );
71 void EvtActivate( wxActivateEvent& evt );
72 void EvtClose( wxCloseEvent& evt );
73 void EvtResize( wxSizeEvent& evt );
75 DECLARE_EVENT_TABLE()
80 #endif //LEVELS__myWnd_EditFrontPanels_H