Logo Search packages:      
Sourcecode: qsstv version File versions  Download package

freqdiag.cpp

/***************************************************************************
                          freqdiag.cpp  -  QSSTV
                             -------------------
    begin                : Tue Apr 17 22:27:58 CEST 2001
    copyright            : (C) 2001 by Johan Maes ON1MH
    email                : on1mh@pandora.be
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "freqdiag.h"
#include <qlabel.h>
#include <qspinbox.h>

static int duration=1;
static int frequency=1200;

freqdiag::freqdiag (QWidget* parent,const char* name):freqForm(parent, name,TRUE)
{
      frequencySpinBox->setValue(frequency);
      durationSpinBox->setValue(duration);
}


freqdiag::~freqdiag()
{

}

void freqdiag::accept()
{
      frequency=frequencySpinBox->value();
      duration=durationSpinBox->value();
  QDialog::accept();
}

int freqdiag::getFrequency()
{
  return frequency;
}

int freqdiag::getDuration()
{
  return duration;
}



Generated by  Doxygen 1.6.0   Back to index