-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rupesh S
committed
Nov 10, 2013
1 parent
10a1e91
commit 06f8ab6
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |