4 * Created on: 6 nov. 2008
11 #include "common__tools.h"
13 //****************************************************
14 //****************************************************
16 class myListBox
: public wxListBox
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
&);
28 //****************************************************
29 //****************************************************
31 class wListAnims
: public myListBox
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
;
53 wxString last_session_anim
;
55 // map between indice of wxListBox Order and indice of ObFile Anim order
56 int map_ind_numAnim
[200];
61 //****************************************************
63 class wListAnims_Editable
: public wListAnims
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
);