bool HttpFileDownLoadServlet::canAccess(const std::string& uri)
{
	if (doFilter(uri, denineList_))
	{
		return false;
	}

	return doFilter(uri, allowList_);
}
processByWeatherWidget::processByWeatherWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::processByWeatherWidget),
    information(new dataProcessor)
{
    ui->setupUi(this);
    form = 0;
    connect(ui->addButton, SIGNAL(clicked()), this, SLOT(openWeatherDialog()));
    connect(ui->delButton, SIGNAL(clicked()), this, SLOT(delWeather()));
    connect(ui->buscarButton, SIGNAL(clicked()), this, SLOT(doFilter()));
    connect(ui->datesList, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(openDateWidget(QModelIndex)));

    connect(ui->aspectariumPorcentajeSpinBox, SIGNAL(valueChanged(int)), information, SLOT(setAspectPercent(int)));
    connect(ui->signPorcentajeSpinBox, SIGNAL(valueChanged(int)), information, SLOT(setSignPercent(int)));
    connect(ui->housesPorcentajeSpinBox, SIGNAL(valueChanged(int)), information, SLOT(setHousePercent(int)));
    connect(ui->quadrantsProcentajeSpinBox, SIGNAL(valueChanged(int)), information, SLOT(setQuadrantPercent(int)));
    connect(ui->positionsPorcentajeSpinBox, SIGNAL(valueChanged(int)), information, SLOT(setPositionPercent(int)));

    connect(ui->desdeLaTablaComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(typeChange()));

    information->setAspectPercent(ui->aspectariumPorcentajeSpinBox->value());
    information->setSignPercent(ui->signPorcentajeSpinBox->value());
    information->setHousePercent(ui->housesPorcentajeSpinBox->value());
    information->setQuadrantPercent(ui->quadrantsProcentajeSpinBox->value());
    information->setPositionPercent(ui->positionsPorcentajeSpinBox->value());

    ui->desdeLaTablaComboBox->addItem("Astral", "validweather");
    ui->desdeLaTablaComboBox->addItem("NOAA", "estadotiempos_diarios");

    ui->datesList->setContextMenuPolicy(Qt::CustomContextMenu);
    connect(ui->datesList, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(dayMenu(QPoint)));
}
示例#3
0
void EditorWindow::createActions()
{
	openAct = new QAction(tr("&Open"), this);
	openAct->setShortcut(QKeySequence::Open);
	connect(openAct, SIGNAL(triggered()), this, SLOT(openImage()));

	saveAct = new QAction(tr("&Save"), this);
	saveAct->setShortcut(QKeySequence::Save);
	connect(saveAct, SIGNAL(triggered()), this, SLOT(saveImage()));

	saveAsAct = new QAction(tr("Save As"), this);
	saveAsAct->setShortcut(QKeySequence::SaveAs);
	connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveImageAs()));

	quitAct = new QAction(tr("Quit"), this);
	quitAct->setShortcut(QKeySequence::Quit);
	connect(quitAct, SIGNAL(triggered()), this, SLOT(close()));

	zoomInAct = new QAction(tr("Zoom In"), this);
	zoomInAct->setShortcut(QKeySequence::ZoomIn);
	connect(zoomInAct, SIGNAL(triggered()), imageWidget, SLOT(zoomIn()));

	zoomOutAct = new QAction(tr("Zoom Out"), this);
	zoomOutAct->setShortcut(QKeySequence::ZoomOut);
	connect(zoomOutAct, SIGNAL(triggered()), imageWidget, SLOT(zoomOut()));
	connect(imageWidget, SIGNAL(zoomOutAvailableChanged(bool)), zoomOutAct, SLOT(setEnabled(bool)));

	zoomOriginalAct = new QAction(tr("Actual Size"), this);
	connect(zoomOriginalAct, SIGNAL(triggered()), imageWidget, SLOT(zoomOriginal()));

	zoomByWheelAct = new QAction(tr("Zoom by Mouse Wheel"), this);
	zoomByWheelAct->setCheckable(true);
	zoomByWheelAct->setChecked(false);
	connect(zoomByWheelAct, SIGNAL(toggled(bool)), imageWidget, SLOT(setWheelZoom(bool)));

	autoContrastAct = new QAction(tr("Auto Contrast"), this);
	autoContrastAct->setToolTip(tr("Apply luminance histogram stretching"));
	connect(autoContrastAct, SIGNAL(triggered()), this, SLOT(doAutoContrast()));

	autoLevelsAct = new QAction(tr("Auto Levels"), this);
	autoLevelsAct->setToolTip(tr("Apply channel-wise RGB histogram stretching"));
	connect(autoLevelsAct, SIGNAL(triggered()), this, SLOT(doAutoLevels()));

	whiteBalanceAct = new QAction(tr("Correct White Balance"), this);
	whiteBalanceAct->setToolTip(tr("Apply white balance correction using greyworld model"));
	connect(whiteBalanceAct, SIGNAL(triggered()), this, SLOT(doWhiteBalance()));

	geometryAct = new QAction(tr("Scale/Rotate"), this);
	geometryAct->setToolTip(tr("Scale and rotate image relative to the center"));
	connect(geometryAct, SIGNAL(triggered()), this, SLOT(doGeometryTransform()));

	filterAct = new QAction(tr("Filters && Effects"), this);
	filterAct->setToolTip(tr("Open filtration dialog"));
	connect(filterAct, SIGNAL(triggered()), this, SLOT(doFilter()));

	convolutionAct = new QAction(tr("Convolution"), this);
	convolutionAct->setToolTip(tr("Apply convolution with arbitrary kernel"));
	connect(convolutionAct, SIGNAL(triggered()), this, SLOT(doConvolution()));
}
示例#4
0
void DataRange::setWidgetDefaults() {
  //FIXME Do we need a V->readLock() here?
  dialogDefaults().setValue("vector/range", range());
  dialogDefaults().setValue("vector/start", start());
  dialogDefaults().setValue("vector/countFromEnd", countFromEnd());
  dialogDefaults().setValue("vector/readToEnd", readToEnd());
  dialogDefaults().setValue("vector/skip", skip());
  dialogDefaults().setValue("vector/doSkip", doSkip());
  dialogDefaults().setValue("vector/doAve", doFilter());
  dialogDefaults().setValue("vector/rangeUnits", rangeUnits());
  dialogDefaults().setValue("vector/startUnits", rangeUnits());
}
示例#5
0
void Dashboard::setFilter(const FilterSkill *filter){
    this->filter = filter;
    doFilter();
}