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.

pluginlistrefreshdialog.hpp 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Carla plugin host
  3. * Copyright (C) 2011-2022 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #pragma once
  18. #ifdef __clang__
  19. # pragma clang diagnostic push
  20. # pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
  21. # pragma clang diagnostic ignored "-Wdeprecated-register"
  22. #elif defined(__GNUC__) && __GNUC__ >= 8
  23. # pragma GCC diagnostic push
  24. # pragma GCC diagnostic ignored "-Wclass-memaccess"
  25. # pragma GCC diagnostic ignored "-Wdeprecated-copy"
  26. #endif
  27. #include <QtWidgets/QDialog>
  28. #ifdef __clang__
  29. # pragma clang diagnostic pop
  30. #elif defined(__GNUC__) && __GNUC__ >= 8
  31. # pragma GCC diagnostic pop
  32. #endif
  33. #include "qcarlastring.hpp"
  34. // --------------------------------------------------------------------------------------------------------------------
  35. // Jack Application Dialog
  36. class PluginListRefreshDialog : public QDialog
  37. {
  38. struct Self;
  39. Self& self;
  40. // ----------------------------------------------------------------------------------------------------------------
  41. public:
  42. explicit PluginListRefreshDialog(QWidget* parent, bool useSystemIcons);
  43. ~PluginListRefreshDialog() override;
  44. // ----------------------------------------------------------------------------------------------------------------
  45. // public methods
  46. // ----------------------------------------------------------------------------------------------------------------
  47. // protected methods
  48. protected:
  49. void closeEvent(QCloseEvent*) override;
  50. // ----------------------------------------------------------------------------------------------------------------
  51. // private methods
  52. private:
  53. void loadSettings();
  54. // ----------------------------------------------------------------------------------------------------------------
  55. // private slots
  56. private slots:
  57. void slot_saveSettings();
  58. void slot_start();
  59. void slot_skip();
  60. void slot_checkTools();
  61. void slot_handlePluginLook(int percent, QString plugin);
  62. void slot_handlePluginThreadFinished();
  63. };
  64. // --------------------------------------------------------------------------------------------------------------------