eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.h 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /***************************************************************************
  2. * Copyright (C) 2005 to 2007 by Jonathan Duddington *
  3. * email: [email protected] *
  4. * Copyright (C) 2013 by Reece H. Dunn *
  5. * *
  6. * This program is free software; you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation; either version 3 of the License, or *
  9. * (at your option) any later version. *
  10. * *
  11. * This program is distributed in the hope that it will be useful, *
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  14. * GNU General Public License for more details. *
  15. * *
  16. * You should have received a copy of the GNU General Public License *
  17. * along with this program; if not, see: *
  18. * <http://www.gnu.org/licenses/>. *
  19. ***************************************************************************/
  20. #ifndef OPTIONS_H
  21. #define OPTIONS_H
  22. #include "wx/dialog.h"
  23. #include "wx/spinctrl.h"
  24. /**
  25. *@author Jonathan Duddington
  26. */
  27. extern void ConfigInit(bool use_defaults);
  28. extern void ConfigSave(int end);
  29. extern void ConfigSetPaths();
  30. extern wxString path_spectload;
  31. extern wxString path_spectload2;
  32. extern wxString path_pitches;
  33. extern wxString path_phfile;
  34. extern wxString path_phsource;
  35. extern wxString path_dictsource;
  36. extern wxString path_modifiervoice;
  37. extern wxString path_dir1;
  38. extern int frame_x, frame_y, frame_w, frame_h;
  39. extern char path_source[sizeof(path_home)+20];
  40. extern char path_dsource[sizeof(path_home)+20];
  41. extern int option_speed;
  42. extern void OnOptions2(int event_id);
  43. // not currently used
  44. class Options : public wxDialog {
  45. public:
  46. Options(wxWindow *parent);
  47. ~Options();
  48. private:
  49. void OnCommand(wxCommandEvent& event);
  50. wxButton *m_save;
  51. wxButton *m_close;
  52. wxStaticText *m_lab[10];
  53. wxTextCtrl *m_samplerate;
  54. DECLARE_EVENT_TABLE()
  55. };
  56. #endif