External plugins for Carla
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.

80 lines
2.2KB

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0300
  2. #ifndef MicrotonalUI_h
  3. #define MicrotonalUI_h
  4. #include <FL/Fl.H>
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <FL/Fl_File_Chooser.H>
  9. #include <FL/fl_ask.H>
  10. #include "Fl_Osc_Pane.H"
  11. #include "Fl_Osc_Value.H"
  12. #include "Fl_Osc_Check.H"
  13. #include "Fl_Osc_Counter.H"
  14. #include "Fl_Osc_Input.H"
  15. #include "Fl_Osc_Output.H"
  16. #include "../Misc/Microtonal.h"
  17. #include <FL/Fl_Box.H>
  18. #include <FL/Fl_Group.H>
  19. #include <FL/Fl_Button.H>
  20. class MicrotonalUI {
  21. public:
  22. Fl_Osc_Window* make_window(Fl_Osc_Interface *osc, std::string base);
  23. Fl_Osc_Window *microtonaluiwindow;
  24. private:
  25. void cb_Invert_i(Fl_Osc_Check*, void*);
  26. static void cb_Invert(Fl_Osc_Check*, void*);
  27. public:
  28. Fl_Osc_Counter *centerinvertcounter;
  29. Fl_Group *microtonalgroup;
  30. Fl_Button *applybutton;
  31. private:
  32. void cb_applybutton_i(Fl_Button*, void*);
  33. static void cb_applybutton(Fl_Button*, void*);
  34. public:
  35. Fl_Osc_Output *octavesizeoutput;
  36. Fl_Osc_Input *nameinput;
  37. Fl_Osc_Input *tuningsinput;
  38. Fl_Osc_Input *commentinput;
  39. private:
  40. void cb_Import_i(Fl_Button*, void*);
  41. static void cb_Import(Fl_Button*, void*);
  42. public:
  43. Fl_Group *keymappinggroup;
  44. Fl_Osc_Input *mappinginput;
  45. Fl_Osc_Counter *firstnotecounter;
  46. Fl_Osc_Counter *lastnotecounter;
  47. Fl_Osc_Counter *middlenotecounter;
  48. Fl_Osc_Output *mapsizeoutput;
  49. Fl_Osc_Check *mappingenabledbutton;
  50. private:
  51. void cb_mappingenabledbutton_i(Fl_Osc_Check*, void*);
  52. static void cb_mappingenabledbutton(Fl_Osc_Check*, void*);
  53. void cb_Import1_i(Fl_Button*, void*);
  54. static void cb_Import1(Fl_Button*, void*);
  55. public:
  56. Fl_Osc_Counter *anotecounter;
  57. private:
  58. void cb_anotecounter_i(Fl_Osc_Counter*, void*);
  59. static void cb_anotecounter(Fl_Osc_Counter*, void*);
  60. public:
  61. Fl_Osc_Value *afreqinput;
  62. private:
  63. void cb_Close_i(Fl_Button*, void*);
  64. static void cb_Close(Fl_Button*, void*);
  65. void cb_Enable_i(Fl_Osc_Check*, void*);
  66. static void cb_Enable(Fl_Osc_Check*, void*);
  67. public:
  68. void updateTuningsInput();
  69. void updateMappingInput();
  70. MicrotonalUI(Fl_Osc_Interface *osc_, std::string base);
  71. ~MicrotonalUI();
  72. void show();
  73. void apply();
  74. private:
  75. Fl_Osc_Interface *osc;
  76. };
  77. #endif