~ubuntu-branches/ubuntu/karmic/ugene/karmic

« back to all changes in this revision

Viewing changes to src/core/src/util_gui/PositionSelector.h

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2009-06-16 13:20:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132000-a0eezpre9uvx91a5
Tags: 1.4.2+repack-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************
2
 
* Unipro UGENE - Integrated Bioinformatics Suite
3
 
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru)
4
 
* All Rights Reserved
5
 
6
 
*     This source code is distributed under the terms of the
7
 
*     GNU General Public License. See the files COPYING and LICENSE
8
 
*     for details.
9
 
*****************************************************************/
10
 
 
11
 
#ifndef _GB2_POSITION_SELECTOR_H_
12
 
#define _GB2_POSITION_SELECTOR_H_
13
 
 
14
 
#include <core_api/core_api.h>
15
 
 
16
 
#include <QtGui/QLineEdit>
17
 
#include <QtGui/QValidator>
18
 
#include <QtGui/QDialog>
19
 
 
20
 
namespace GB2 {
21
 
 
22
 
class GB2_COREAPI_EXPORT PositionSelector : public QWidget {
23
 
        Q_OBJECT
24
 
public:
25
 
        PositionSelector(QWidget* p, int rangeStart, int rangeEnd);
26
 
    PositionSelector(QDialog* d, int rangeStart, int rangeEnd, bool autoclose);
27
 
 
28
 
        ~PositionSelector();
29
 
    
30
 
    QLineEdit* getPosEdit() const {return posEdit;}
31
 
 
32
 
signals:
33
 
        void si_positionChanged(int pos);
34
 
 
35
 
private slots:
36
 
        void sl_onButtonClicked(bool);
37
 
        void sl_onReturnPressed();
38
 
 
39
 
private:
40
 
    void init();
41
 
        void exec();
42
 
 
43
 
        int rangeStart;
44
 
        int rangeEnd;
45
 
        QLineEdit* posEdit;
46
 
    bool autoclose;
47
 
    QDialog* dialog;
48
 
};
49
 
 
50
 
}//namespace
51
 
 
52
 
#endif
 
1
/*****************************************************************
 
2
* Unipro UGENE - Integrated Bioinformatics Suite
 
3
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru)
 
4
* All Rights Reserved
 
5
 
6
*     This source code is distributed under the terms of the
 
7
*     GNU General Public License. See the files COPYING and LICENSE
 
8
*     for details.
 
9
*****************************************************************/
 
10
 
 
11
#ifndef _GB2_POSITION_SELECTOR_H_
 
12
#define _GB2_POSITION_SELECTOR_H_
 
13
 
 
14
#include <core_api/core_api.h>
 
15
 
 
16
#include <QtGui/QLineEdit>
 
17
#include <QtGui/QValidator>
 
18
#include <QtGui/QDialog>
 
19
 
 
20
namespace GB2 {
 
21
 
 
22
class GB2_COREAPI_EXPORT PositionSelector : public QWidget {
 
23
        Q_OBJECT
 
24
public:
 
25
        PositionSelector(QWidget* p, int rangeStart, int rangeEnd);
 
26
    PositionSelector(QDialog* d, int rangeStart, int rangeEnd, bool autoclose);
 
27
 
 
28
        ~PositionSelector();
 
29
    
 
30
    QLineEdit* getPosEdit() const {return posEdit;}
 
31
 
 
32
signals:
 
33
        void si_positionChanged(int pos);
 
34
 
 
35
private slots:
 
36
        void sl_onButtonClicked(bool);
 
37
        void sl_onReturnPressed();
 
38
 
 
39
private:
 
40
    void init();
 
41
        void exec();
 
42
 
 
43
        int rangeStart;
 
44
        int rangeEnd;
 
45
        QLineEdit* posEdit;
 
46
    bool autoclose;
 
47
    QDialog* dialog;
 
48
};
 
49
 
 
50
}//namespace
 
51
 
 
52
#endif