ARB
ed4_plugins.hxx
Go to the documentation of this file.
1 // ================================================================= //
2 // //
3 // File : ed4_plugins.hxx //
4 // Purpose : interface for edit4 plugins //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in September 2010 //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // ================================================================= //
11 
12 #ifndef ED4_PLUGINS_HXX
13 #define ED4_PLUGINS_HXX
14 
15 #ifndef AW_BASE_HXX
16 #include <aw_base.hxx>
17 #endif
18 
19 class AW_event;
20 class AW_helix;
21 
23  // interface provided for EDIT4 plugins (SECEDIT and RNA3D)
24 
25  virtual ~ED4_plugin_host() {}
26 
27  virtual AW_root *get_application_root() const = 0;
28  virtual GBDATA *get_database() const = 0;
29 
30  virtual bool SAIs_visualized() const = 0; // == true -> SECEDIT visualizes SAIs
31  virtual const char *get_SAI_background(int start, int end) const = 0; // get SAI background color
32  virtual const char *get_search_background(int start, int end) const = 0; // get background color of search hits
33 
34  virtual int get_base_position(int seq_position) const = 0; // transform seq-pos(gaps, [0..N]!) to base-pos(nogaps, [0..N]!)
35 
36  virtual void forward_event(AW_event *event) const = 0; // all events not handled by SECEDIT are forwarded here
37 
38  virtual void announce_current_species(const char *species_name) = 0;
39 
40  virtual const AW_helix *get_helix() const = 0;
41 };
42 
44 
45 #if defined(IN_ARB_EDIT4)
46 void ED4_start_plugin(AW_window *aw, GBDATA *gb_main, const char *pluginname);
47 #endif // IN_ARB_EDIT4
48 
49 #else
50 #error ed4_plugins.hxx included twice
51 #endif // ED4_PLUGINS_HXX
virtual ~ED4_plugin_host()
Definition: ed4_plugins.hxx:25
virtual const AW_helix * get_helix() const =0
virtual bool SAIs_visualized() const =0
virtual void announce_current_species(const char *species_name)=0
static HelixNrInfo * start
virtual GBDATA * get_database() const =0
virtual const char * get_search_background(int start, int end) const =0
virtual const char * get_SAI_background(int start, int end) const =0
AW_window * ED4_plugin(ED4_plugin_host &)
Definition: ed4_plugins.hxx:43
virtual int get_base_position(int seq_position) const =0
virtual void forward_event(AW_event *event) const =0
void ED4_start_plugin(AW_window *aw, GBDATA *gb_main, const char *pluginname)
GBDATA * gb_main
Definition: adname.cxx:32
virtual AW_root * get_application_root() const =0