Ejemplo n.º 1
0
void SinkInitDialog(HWND hwndDlg, void *cfgdata, int cfgdata_l)
{
  
  
  int bps = 16;
  if (cfgdata_l < 8 || *((int *)cfgdata) != SINK_FOURCC)
    cfgdata_l=LoadDefaultConfig(&cfgdata,"raw encoder defaults");
  
  if (cfgdata_l>=8 && ((int*)cfgdata)[0] == SINK_FOURCC)
  {
    bps= REAPER_MAKELEINT(((int *)(((unsigned char*)cfgdata)+4))[0]);
  }

  // todo: show conifguration

}
SystemSetting::SystemSetting(QWidget *parent) :
    QDialog(parent,Qt::Dialog),
    ui(new Ui::SystemSetting)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
    this->setProperty("Form",true);
    ui->lab_Title->installEventFilter(this);
    IconHelper::Instance()->SetIcon(ui->lab_Ico, QChar(0xf1a5),14);

    connect(ui->ServerIP,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));
    connect(ui->ServerListenPort,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));
    connect(ui->DevelopBoardIP,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));
    connect(ui->DevelopBoardMask,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));
    connect(ui->DevelopBoardGateway,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));
    connect(ui->DevelopBoardDNS,SIGNAL(textChanged(QString)),this,SLOT(slotChangeButtonState(QString)));

    LoadDefaultConfig();
}