#ifndef _FILEPROPS_H
#define _FILEPROPS_H
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/treectrl.h>
#include <gpac/terminal.h>
class ODTreeData : public wxTreeItemData
{
public:
ODTreeData(GF_ObjectManager *odm) : wxTreeItemData(), m_pODMan(odm) {}
GF_ObjectManager *m_pODMan;
};
class wxOsmo4Frame;
class wxFileProps : public wxDialog
{
public:
wxFileProps(wxWindow *parent);
virtual ~wxFileProps();
private:
DECLARE_EVENT_TABLE()
wxOsmo4Frame *m_pApp;
wxTreeCtrl *m_pTreeView;
wxTextCtrl *m_pViewInfo;
wxComboBox *m_pViewSel;
wxButton *m_pViewWI, *m_pViewSG;
wxTimer *m_pTimer;
GF_ObjectManager *m_current_odm;
void RewriteODTree();
void SetGeneralInfo();
void SetStreamsInfo();
void SetDecoderInfo();
void SetNetworkInfo();
void WriteInlineTree(ODTreeData *pRoot);
void OnSetSelection(wxTreeEvent &event);
void OnSelectInfo(wxCommandEvent &event);
void OnTimer(wxTimerEvent &event);
void OnViewWorld(wxCommandEvent &event);
void OnViewSG(wxCommandEvent &event);
void SetInfo(GF_ObjectManager *odm);
};
#endif