Rivendellaudio/rdadmin/edit_jack.h
Fred Gleason d8f526119e 2021-01-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDTableView' and 'RDTreeView' base viewer classes.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2021-01-26 20:37:26 -05:00

80 lines
2.1 KiB
C++

// edit_jack.h
//
// Edit a Rivendell Jack Configuration
//
// (C) Copyright 2002-2021 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_JACK_H
#define EDIT_JACK_H
#include <QCheckBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
#include <rddialog.h>
#include <rdjackclientlistmodel.h>
#include <rdlistview.h>
#include <rdstation.h>
#include <rdtableview.h>
#define EDITJACK_DEFAULT_SERVERNAME QObject::tr("(default)")
class EditJack : public RDDialog
{
Q_OBJECT
public:
EditJack(RDStation *station,QWidget *parent=0);
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void startJackData(bool state);
void addData();
void editData();
void deleteData();
void doubleClickedData(const QModelIndex &index);
void okData();
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
private:
QLabel *edit_start_jack_label;
QCheckBox *edit_start_jack_box;
QLabel *edit_jack_server_name_label;
QLineEdit *edit_jack_server_name_edit;
QLabel *edit_jack_command_line_label;
QLineEdit *edit_jack_command_line_edit;
QLabel *edit_jack_audio_ports_label;
QSpinBox *edit_jack_audio_ports_spin;
QLabel *edit_jack_client_label;
RDTableView *edit_jack_client_view;
RDJackClientListModel *edit_jack_client_model;
RDStation *edit_station;
QPushButton *edit_add_button;
QPushButton *edit_edit_button;
QPushButton *edit_delete_button;
QPushButton *edit_ok_button;
QPushButton *edit_cancel_button;
};
#endif // EDIT_JACK_H