Audio plugin host https://kx.studio/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.

77 lines
2.2KB

  1. // SPDX-FileCopyrightText: 2011-2025 Filipe Coelho <falktx@falktx.com>
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "carla_frontend.h"
  5. #ifdef __clang__
  6. # pragma clang diagnostic push
  7. # pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
  8. # pragma clang diagnostic ignored "-Wdeprecated-register"
  9. #elif defined(__GNUC__) && __GNUC__ >= 8
  10. # pragma GCC diagnostic push
  11. # pragma GCC diagnostic ignored "-Wclass-memaccess"
  12. # pragma GCC diagnostic ignored "-Wdeprecated-copy"
  13. #endif
  14. #include "ui_jackappdialog.h"
  15. #ifdef __clang__
  16. # pragma clang diagnostic pop
  17. #elif defined(__GNUC__) && __GNUC__ >= 8
  18. # pragma GCC diagnostic pop
  19. #endif
  20. #include "qcarlastring.hpp"
  21. // --------------------------------------------------------------------------------------------------------------------
  22. // Jack Application Dialog
  23. class JackAppDialog : public QDialog
  24. {
  25. enum {
  26. UI_SESSION_NONE,
  27. UI_SESSION_LADISH,
  28. UI_SESSION_NSM,
  29. };
  30. struct PrivateData;
  31. PrivateData* const p;
  32. Ui_JackAppDialog ui;
  33. // ----------------------------------------------------------------------------------------------------------------
  34. public:
  35. explicit JackAppDialog(QWidget* parent, const char* projectFilename);
  36. ~JackAppDialog() override;
  37. // ----------------------------------------------------------------------------------------------------------------
  38. // public methods
  39. struct CommandAndFlags {
  40. QString command;
  41. QString name;
  42. QString labelSetup;
  43. };
  44. CommandAndFlags getCommandAndFlags() const;
  45. // ----------------------------------------------------------------------------------------------------------------
  46. // private methods
  47. private:
  48. void checkIfButtonBoxShouldBeEnabled(int index, const QCarlaString& text);
  49. void loadSettings();
  50. // ----------------------------------------------------------------------------------------------------------------
  51. // private slots
  52. private slots:
  53. void slot_commandChanged(const QString& command);
  54. void slot_sessionManagerChanged(int);
  55. void slot_saveSettings();
  56. };
  57. // --------------------------------------------------------------------------------------------------------------------