File: TVectorTree.h

package info (click to toggle)
gentle 1.9+cvs20100605+dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,224 kB
  • ctags: 6,214
  • sloc: cpp: 41,569; ansic: 3,978; sh: 1,420; makefile: 243
file content (80 lines) | stat: -rwxr-xr-x 3,427 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/** \file
	\brief The vector items tree component.
*/
#ifndef _TVECTORTREE_H_
#define _TVECTORTREE_H_

#include "main.h"
#include <wx/imaglist.h>

class MyChild ;

/** \class TTreeItem
	\brief Item in TVectorTree
*/
class TTreeItem : public wxTreeItemData
    {
    public :
    TTreeItem () : wxTreeItemData() {} ; ///< Empty constructor
    TTreeItem ( wxString m , wxString _t = _T("") , void *_p = NULL )  ///< Constructor
    	: wxTreeItemData()
    	{ message = m ; type = _t ; p = _p ; data = 0 ; } ;
    wxString message ; ///< The message to display
    wxString type ; ///< The item type
    void *p ; ///< Can contain multiple different values, depending on the type
	int data ;
    } ;

/** \class TVectorTree
	\brief The vector items tree class
*/
class TVectorTree : public wxTreeCtrl
    {
    public :
    TVectorTree ( ChildBase *parent , int i ) ;
    
    void initme () ;
    void OnEvent ( wxTreeEvent &event ) ;
    void OnActivation ( wxTreeEvent &event ) ;
    void OnRightClick ( wxTreeEvent &event ) ;
    void OnPrimerForward ( wxCommandEvent &ev ) ;
    void OnPrimerBackward ( wxCommandEvent &ev ) ;
    void OnPrimerBoth ( wxCommandEvent &ev ) ;
    void OnPrimerMutation ( wxCommandEvent &ev ) ;
    void ToggleEnzymeVisibility ( TRestrictionEnzyme *e ) ;

    void itemMark ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemMarkShow ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemEdit ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemAsNewSequence ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemDelete ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemShowHide ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsEdit ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsInfo ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsDel ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsShowHide ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsMark ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsMarkShow ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsAdd2Cocktail ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsAddAndCut ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void rsCutWithCocktail ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void vecEdit ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void itemCopyDNA ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void blastDNA ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void blastAA ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void copyAA ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    void AAasNewSequence ( wxCommandEvent &ev ) ; ///< Event redirect to parent child
    
    // Variables
    MyChild *p ; ///< Pointer to the child containing this tree
    wxTextCtrl *textWindow ; ///< Pointer to the (con)text display area
    wxTreeItemId treeroot ; ///< The root item
    wxTreeItemId vroot ; ///< The vector root item
    wxTreeItemId enzroot ; ///< The enzyme root item
    
    
    DECLARE_EVENT_TABLE()
    } ;

#endif