Exemplo n.º 1
0
void imagesequence::prepareCapture()
{
  INDI_P * tempProp(NULL);

  // Do we need to select filter First??
  if (currentFilter.isEmpty() || currentFilter == i18n("None"))
   captureImage();
  else
  {
     if (!verifyFilterIntegrity())
     {
        stopSequence();
	return;
     }

     if ( stdDevFilter && ((tempProp = stdDevFilter->dp->findProp("FILTER_SLOT")) != NULL))
     {
     connect (tempProp, SIGNAL(okState()), this, SLOT(captureImage()));
     selectFilter();
     }
     else
       kdDebug() << "Error: std Filter device lost or missing FILTER_SLOT property" << endl;
  }
    
}
Exemplo n.º 2
0
 //=============
 // allFTypes()
 //=============
 std::list< FType > allFTypes() {
   std::list< FType > allFTypes;
   std::list< std::string > allStrings = allFTypesStrings();
   std::list< std::string >::const_iterator i = allStrings.begin();
   while ( i != allStrings.end() )
     allFTypes.push_back(selectFilter(*i++));
   return(allFTypes);
 }
Exemplo n.º 3
0
DSBFilters::DSBFilters() {
    filters[0].init("16k",-8000,8000);
    filters[1].init("12k",-6000,6000);
    filters[2].init("10k",-5000,5000);
    filters[3].init("8k",-4000,4000);
    filters[4].init("6.6k",-3300,3300);
    filters[5].init("5.2k",-2600,2600);
    filters[6].init("4.0k",-2000,2000);
    filters[7].init("3.1k",-1550,1550);
    filters[8].init("2.9k",-1450,1450);
    filters[9].init("2.4k",-1200,1200);

    selectFilter(4);
}
Exemplo n.º 4
0
LSBFilters::LSBFilters() {

    filters[0].init("5.0k",-5050,-50);
    filters[1].init("4.4k",-4450,-50);
    filters[2].init("3.8k",-3900,-100);
    filters[3].init("3.3k",-3450,-150);
    filters[4].init("2.9k",-3050,-150);
    filters[5].init("2.7k",-2900,-200);
    filters[6].init("2.4k",-2600,-200);
    filters[7].init("2.1k",-2400,-300);
    filters[8].init("1.8k",-2150,-350);
    filters[9].init("1.0k",-1400,-400);
    filters[10].init("Vari",-5050,-50);

    selectFilter(3);
}
Exemplo n.º 5
0
USBFilters::USBFilters() {
    qDebug() << "USBFilters";

    filters[0].init("5.0k",50,5050);
    filters[1].init("4.4k",50,4450);
    filters[2].init("3.8k",100,3900);
    filters[3].init("3.3k",150,3450);
    filters[4].init("2.9k",150,3050);
    filters[5].init("2.7k",200,2900);
    filters[6].init("2.4k",200,2600);
    filters[7].init("2.1k",300,2400);
    filters[8].init("1.8k",350,2150);
    filters[9].init("1.0k",400,1400);
    filters[10].init("Vari",50,5050);

    selectFilter(3);
}
QgsEncodingFileDialog::QgsEncodingFileDialog( QWidget * parent,
    const QString & caption, const QString & directory,
    const QString & filter, const QString & encoding )
    : QFileDialog( parent, caption, directory, filter )
{
  mEncodingComboBox = new QComboBox( this );
  QLabel* l = new QLabel( tr( "Encoding:" ), this );
  layout()->addWidget( l );
  layout()->addWidget( mEncodingComboBox );
  mEncodingComboBox->addItem( "BIG5" );
  mEncodingComboBox->addItem( "BIG5-HKSCS" );
  mEncodingComboBox->addItem( "EUCJP" );
  mEncodingComboBox->addItem( "EUCKR" );
  mEncodingComboBox->addItem( "GB2312" );
  mEncodingComboBox->addItem( "GBK" );
  mEncodingComboBox->addItem( "GB18030" );
  mEncodingComboBox->addItem( "JIS7" );
  mEncodingComboBox->addItem( "SHIFT-JIS" );
  mEncodingComboBox->addItem( "TSCII" );
  mEncodingComboBox->addItem( "UTF-8" );
  mEncodingComboBox->addItem( "UTF-16" );
  mEncodingComboBox->addItem( "KOI8-R" );
  mEncodingComboBox->addItem( "KOI8-U" );
  mEncodingComboBox->addItem( "ISO8859-1" );
  mEncodingComboBox->addItem( "ISO8859-2" );
  mEncodingComboBox->addItem( "ISO8859-3" );
  mEncodingComboBox->addItem( "ISO8859-4" );
  mEncodingComboBox->addItem( "ISO8859-5" );
  mEncodingComboBox->addItem( "ISO8859-6" );
  mEncodingComboBox->addItem( "ISO8859-7" );
  mEncodingComboBox->addItem( "ISO8859-8" );
  mEncodingComboBox->addItem( "ISO8859-8-I" );
  mEncodingComboBox->addItem( "ISO8859-9" );
  mEncodingComboBox->addItem( "ISO8859-10" );
  mEncodingComboBox->addItem( "ISO8859-13" );
  mEncodingComboBox->addItem( "ISO8859-14" );
  mEncodingComboBox->addItem( "ISO8859-15" );
  mEncodingComboBox->addItem( "IBM 850" );
  mEncodingComboBox->addItem( "IBM 866" );
  mEncodingComboBox->addItem( "CP874" );
  mEncodingComboBox->addItem( "CP1250" );
  mEncodingComboBox->addItem( "CP1251" );
  mEncodingComboBox->addItem( "CP1252" );
  mEncodingComboBox->addItem( "CP1253" );
  mEncodingComboBox->addItem( "CP1254" );
  mEncodingComboBox->addItem( "CP1255" );
  mEncodingComboBox->addItem( "CP1256" );
  mEncodingComboBox->addItem( "CP1257" );
  mEncodingComboBox->addItem( "CP1258" );
  mEncodingComboBox->addItem( "Apple Roman" );
  mEncodingComboBox->addItem( "TIS-620" );
  if ( encoding.isEmpty() )
  {
    mEncodingComboBox->setItemText( mEncodingComboBox->currentIndex(), QString( QTextCodec::codecForLocale()->name() ) );
  }
  else
  {
    mEncodingComboBox->setItemText( mEncodingComboBox->currentIndex(), encoding );
  }

  // if this dialog is being invoked from QgisApp::findFiles_(), then we
  // need to force selection of the first filter since that corresponds to
  // the file name we're looking for; even if we're not here from
  // findFiles_(), it won't hurt to force selection of the first file filter
  selectFilter( filters().at( 0 ) );

}