Skip to content

Commit

Permalink
Added stereo ui class files
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupesh S committed Nov 10, 2013
1 parent 10a1e91 commit 06f8ab6
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/stereovinputdialog.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include "stereovinputdialog.h"
#include "ui_stereovinputdialog.h"

StereoVinputDialog::StereoVinputDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::StereoVinputDialog)
{
ui->setupUi(this);
_bstereo=false;

}

StereoVinputDialog::~StereoVinputDialog()
{
delete ui;
}

void StereoVinputDialog::on_pushButtonOk_clicked()
{
int mode=1;
if (ui->radioButtonSbs->isChecked())
mode=1;
if (ui->radioButtonAbl->isChecked())
mode=2;

emit stereoInputFormat(mode);
this->close();
}
33 changes: 33 additions & 0 deletions src/stereovinputdialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#ifndef STEREOVINPUTDIALOG_H
#define STEREOVINPUTDIALOG_H

#include <QDialog>

namespace Ui {
class StereoVinputDialog;
}

class StereoVinputDialog : public QDialog
{
Q_OBJECT

public:
explicit StereoVinputDialog(QWidget *parent = 0);
~StereoVinputDialog();

inline bool Stereo(){return _bstereo;} //for stereo selection dialogue
inline void setStereo(bool b){_bstereo=b;}
signals:
void stereoInputFormat(int mode);

private slots:
void on_pushButtonOk_clicked();



private:
Ui::StereoVinputDialog *ui;
bool _bstereo;
};

#endif // STEREOVINPUTDIALOG_H

0 comments on commit 06f8ab6

Please sign in to comment.