diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-07-15 18:15:59 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-07-15 18:15:59 +0000 |
commit | 1ad4b2c8091fde4f04bc88dd6d61f879658ccea5 (patch) | |
tree | 93e8c091fbf004dbe57d3d0cafd79fcdf3ee3ecb /rbutil/install_dialogs.h | |
parent | 798e0d552552a013cc32aca0e61e1a42827604d4 (diff) | |
download | rockbox-1ad4b2c8091fde4f04bc88dd6d61f879658ccea5.tar.gz rockbox-1ad4b2c8091fde4f04bc88dd6d61f879658ccea5.zip |
rbutil: first attempt to talk file creator. also pushed version to 3.2.6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13906 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/install_dialogs.h')
-rw-r--r-- | rbutil/install_dialogs.h | 63 |
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" |
7 | class bootloaderInstallDlg : public wxDialog | 8 | class bootloaderInstallDlg : public wxDialog |
@@ -44,6 +45,68 @@ private: | |||
44 | 45 | ||
45 | }; | 46 | }; |
46 | 47 | ||
48 | class talkInstallDlg : public wxDialog | ||
49 | { | ||
50 | DECLARE_CLASS( talkInstallDlg ) | ||
51 | DECLARE_EVENT_TABLE() | ||
52 | public: | ||
53 | enum { | ||
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 | ||
60 | public: | ||
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 | |||
86 | private: | ||
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 | ||
48 | class fontInstallDlg : public wxDialog | 111 | class fontInstallDlg : public wxDialog |
49 | { | 112 | { |