File: GUI_Main.h

package info (click to toggle)
mediainfo 26.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,912 kB
  • sloc: cpp: 19,090; objc: 3,102; xml: 1,428; sh: 1,328; python: 263; makefile: 212
file content (176 lines) | stat: -rw-r--r-- 7,085 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*  Copyright (c) MediaArea.net SARL. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license that can
 *  be found in the License.html file in the root of the source tree.
 */

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// WxWidgets GUI for MediaInfo
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//---------------------------------------------------------------------------
#ifndef GUI_MainH
#define GUI_MainH
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
#include "GUI/Common/GUI_Main_Common_Core.h"
#ifdef WX_PREFERENCES
    #include "wx/preferences.h"
#endif
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources)
#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXX11__)
    //#include "mondrian.xpm"
#endif
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
#ifdef MEDIAINFO_DLL_RUNTIME
    #include "MediaInfoDLL/MediaInfoDLL.h"
    #define MediaInfoNameSpace MediaInfoDLL
#elif defined MEDIAINFO_DLL_STATIC
    #include "MediaInfoDLL/MediaInfoDLL_Static.h"
    #define MediaInfoNameSpace MediaInfoDLL
#else
    #include "MediaInfo/MediaInfoList.h"
    #define MediaInfoNameSpace MediaInfoLib
#endif
using namespace MediaInfoNameSpace;
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
class Core;
class FileDrop;
class GUI_Main_Common_Core;
//---------------------------------------------------------------------------

//***************************************************************************
// GUI_Main
//***************************************************************************

class GUI_Main : public wxFrame
{
public:
    GUI_Main (int argc, MediaInfoNameSpace::Char** argv, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_STYLE);
    ~GUI_Main ();

    //Menu - List
    wxMenuBar*  Menu;
    wxMenu*     Menu_File;
    wxMenu*     Menu_File_Open;
    wxMenuItem* Menu_File_Open_Files;
    wxMenuItem* Menu_File_Open_Directory;
#ifdef WX_PREFERENCES
    wxMenuItem* Menu_File_Preferences;
#endif
    wxMenuItem* Menu_File_Quit;
    wxMenu*     Menu_View;
    wxMenuItem* Menu_View_Easy;
    wxMenuItem* Menu_View_Sheet;
    wxMenuItem* Menu_View_Tree;
    wxMenuItem* Menu_View_Text;
    wxMenuItem* Menu_View_HTML;
    wxMenuItem* Menu_View_XML;
    wxMenuItem* Menu_View_JSON;
    wxMenuItem* Menu_View_MPEG7_Strict;
    wxMenuItem* Menu_View_MPEG7_Relaxed;
    wxMenuItem* Menu_View_MPEG7_Extended;
    wxMenuItem* Menu_View_PBCore_1_2;
    wxMenuItem* Menu_View_PBCore_2_0;
    wxMenuItem* Menu_View_EBUCore_1_5;
    wxMenuItem* Menu_View_EBUCore_1_6;
    wxMenuItem* Menu_View_EBUCore_1_8_ps;
    wxMenuItem* Menu_View_EBUCore_1_8_sp;
    wxMenuItem* Menu_View_EBUCore_1_8_ps_json;
    wxMenuItem* Menu_View_EBUCore_1_8_sp_json;
    wxMenuItem* Menu_View_FIMS_1_1;
    wxMenuItem* Menu_View_FIMS_1_2;
    wxMenuItem* Menu_View_reVTMD;
    wxMenuItem* Menu_View_NISO_Z39_87;
    wxMenu*     Menu_Options;
    wxMenuItem* Menu_Options_Full_Parse;
    wxMenu*     Menu_Debug;
    wxMenuItem* Menu_Debug_Complete;
    wxMenuItem* Menu_Debug_Details;
    wxMenu*     Menu_Debug_Demux;
    wxMenuItem* Menu_Debug_Demux_None;
    wxMenuItem* Menu_Debug_Demux_Elementary;
    wxMenuItem* Menu_Debug_Demux_All;
    wxMenu*     Menu_Help;
    wxMenuItem* Menu_Help_About;
    wxMenuItem* Menu_Help_Info_Codecs;
    wxMenuItem* Menu_Help_Info_Formats;
    wxMenuItem* Menu_Help_Info_Parameters;

    //Menu - Actions
    void Menu_Create();
    void OnMenu_File_Open_Files         (wxCommandEvent &event);
    void OnMenu_File_Open_Directory     (wxCommandEvent &event);
#ifdef WX_PREFERENCES
    void OnMenu_File_Preferences        (wxCommandEvent &event);
#endif
    void OnMenu_File_Quit               (wxCommandEvent &event);
    void OnMenu_View_Easy               (wxCommandEvent &event);
    void OnMenu_View_Sheet              (wxCommandEvent &event);
    void OnMenu_View_Tree               (wxCommandEvent &event);
    void OnMenu_View_Text               (wxCommandEvent &event);
    void OnMenu_View_HTML               (wxCommandEvent &event);
    void OnMenu_View_XML                (wxCommandEvent &event);
    void OnMenu_View_JSON               (wxCommandEvent &event);
    void OnMenu_View_MPEG7_Strict       (wxCommandEvent &event);
    void OnMenu_View_MPEG7_Relaxed      (wxCommandEvent &event);
    void OnMenu_View_MPEG7_Extended     (wxCommandEvent &event);
    void OnMenu_View_PBCore_1_2         (wxCommandEvent &event);
    void OnMenu_View_PBCore_2_0         (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_5        (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_6        (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_8_ps     (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_8_sp     (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_8_ps_json   (wxCommandEvent &event);
    void OnMenu_View_EBUCore_1_8_sp_json   (wxCommandEvent &event);
    void OnMenu_View_FIMS_1_1           (wxCommandEvent &event);
    void OnMenu_View_FIMS_1_2           (wxCommandEvent &event);
    void OnMenu_View_reVTMD             (wxCommandEvent &event);
    void OnMenu_View_NISO_Z39_87        (wxCommandEvent &event);
    void OnMenu_Options_Full_Parse      (wxCommandEvent &event);
    void OnMenu_Debug_Complete          (wxCommandEvent &event);
    void OnMenu_Debug_Details           (wxCommandEvent &event);
    void OnMenu_Debug_Demux_None        (wxCommandEvent &event);
    void OnMenu_Debug_Demux_Elementary  (wxCommandEvent &event);
    void OnMenu_Debug_Demux_All         (wxCommandEvent &event);
    void OnMenu_Help_About              (wxCommandEvent &event);
    void OnMenu_Help_Info_Codecs        (wxCommandEvent &event);
    void OnMenu_Help_Info_Formats       (wxCommandEvent &event);
    void OnMenu_Help_Info_Parameters    (wxCommandEvent &event);
    void OnSize                         (wxSizeEvent    &event);

    //ToolBar - List
    wxToolBar*  ToolBar;

    //ToolBar - Actions
    void ToolBar_Create();

    //Helpers
    void View_Refresh();

private:
    //Non-GUI Elements
    Core* C;

    //GUI
    GUI_Main_Common_Core* View;

    #ifdef WX_PREFERENCES
        wxPreferencesEditor* PreferencesEditor;
    #endif

    //wxWidgets
    DECLARE_EVENT_TABLE() //Any class wishing to process wxWindows events must use this macro
};

#endif