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

« back to all changes in this revision

Viewing changes to src/core/src/util_ov_annotated_dna/AnnotatedDNAViewFactory.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_ANNOTATED_DNA_VIEW_FACTORY_H_
12
 
#define _GB2_ANNOTATED_DNA_VIEW_FACTORY_H_
13
 
 
14
 
#include <core_api/ObjectViewModel.h>
15
 
 
16
 
namespace GB2 {
17
 
 
18
 
class MultiGSelection;
19
 
 
20
 
class GB2_COREAPI_EXPORT AnnotatedDNAViewFactory : public GObjectViewFactory {
21
 
    Q_OBJECT
22
 
public:
23
 
        AnnotatedDNAViewFactory();
24
 
        
25
 
        virtual bool canCreateView(const MultiGSelection& multiSelection);
26
 
 
27
 
        virtual Task* createViewTask(const MultiGSelection& multiSelection, bool single = false);
28
 
 
29
 
        virtual bool isStateInSelection(const MultiGSelection& multiSelection, const QVariantMap& stateData);
30
 
 
31
 
        virtual Task* createViewTask(const QString& viewName, const QVariantMap& stateData);
32
 
 
33
 
    virtual bool supportsSavedStates() const {return true;}
34
 
 
35
 
        static const GObjectViewFactoryId ID;
36
 
};
37
 
 
38
 
 
39
 
 
40
 
} // namespace
41
 
 
42
 
#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_ANNOTATED_DNA_VIEW_FACTORY_H_
 
12
#define _GB2_ANNOTATED_DNA_VIEW_FACTORY_H_
 
13
 
 
14
#include <core_api/ObjectViewModel.h>
 
15
 
 
16
namespace GB2 {
 
17
 
 
18
class MultiGSelection;
 
19
 
 
20
class GB2_COREAPI_EXPORT AnnotatedDNAViewFactory : public GObjectViewFactory {
 
21
    Q_OBJECT
 
22
public:
 
23
        AnnotatedDNAViewFactory();
 
24
        
 
25
        virtual bool canCreateView(const MultiGSelection& multiSelection);
 
26
 
 
27
        virtual Task* createViewTask(const MultiGSelection& multiSelection, bool single = false);
 
28
 
 
29
        virtual bool isStateInSelection(const MultiGSelection& multiSelection, const QVariantMap& stateData);
 
30
 
 
31
        virtual Task* createViewTask(const QString& viewName, const QVariantMap& stateData);
 
32
 
 
33
    virtual bool supportsSavedStates() const {return true;}
 
34
 
 
35
        static const GObjectViewFactoryId ID;
 
36
};
 
37
 
 
38
 
 
39
 
 
40
} // namespace
 
41
 
 
42
#endif