mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-01 06:33:56 +01:00 
			
		
		
		
	* Added an 'RDDialog' class. * Added an 'RDWidget' class. * Refactored rdadmin(1) to use 'RDDialog' and 'RDWidget' base classes.
		
			
				
	
	
		
			76 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // edit_channelgpios.h
 | |
| //
 | |
| // Edit Rivendell Channel GPIO Settings
 | |
| //
 | |
| //   (C) Copyright 2013-2019 Fred Gleason <fredg@paravelsystems.com>
 | |
| //
 | |
| //   This program is free software; you can redistribute it and/or modify
 | |
| //   it under the terms of the GNU General Public License version 2 as
 | |
| //   published by the Free Software Foundation.
 | |
| //
 | |
| //   This program is distributed in the hope that it will be useful,
 | |
| //   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
| //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
| //   GNU General Public License for more details.
 | |
| //
 | |
| //   You should have received a copy of the GNU General Public
 | |
| //   License along with this program; if not, write to the Free Software
 | |
| //   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | |
| //
 | |
| 
 | |
| #ifndef EDIT_CHANNELGPIOS_H
 | |
| #define EDIT_CHANNELGPIOS_H
 | |
| 
 | |
| #include <qspinbox.h>
 | |
| #include <qlabel.h>
 | |
| #include <qpushbutton.h>
 | |
| #include <qcombobox.h>
 | |
| 
 | |
| #include <rdairplay_conf.h>
 | |
| #include <rddialog.h>
 | |
| 
 | |
| class EditChannelGpios : public RDDialog
 | |
| {
 | |
|  Q_OBJECT
 | |
|  public:
 | |
|   EditChannelGpios(RDAirPlayConf *conf,RDAirPlayConf::Channel chan,
 | |
| 		   QWidget *parent=0);
 | |
|   QSize sizeHint() const;
 | |
| 
 | |
|  protected:
 | |
|   void resizeEvent(QResizeEvent *e);
 | |
| 
 | |
|  private slots:
 | |
|   void startMatrixGpiChangedData(int n);
 | |
|   void startMatrixGpoChangedData(int n);
 | |
|   void stopMatrixGpiChangedData(int n);
 | |
|   void stopMatrixGpoChangedData(int n);
 | |
|   void okData();
 | |
|   void cancelData();
 | |
| 
 | |
|  private:
 | |
|   QLabel *edit_title_label;
 | |
|   QLabel *edit_start_gpi_label;
 | |
|   QSpinBox *edit_start_gpi_matrix_spin;
 | |
|   QSpinBox *edit_start_gpi_line_spin;
 | |
|   QLabel *edit_start_gpo_label;
 | |
|   QSpinBox *edit_start_gpo_matrix_spin;
 | |
|   QSpinBox *edit_start_gpo_line_spin;
 | |
|   QLabel *edit_stop_gpi_label;
 | |
|   QSpinBox *edit_stop_gpi_matrix_spin;
 | |
|   QSpinBox *edit_stop_gpi_line_spin;
 | |
|   QLabel *edit_stop_gpo_label;
 | |
|   QSpinBox *edit_stop_gpo_matrix_spin;
 | |
|   QSpinBox *edit_stop_gpo_line_spin;
 | |
|   QLabel *edit_gpio_type_label;
 | |
|   QComboBox *edit_gpio_type_box;
 | |
|   QPushButton *edit_ok_button;
 | |
|   QPushButton *edit_cancel_button;
 | |
|   RDAirPlayConf *edit_airplay_conf;
 | |
|   RDAirPlayConf::Channel edit_channel;
 | |
| };
 | |
| 
 | |
| 
 | |
| #endif  // EDIT_CHANNELGPIOS
 | |
| 
 |