2
* UGENE - Integrated Bioinformatics Tools.
3
* Copyright (C) 2008-2011 UniPro <ugene@unipro.ru>
4
* http://ugene.unipro.ru
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
#ifndef _U2_WINDOW_STEP_SELECTOR_WIDGET_
23
#define _U2_WINDOW_STEP_SELECTOR_WIDGET_
25
#include <QtGui/QDialog>
26
#include <QtGui/QSpinBox>
27
#include <QtGui/QDoubleSpinBox>
28
#include <QtGui/QGroupBox>
29
#include <U2Core/U2Region.h>
33
class U2VIEW_EXPORT WindowStepSelectorWidget : public QWidget {
36
WindowStepSelectorWidget(QWidget* p, const U2Region& winRange, int win, int step);
37
QString validate() const;
39
int getWindow() const;
44
QSpinBox* stepsPerWindowEdit;
47
class U2VIEW_EXPORT MinMaxSelectorWidget : public QWidget {
50
MinMaxSelectorWidget(QWidget* p, double min, double max, bool enabled);
51
QString validate() const;
53
double getMin() const;
54
double getMax() const;
55
bool getState() const;
58
QGroupBox* minmaxGroup;
59
QDoubleSpinBox* minBox;
60
QDoubleSpinBox* maxBox;
63
class U2VIEW_EXPORT WindowStepSelectorDialog : public QDialog {
66
WindowStepSelectorDialog(QWidget* p, const U2Region& winRange, int win, int step, double min, double max, bool e);
67
WindowStepSelectorWidget* getWindowStepSelector() const {return wss;}
68
MinMaxSelectorWidget* getMinMaxSelector() const {return mms;}
71
void sl_onCancelClicked(bool);
72
void sl_onOkClicked(bool);
74
WindowStepSelectorWidget* wss;
75
MinMaxSelectorWidget* mms;