|
a/GUI/songcast/songcastdlg.h |
|
b/GUI/songcast/songcastdlg.h |
|
... |
|
... |
19 |
|
19 |
|
20 |
#include "ui_songcastdlg.h"
|
20 |
#include "ui_songcastdlg.h"
|
21 |
|
21 |
|
22 |
#include <QCheckBox>
|
22 |
#include <QCheckBox>
|
23 |
|
23 |
|
|
|
24 |
class UncheckCheckBox;
|
|
|
25 |
|
24 |
class SongcastDLG : public QDialog, public Ui::SongcastDLG {
|
26 |
class SongcastDLG : public QDialog, public Ui::SongcastDLG {
|
25 |
Q_OBJECT;
|
27 |
Q_OBJECT;
|
26 |
|
28 |
|
27 |
public:
|
29 |
public:
|
28 |
SongcastDLG(QWidget * parent = 0)
|
30 |
SongcastDLG(QWidget * parent = 0)
|
29 |
: QDialog(parent)
|
31 |
: QDialog(parent)
|
30 |
{
|
32 |
{
|
31 |
setupUi(this);
|
33 |
setupUi(this);
|
32 |
init();
|
34 |
init();
|
33 |
}
|
35 |
}
|
|
|
36 |
|
|
|
37 |
void createControls(unsigned int numsenders, unsigned int numreceivers);
|
|
|
38 |
|
|
|
39 |
// Return index of checked sender, or -1 (at most one can be checked)
|
|
|
40 |
int selectedSenderIdx();
|
|
|
41 |
|
|
|
42 |
bool receiverOnRequested(unsigned int i);
|
|
|
43 |
bool receiverOffRequested(unsigned int i);
|
|
|
44 |
QCheckBox* senderButton(int row);
|
|
|
45 |
QLabel* senderLabel(int row);
|
|
|
46 |
UncheckCheckBox* receiverOffButton(int row);
|
|
|
47 |
UncheckCheckBox* receiverOnButton(int row);
|
|
|
48 |
QLabel* receiverLabel(int row);
|
|
|
49 |
|
|
|
50 |
// These are needed, because gridLayout::numRows is unreliable...
|
|
|
51 |
static const int SNDWPERLINE;
|
|
|
52 |
static const int RCVWPERLINE;
|
|
|
53 |
|
|
|
54 |
int numSenderRows();
|
|
|
55 |
int numReceiverRows();
|
|
|
56 |
|
34 |
public slots:
|
57 |
public slots:
|
35 |
void apply();
|
58 |
void apply();
|
36 |
signals:
|
59 |
signals:
|
37 |
void sig_apply(SongcastDLG *);
|
60 |
void sig_apply(SongcastDLG *);
|
38 |
|
61 |
|