fix compile against newer giflib
[rofl0r-obeditor.git] / src / entity__wListAnims.h
bloba4b1e76f313b605e23cef87f4c53f9ac6f492442
1 /*
2 * wListAnims.h
4 * Created on: 6 nov. 2008
5 * Author: pat
6 */
8 #ifndef WLISTANIMS_H_
9 #define WLISTANIMS_H_
11 #include "common__tools.h"
13 //****************************************************
14 //****************************************************
16 class myListBox : public wxListBox
18 public:
19 myListBox(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("listBox"));
20 void OnCharPress(wxKeyEvent& event);
21 virtual void OnSelectionChange( wxCommandEvent& event );
22 virtual void EvtGetFocus(wxFocusEvent&);
23 private:
24 DECLARE_EVENT_TABLE()
28 //****************************************************
29 //****************************************************
31 class wListAnims : public myListBox
33 public:
34 wListAnims(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("listBox"));
35 void AssociateToListFrame( wxWindow* _wList_frames);
36 virtual ~wListAnims();
38 bool pSetSelection( const wxString& s );
40 virtual void EvtGetFocus(wxFocusEvent& event );
41 virtual void EvtCharPress(wxKeyEvent& event);
43 void Refresh_List(bool b_keep_current_selection = true);
44 void RefreshSelection();
45 void ReloadLastSessionAnim();
46 virtual void OnSelectionChange( wxCommandEvent& event );
47 virtual void ProcessSelectionChange();
49 wxWindow* wList_frames;
51 private:
52 bool loading;
53 wxString last_session_anim;
55 // map between indice of wxListBox Order and indice of ObFile Anim order
56 int map_ind_numAnim[200];
57 DECLARE_EVENT_TABLE()
61 //****************************************************
63 class wListAnims_Editable : public wListAnims
65 public:
66 wListAnims_Editable(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("listBox"));
67 virtual ~wListAnims_Editable();
69 virtual void EvtCharPress(wxKeyEvent& event);
70 void EvtDeleteAnim(wxCommandEvent& event );
71 void EvtCopyAnim(wxCommandEvent& event );
72 void EvtNewAnim(wxCommandEvent& event );
73 void EvtRenameAnim(wxCommandEvent& event );
74 void EvtContextMenu( wxContextMenuEvent& event );
76 private:
77 wxMenu *popMenu;
78 DECLARE_EVENT_TABLE()
81 #endif