mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-10-31 06:03:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			84 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // edit_cartevent.h
 | |
| //
 | |
| // Edit a Rivendell Netcatch Cart Event
 | |
| //
 | |
| //   (C) Copyright 2002-2018 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_CARTEVENT_H
 | |
| #define EDIT_CARTEVENT_H
 | |
| 
 | |
| #include <vector>
 | |
| 
 | |
| #include <qdialog.h>
 | |
| #include <qsqldatabase.h>
 | |
| #include <qlineedit.h>
 | |
| #include <q3datetimeedit.h>
 | |
| #include <qcombobox.h>
 | |
| #include <qcheckbox.h>
 | |
| #include <qspinbox.h>
 | |
| #include <qlabel.h>
 | |
| 
 | |
| #include <rdrecording.h>
 | |
| #include <rddeck.h>
 | |
| #include <rdcart.h>
 | |
| 
 | |
| class EditCartEvent : public QDialog
 | |
| {
 | |
|  Q_OBJECT
 | |
|  public:
 | |
|  EditCartEvent(int id,std::vector<int> *adds,QWidget *parent=0);
 | |
|  ~EditCartEvent();
 | |
|  QSize sizeHint() const;
 | |
|  QSizePolicy sizePolicy() const;
 | |
|  
 | |
|  private slots:
 | |
|   void selectCartData();
 | |
|   void saveasData();
 | |
|   void okData();
 | |
|   void cancelData();
 | |
| 
 | |
|  protected:
 | |
|   void keyPressEvent(QKeyEvent *);
 | |
|   void closeEvent(QCloseEvent *e);
 | |
|   
 | |
|  private:
 | |
|   void Save();
 | |
|   bool CheckEvent(bool include_myself);
 | |
|   RDDeck *edit_deck;
 | |
|   RDCart *edit_cart;
 | |
|   RDRecording *edit_recording;
 | |
|   QCheckBox *edit_active_button;
 | |
|   QComboBox *edit_station_box;
 | |
|   Q3TimeEdit *edit_starttime_edit;
 | |
|   QLineEdit *edit_description_edit;
 | |
|   QString edit_cutname;
 | |
|   QLineEdit *edit_destination_edit;
 | |
|   QCheckBox *edit_sun_button;
 | |
|   QCheckBox *edit_mon_button;
 | |
|   QCheckBox *edit_tue_button;
 | |
|   QCheckBox *edit_wed_button;
 | |
|   QCheckBox *edit_thu_button;
 | |
|   QCheckBox *edit_fri_button;
 | |
|   QCheckBox *edit_sat_button;
 | |
|   QCheckBox *edit_oneshot_box;
 | |
|   std::vector<int> *edit_added_events;
 | |
| };
 | |
| 
 | |
| 
 | |
| #endif
 | |
| 
 |