/ewilistwidget.h

http://ewitool.googlecode.com/ · C Header · 55 lines · 26 code · 6 blank · 23 comment · 0 complexity · 88891bc8fd2e0e784017453a498ebd12 MD5 · raw file

  1. /***************************************************************************
  2. * Copyright (C) 2008 by Steve Merrony *
  3. * steve@brahma *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation; either version 3 of the License, or *
  8. * (at your option) 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. * You should have received a copy of the GNU General Public License *
  16. * along with this program; if not, write to the *
  17. * Free Software Foundation, Inc., *
  18. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  19. ***************************************************************************/
  20. #ifndef EWILISTWIDGET_H
  21. #define EWILISTWIDGET_H
  22. #include <QPushButton>
  23. #include <QSignalMapper>
  24. #include <QString>
  25. #include <QWidget>
  26. /**
  27. @author Steve Merrony <steve@brahma>
  28. */
  29. class EWIListWidget : public QWidget {
  30. Q_OBJECT
  31. public:
  32. EWIListWidget( QWidget *parent = 0 );
  33. ~EWIListWidget();
  34. void setLabel( int, QString );
  35. QString getLabel( int );
  36. signals:
  37. void edit_signal( int patch_num );
  38. void copy_signal( int patch_num );
  39. void paste_signal( int patch_num );
  40. void rename_signal( int patch_num );
  41. private:
  42. QList<QPushButton *> patch_button_list;
  43. QSignalMapper *edit_signal_mapper,
  44. *copy_signal_mapper,
  45. *paste_signal_mapper,
  46. *rename_signal_mapper;
  47. //QPushButton name_button[100];
  48. };
  49. #endif