File: GUI_Preferences.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 (103 lines) | stat: -rw-r--r-- 3,256 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
/*  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, Preferences Dialog
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//---------------------------------------------------------------------------
#ifndef GUI_PreferencesH
#define GUI_PreferencesH
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
#include "wx/preferences.h"
#include <wx/panel.h>
#include <vector>
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
class wxChoice;
class wxComboBox;
class wxStaticText;
class GUI_Main;
//---------------------------------------------------------------------------

//***************************************************************************
// GUI_Preference_Panel_General
//***************************************************************************

class GUI_Preference_Panel_General : public wxPanel
{
public:
    GUI_Preference_Panel_General(wxWindow* Parent, GUI_Main* Main); 
    virtual bool TransferDataToWindow() override;
    virtual bool TransferDataFromWindow() override;

private:
    void UpdateSettingsIfNecessary();
    void ChangeDefaultView(wxCommandEvent&);
    void ChangeTextSize(wxCommandEvent&);

    GUI_Main* Main;
    wxStaticText* ViewsLabel;
    wxComboBox* ViewsComboBox;
    wxStaticText* SizesLabel;
    wxComboBox* SizesComboBox;
};

//***************************************************************************
// GUI_Preference_Panel_Advanced
//***************************************************************************

class GUI_Preference_Panel_Advanced : public wxPanel
{
public:
    GUI_Preference_Panel_Advanced(wxWindow* Parent, GUI_Main* Main);
    virtual bool TransferDataToWindow() override;
    virtual bool TransferDataFromWindow() override;

private:
    void UpdateSettingsIfNecessary();
    void ChangeCaptionsDisplayOption(wxCommandEvent&);

    GUI_Main* Main;
    wxStaticText* DisplayCaptionsLabel;
    wxComboBox* DisplayCaptionsComboBox;
};


//***************************************************************************
// GUI_Preferences_Page_General
//***************************************************************************

class GUI_Preferences_Page_General : public wxStockPreferencesPage
{
public:
    GUI_Preferences_Page_General(GUI_Main* Main);
    virtual wxWindow *CreateWindow(wxWindow* Parent) override;

private:
    GUI_Main* Main;
};

//***************************************************************************
// GUI_Preferences_Page_Advanced
//***************************************************************************

class GUI_Preferences_Page_Advanced : public wxStockPreferencesPage
{
public:
    GUI_Preferences_Page_Advanced(GUI_Main* Main);
    virtual wxWindow *CreateWindow(wxWindow* Parent) override;

private:
    GUI_Main* Main;
};

#endif