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.

25 lines
661B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. PartNameButton.cpp - OSC Renamable Button
  4. Copyright (C) 2016 Mark McCurry
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. */
  10. #include "PartNameButton.h"
  11. PartNameButton::PartNameButton(int X, int Y, int W, int H, const char *label)
  12. :Fl_Button(X,Y,W,H,label), Fl_Osc_Widget(this)
  13. {
  14. }
  15. void PartNameButton::OSC_value(const char *label_)
  16. {
  17. the_string = label_;
  18. label(the_string.c_str());
  19. redraw();
  20. }