PageRenderTime 51ms CodeModel.GetById 44ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
23#include <QPushButton>
24#include <QSignalMapper>
25#include <QString>
26#include <QWidget>
27
28/**
29	@author Steve Merrony <steve@brahma>
30*/
31class EWIListWidget : public QWidget {
32	Q_OBJECT
33			
34	public:
35    	EWIListWidget( QWidget *parent = 0 );
36    	~EWIListWidget();
37		void setLabel( int, QString );
38		QString getLabel( int );
39		
40	signals:
41		void edit_signal( int patch_num );
42		void copy_signal( int patch_num );
43		void paste_signal( int patch_num );
44		void rename_signal( int patch_num );
45		
46	private:
47		QList<QPushButton *>		patch_button_list;
48		QSignalMapper	*edit_signal_mapper,
49						*copy_signal_mapper,
50						*paste_signal_mapper,
51						*rename_signal_mapper;
52		//QPushButton		name_button[100];
53};
54
55#endif