summaryrefslogtreecommitdiff
path: root/rbutil/install_dialogs.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/install_dialogs.h')
-rw-r--r--rbutil/install_dialogs.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/rbutil/install_dialogs.h b/rbutil/install_dialogs.h
index 8b3defef1d..87c557a26f 100644
--- a/rbutil/install_dialogs.h
+++ b/rbutil/install_dialogs.h
@@ -2,6 +2,7 @@
2#define INSTALL_DIALOGS_H_INCLUDED 2#define INSTALL_DIALOGS_H_INCLUDED
3 3
4#include "rbutil.h" 4#include "rbutil.h"
5#include "talkfile.h"
5 6
6#include "rbutilCtrls.h" 7#include "rbutilCtrls.h"
7class bootloaderInstallDlg : public wxDialog 8class bootloaderInstallDlg : public wxDialog
@@ -44,6 +45,68 @@ private:
44 45
45}; 46};
46 47
48class talkInstallDlg : public wxDialog
49{
50 DECLARE_CLASS( talkInstallDlg )
51 DECLARE_EVENT_TABLE()
52public:
53enum {
54 ID_DEVICEPOS = 1002,
55 ID_BROWSE_ENC_BTN = 1003,
56 ID_BROWSE_TTS_BTN = 1004,
57 ID_TTS_CBX = 1005,
58 ID_ENC_CBX = 1006,
59 }; //End of Enum
60public:
61 talkInstallDlg(TalkFileCreator* talkcreator);
62 talkInstallDlg(TalkFileCreator* talkcreator, wxWindow* parent,
63 wxWindowID id = wxID_ANY,
64 const wxString& caption = wxT("Talk file creation"),
65 const wxPoint& pos = wxDefaultPosition,
66 const wxSize& size = wxDefaultSize,
67 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
68 /// Member initialization
69 void Init();
70 /// Creation
71 bool Create( wxWindow* parent,
72 wxWindowID id = wxID_ANY,
73 const wxString& caption = wxT("Talk file creation"),
74 const wxPoint& pos = wxDefaultPosition,
75 const wxSize& size = wxDefaultSize,
76 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
77 /// Creates the controls and sizers
78 void CreateControls();
79
80 void OnBrowseEncBtn(wxCommandEvent& event);
81 void OnBrowseTtsBtn(wxCommandEvent& event);
82
83 bool TransferDataFromWindow();
84 bool TransferDataToWindow();
85
86private:
87 TalkFileCreator* m_talkCreator;
88
89 DevicePositionCtrl* m_devicepos;
90
91 wxTextCtrl* m_EncExe;
92 wxButton* m_browseEncBtn;
93 wxTextCtrl* m_EncOpts;
94 wxComboBox* m_Enc;
95
96 wxTextCtrl* m_TtsExe;
97 wxButton* m_browseTtsBtn;
98 wxTextCtrl* m_TtsOpts;
99 wxComboBox* m_Tts;
100
101
102 wxCheckBox* m_OverwriteWave;
103 wxCheckBox* m_OverwriteTalk;
104 wxCheckBox* m_RemoveWave;
105 wxCheckBox* m_Recursive;
106 wxCheckBox* m_StripExtensions;
107
108};
109
47 110
48class fontInstallDlg : public wxDialog 111class fontInstallDlg : public wxDialog
49{ 112{