21 #define e4_assert(bed) arb_assert(bed)
54 seq_term = base ? base->to_sequence_terminal() :
NULp;
91 start_plugin(start_plugin_),
96 start_plugin(other.start_plugin),
102 bool has_name(
const char *Name)
const {
return strcmp(Name, name) == 0; }
108 if (!host) host =
new ED4_host(aw_root, gb_main);
109 window = start_plugin(*host);
111 if (error) error =
GBS_global_string(
"Couldn't start plugin '%s'\nReason: %s", name, error);
121 #if defined(ARB_OPENGL)
126 for (
size_t plug = 0; plug<
ARRAY_ELEMS(registered); ++plug) {
127 if (registered[plug].has_name(name)) {
128 return ®istered[plug];
150 void TEST_plugin_found() {
153 #if defined(ARB_OPENGL)
const char * ED4_getSaiColorString(AW_root *awr, int start, int end)
ED4_SearchResults & results() const
char * ARB_strdup(const char *str)
const char * GBS_global_string(const char *templat,...)
ED4_plugin start_SECEDIT_plugin
ED4_plugin start_RNA3D_plugin
#define ARRAY_ELEMS(array)
static Shaders registered
AW_root * get_application_root() const OVERRIDE
static HelixNrInfo * start
int get_base_position(int seq_position) const OVERRIDE
GB_ERROR GB_await_error()
const char * get_search_background(int start, int end) const OVERRIDE
bool has_name(const char *Name) const
void ED4_remote_event(AW_event *faked_event)
#define TEST_REJECT_NULL(n)
const AW_helix * get_helix() const OVERRIDE
static void error(const char *msg)
ED4_host(AW_root *aw_root_, GBDATA *gb_main_)
char * buildColorString(const ED4_sequence_terminal *seq_terminal, int start, int end)
void announce_current_species(const char *species_name) OVERRIDE
ED4_main_manager * main_manager
static const PlugIn * findPlugin(const char *name)
#define TEST_EXPECT_NULL(n)
AW_window * ED4_plugin(ED4_plugin_host &)
GB_ERROR activate(AW_root *aw_root, GBDATA *gb_main) const
bool SAIs_visualized() const OVERRIDE
DECLARE_ASSIGNMENT_OPERATOR(PlugIn)
PlugIn(const char *name_, ED4_plugin *start_plugin_)
void forward_event(AW_event *event) const OVERRIDE
int is_sequence_terminal() const
int get_base_position(const ED4_terminal *base, int sequence_position)
void ED4_start_plugin(AW_window *aw, GBDATA *gb_main, const char *pluginname)
PlugIn(const PlugIn &other)
GBDATA * get_database() const OVERRIDE
static bool has_species_name(ED4_base *base, const char *species_name)
void aw_message_if(GB_ERROR error)
const char * get_SAI_background(int start, int end) const OVERRIDE