ARB
ed4_block.hxx
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : ed4_block.hxx //
4 // Purpose : Block operations //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // =============================================================== //
11 
12 #ifndef ED4_BLOCK_HXX
13 #define ED4_BLOCK_HXX
14 
16  ED4_BT_NOBLOCK, // nothing is marked
17  ED4_BT_LINEBLOCK, // all species with EDIT4-marks are marked
18  ED4_BT_COLUMNBLOCK, // range is marked
19  ED4_BT_MODIFIED_COLUMNBLOCK // was columnblock, but single species were removed/added
20 };
21 
33 };
34 
40 bool ED4_get_selected_range(ED4_terminal *term, PosRange& range);
41 
42 class SeqPart;
43 
45 protected:
46  mutable GB_ERROR error;
47 public:
48  ED4_block_operator() : error(NULp) {}
49  virtual ~ED4_block_operator() {}
50 
51  GB_ERROR get_error() const { return error; }
52  virtual char *operate(const SeqPart& part, int& new_len) const = 0;
53 };
54 
56 
59 
60 #else
61 #error ed4_block.hxx included twice
62 #endif // ED4_BLOCK_HXX
GB_TYPES type
bool ED4_get_selected_range(ED4_terminal *term, PosRange &range)
Definition: ED4_block.cxx:352
void ED4_setBlocktype(ED4_blocktype bt)
Definition: ED4_block.cxx:361
AW_window * ED4_create_replace_window(AW_root *root)
Definition: ED4_block.cxx:686
void ED4_perform_block_operation(ED4_blockoperation_type type)
Definition: ED4_block.cxx:883
virtual char * operate(const SeqPart &part, int &new_len) const =0
void ED4_toggle_block_type()
Definition: ED4_block.cxx:362
ED4_blocktype ED4_getBlocktype()
Definition: ED4_block.cxx:360
ED4_blocktype
Definition: ed4_block.hxx:15
GB_ERROR get_error() const
Definition: ed4_block.hxx:51
virtual ~ED4_block_operator()
Definition: ed4_block.hxx:49
void ED4_setColumnblockCorner(AW_event *event, ED4_sequence_terminal *seq_term)
Definition: ED4_block.cxx:465
#define NULp
Definition: cxxforward.h:97
void ED4_correctBlocktypeAfterSelection()
Definition: ED4_block.cxx:363
ED4_blockoperation_type
Definition: ed4_block.hxx:22
AW_window * ED4_create_modsai_window(AW_root *root)
Definition: ED4_block.cxx:976