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

« back to all changes in this revision

Viewing changes to src/core/src/util_ov_annotated_dna/AnnotatedDNAViewState.h

  • Committer: Bazaar Package Importer
  • Author(s): Ivan Efremov
  • Date: 2009-01-26 19:17:51 UTC
  • Revision ID: james.westby@ubuntu.com-20090126191751-9kqqevd3yf4o098r
Tags: upstream-1.3.2+repack
ImportĀ upstreamĀ versionĀ 1.3.2+repack

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_ANNOTATED_DNA_VIEW_STATE_H_
 
12
#define _GB2_ANNOTATED_DNA_VIEW_STATE_H_
 
13
 
 
14
#include <core_api/LRegion.h>
 
15
#include <core_api/GObject.h>
 
16
#include <QtCore/QVariant>
 
17
 
 
18
namespace GB2 {
 
19
 
 
20
class AnnotatedDNAView; 
 
21
 
 
22
class GB2_COREAPI_EXPORT AnnotatedDNAViewState {
 
23
public:
 
24
        AnnotatedDNAViewState();
 
25
        AnnotatedDNAViewState(const QVariantMap& _stateData) : stateData(_stateData){}
 
26
 
 
27
        static QVariantMap saveState(AnnotatedDNAView* v);
 
28
 
 
29
        bool isValid() const;
 
30
        
 
31
        void setSequenceObjects(const QList<GObjectReference>& objs, const QList<LRegion>& selections);
 
32
 
 
33
    QList<GObjectReference> getSequenceObjects() const;
 
34
 
 
35
    QList<LRegion> getSequenceSelections() const;
 
36
 
 
37
    QList<GObjectReference> getAnnotationObjects() const;
 
38
 
 
39
    void setAnnotationObjects(const QList<GObjectReference>& objs);
 
40
 
 
41
    QVariantMap stateData;
 
42
};
 
43
 
 
44
 
 
45
 
 
46
 
 
47
} // namespace
 
48
 
 
49
#endif