root/trunk/ARBDB/gb_local.h

Revision 8621, 2.5 KB (checked in by westram, 5 weeks ago)

merge from e4fix [8340] [8341] [8342] [8343] [8344] [8345] [8346] [8347] [8348] [8349] [8350] [8353] [8354] [8362] [8370] [8371] [8372] [8373] [8374] [8375]

  • changed refresh behavior
    • refresh_all_windows
      • call via timer (every 2 sec)
      • replaced by refresh-requests where needed
      • added ED4_trigger_instant_refresh
    • set_refresh -> request_refresh
    • removed duplicated refresh-request in ED4_consensus_definition_changed
    • replaced ED4_refresh_window by ED4_request_full_refresh
      • some callers now request fewer refreshes
      • all callers now cause refresh of ALL windows
    • ED4_cursor::ShowCursor no longer updates global AWARs when used for display only
    • refresh_window does not handle updates (it is only used to quickly draw the cursor)
      • renamed into special_window_refresh() to disencourage usage
    • removed implicit clearing of refresh flags previously done when refresh propagated down through windows, areas and hierarchy. Instead refresh_all_windows explicitely calls clear_refresh when done.
  • cleaned up resize requests
  • removed extra sync in ED4_resize_cb
  • removed special handling of 1st call to ED4_expose_cb (no idea why, but this fixes an ancient bug: "save props in hide-all-gaps mode")
    • no longer abuse ED4_expose_cb
  • trigger relayout
    • when helix/seq spacing is changed
  • ED4_WinContext
    • missing when NDS changed
    • expect one in ED4_root::special_window_refresh
    • provide from ED4_cursor::delete_cursor
  • EDIT4 scrolling
    • scrollbar code refactored
    • SLIDER_OFFSET was missing in calculation of lower/right folding lines (fixed)
    • picture size announced by ED4_window::update_scrolled_rectangle was off by 1
    • fixed scroll/resize bugs introduced in [8618]
  • added debug code
    • print backtrace on negative folding line dimension
    • print mismatch if slider postions and folding line dimensions are out of sync
  • sequence color mapping
    • fixed broken window layout
    • increased number of sets to 8
      • added symbolic ambiguity set as default
    • hide default value '=0'
  • group name generation (index-safety)
  • execute callback-guards and post-useraction-callback whenever an awar change is directly triggered by a widget
  • moved (ARB_)strNULLcmp to global header
  • doc/fix unexpectable behavior (NULL is bigger that any text) with a test
  • dont use magics for system folder
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : gb_local.h                                        //
4//   Purpose   : declarations needed to include local prototypes   //
5//                                                                 //
6//   Institute of Microbiology (Technical University Munich)       //
7//   http://www.arb-home.de/                                       //
8//                                                                 //
9// =============================================================== //
10
11#ifndef GB_LOCAL_H
12#define GB_LOCAL_H
13
14#ifndef ARBDB_H
15#include <arbdb.h>
16#endif
17
18#define gb_assert(cond) arb_assert(cond)
19
20// ------------------
21//      constants
22
23#define GB_MAX_USERS 4
24
25#define GBTUM_MAGIC_NUMBER        0x17488400
26#define GBTUM_MAGIC_NUMBER_FILTER 0xffffff00
27#define GBTUM_MAGIC_REVERSED      0x00844817
28
29// ---------------------
30//      simple types
31
32typedef short GB_MAIN_IDX;      // random-index
33
34// ------------------------------
35//      forward declare types
36
37struct GBCONTAINER;
38struct GB_MAIN_TYPE;
39
40struct gb_transaction_save;
41struct gb_header_list;
42struct gb_index_files;
43
44struct GB_DICTIONARY;
45struct gb_compress_list;
46struct gb_compress_tree;
47
48struct gb_map_header;
49
50struct gb_scandir;
51
52struct gbcmc_comm;
53
54// -------------------
55//      enum types
56
57enum gb_undo_commands {
58    _GBCMC_UNDOCOM_REQUEST_NOUNDO_KILL,
59    _GBCMC_UNDOCOM_REQUEST_NOUNDO,
60    _GBCMC_UNDOCOM_REQUEST_UNDO,
61    _GBCMC_UNDOCOM_INFO_UNDO,
62    _GBCMC_UNDOCOM_INFO_REDO,
63    _GBCMC_UNDOCOM_UNDO,
64    _GBCMC_UNDOCOM_REDO,
65
66    _GBCMC_UNDOCOM_SET_MEM = 10000      // Minimum
67};
68
69enum GB_CHANGE {
70    GB_UNCHANGED         = 0,
71    GB_SON_CHANGED       = 2,
72    GB_NORMAL_CHANGE     = 4,
73    GB_CREATED           = 5,
74    GB_DELETED           = 6,
75    GB_DELETED_IN_MASTER = 7
76};
77
78enum GB_COMPRESSION_TYPES {
79    GB_COMPRESSION_NONE       = 0,
80    GB_COMPRESSION_RUNLENGTH  = 1,
81    GB_COMPRESSION_HUFFMANN   = 2,
82    GB_COMPRESSION_DICTIONARY = 4,
83    GB_COMPRESSION_SEQUENCE   = 8,
84    GB_COMPRESSION_SORTBYTES  = 16,
85    GB_COMPRESSION_BITS       = 32,
86    GB_COMPRESSION_LAST       = 128
87};
88
89enum GBCM_ServerResult {
90    GBCM_SERVER_OK      = 0,
91    GBCM_SERVER_FAULT   = 1,
92    GBCM_SERVER_ABORTED = 2,
93    GBCM_SERVER_OK_WAIT = 3, 
94};
95
96// ------------------------------------------------------
97//      include generated local prototypes and macros
98
99#ifndef GB_PROT_H
100#include "gb_prot.h"
101#endif
102
103
104#else
105#error gb_local.h included twice
106#endif // GB_LOCAL_H
Note: See TracBrowser for help on using the browser.